Class MemoryResourceManager
- java.lang.Object
-
- org.apache.cxf.ws.transfer.manager.MemoryResourceManager
-
- All Implemented Interfaces:
ResourceManager
public class MemoryResourceManager extends Object implements ResourceManager
In memory implementation for ResourceManager interface.
-
-
Field Summary
Fields Modifier and Type Field Description static StringREF_LOCAL_NAMEstatic StringREF_NAMESPACEprotected Map<String,String>storage
-
Constructor Summary
Constructors Constructor Description MemoryResourceManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.cxf.ws.addressing.ReferenceParametersTypecreate(org.apache.cxf.ws.transfer.Representation initRepresentation)Creates new Representation object from initRepresenation.voiddelete(org.apache.cxf.ws.addressing.ReferenceParametersType ref)Deletes Representation object given by reference parameter.org.apache.cxf.ws.transfer.Representationget(org.apache.cxf.ws.addressing.ReferenceParametersType ref)Returns Representation object given by reference parameter.voidput(org.apache.cxf.ws.addressing.ReferenceParametersType ref, org.apache.cxf.ws.transfer.Representation newRepresentation)Replaces Representation object given by reference parameter with newRepresentation.
-
-
-
Field Detail
-
REF_NAMESPACE
public static final String REF_NAMESPACE
- See Also:
- Constant Field Values
-
REF_LOCAL_NAME
public static final String REF_LOCAL_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
get
public org.apache.cxf.ws.transfer.Representation get(org.apache.cxf.ws.addressing.ReferenceParametersType ref)
Description copied from interface:ResourceManagerReturns Representation object given by reference parameter.- Specified by:
getin interfaceResourceManager- Parameters:
ref- Reference parameter returned by create method.- Returns:
- Representation object containing the XML resource.
- See Also:
ResourceManager.create(org.apache.cxf.ws.transfer.Representation)
-
delete
public void delete(org.apache.cxf.ws.addressing.ReferenceParametersType ref)
Description copied from interface:ResourceManagerDeletes Representation object given by reference parameter.- Specified by:
deletein interfaceResourceManager- Parameters:
ref- Reference parameter returned by create method.- See Also:
ResourceManager.create(org.apache.cxf.ws.transfer.Representation)
-
put
public void put(org.apache.cxf.ws.addressing.ReferenceParametersType ref, org.apache.cxf.ws.transfer.Representation newRepresentation)Description copied from interface:ResourceManagerReplaces Representation object given by reference parameter with newRepresentation.- Specified by:
putin interfaceResourceManager- Parameters:
ref- Reference parameter returned by create method.newRepresentation- New Representation object, which will replace the old one.- See Also:
ResourceManager.create(org.apache.cxf.ws.transfer.Representation)
-
create
public org.apache.cxf.ws.addressing.ReferenceParametersType create(org.apache.cxf.ws.transfer.Representation initRepresentation)
Description copied from interface:ResourceManagerCreates new Representation object from initRepresenation.- Specified by:
createin interfaceResourceManager- Parameters:
initRepresentation- Representation object containing initial XML resource.- Returns:
- Reference parameter for newly created Representation object.
-
-