class DataSerializationFilter extends java.lang.Object implements Filter
A filter to be plugged into the sending end of a channel if dynamic class transfer is to be supported
over the channel. The receiving end of the channel should have a DeserializeChannelFilter
plugged in. Any objects send by this filter will be wrapped in a DynamicClassLoaderMessage
object which includes the NetChannelLocation
of a channel for the local node's JFTP
service.
Instances of this class will be created by the DynamicClassLoader
service and should
be obtained via its getTxFilter
method.
Modifier and Type | Field and Description |
---|---|
private NetChannelLocation |
senderLoc
Location of the JFTP service's request channel.
|
Constructor and Description |
---|
DataSerializationFilter(NetChannelLocation senderLoc)
Constructs a new
DataSerializationFilter object. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
filter(java.lang.Object obj)
Wraps the object in a
DynamicClassLoaderMessage complete with the JFTP channel
location passed to the filter's constructor. |
private NetChannelLocation senderLoc
public DataSerializationFilter(NetChannelLocation senderLoc)
DataSerializationFilter
object.senderLoc
- the location of the JFTP service's request channel.