org.gloin.resource
Class ResourceHandleProxy
java.lang.Object
|
+--org.gloin.resource.ResourceHandleProxy
- All Implemented Interfaces:
- ResourceHandle, java.io.Serializable
- public class ResourceHandleProxy
- extends java.lang.Object
- implements ResourceHandle, java.io.Serializable
Simple implementation of ResourceHandle which delegates to an
internal remote object that is specialized to modify resources
in a resource service.
- See Also:
- Serialized Form
Method Summary |
boolean |
equals(java.lang.Object other)
|
void |
fillResource(java.io.InputStream in)
Send an input stream that may be used remotely in a resource
service. |
java.lang.String |
getName()
Obtain the name of the resource to which this object is a
handle. |
int |
hashCode()
|
void |
updateResource(java.io.InputStream in)
Send an input stream that may be used remotely in a resource
service. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
ResourceHandleProxy
public ResourceHandleProxy()
ResourceHandleProxy
public ResourceHandleProxy(java.lang.String resourceName,
org.gloin.resource.ResourceModifier resourceModifier)
getName
public java.lang.String getName()
- Description copied from interface:
ResourceHandle
- Obtain the name of the resource to which this object is a
handle.
- Specified by:
getName
in interface ResourceHandle
- Following copied from interface:
net.gloin.resource.ResourceHandle
- Returns:
- the name of the resource to which this object is a
handle.
fillResource
public void fillResource(java.io.InputStream in)
throws java.io.IOException
- Description copied from interface:
ResourceHandle
- Send an input stream that may be used remotely in a resource
service. The resource service must read the bytes from the
stream in order to fill the resource corresponding to this
handle.
- Specified by:
fillResource
in interface ResourceHandle
- Following copied from interface:
net.gloin.resource.ResourceHandle
- Parameters:
in
- the input stream from which a resource service will
read the bytes to fill the resource for this handle.- Throws:
ResourceRegisteredException
- if the resource for this
object is not empty when a request to fill is made.
updateResource
public void updateResource(java.io.InputStream in)
throws java.io.IOException
- Description copied from interface:
ResourceHandle
- Send an input stream that may be used remotely in a resource
service. The resource service must read the bytes from the
stream in order to fill the resource corresponding to this
handle.
- Specified by:
updateResource
in interface ResourceHandle
- Following copied from interface:
net.gloin.resource.ResourceHandle
- Parameters:
in
- the input stream from which a resource service will
read the bytes to update the resource for this handle.
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in class java.lang.Object