java.lang.Object | ||||
↳ | org.springframework.remoting.support.RemotingSupport | |||
↳ | org.springframework.remoting.support.RemoteExporter | |||
↳ | org.springframework.remoting.support.RemoteInvocationBasedExporter | |||
↳ | org.springframework.remoting.rmi.RemoteInvocationSerializingExporter |
Known Direct Subclasses |
Abstract base class for remote service exporters that explicitly deserialize
RemoteInvocation
objects and serialize
RemoteInvocationResult
objects,
for example Spring's HTTP invoker.
Provides template methods for ObjectInputStream
and
ObjectOutputStream
handling.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | CONTENT_TYPE_SERIALIZED_OBJECT | Default content type: "application/x-java-serialized-object" |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.remoting.support.RemotingSupport
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Invoked by a BeanFactory after it has set all bean properties supplied
(and satisfied BeanFactoryAware and ApplicationContextAware).
| |||||||||||
Return the content type to use for sending remote invocation responses.
| |||||||||||
Initialize this service exporter.
| |||||||||||
Specify the content type to use for sending remote invocation responses.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create an ObjectInputStream for the given InputStream.
| |||||||||||
Create an ObjectOutputStream for the given OutputStream.
| |||||||||||
Perform the actual reading of an invocation result object from the
given ObjectInputStream.
| |||||||||||
Perform the actual writing of the given invocation result object
to the given ObjectOutputStream.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.remoting.support.RemoteInvocationBasedExporter
| |||||||||||
From class
org.springframework.remoting.support.RemoteExporter
| |||||||||||
From class
org.springframework.remoting.support.RemotingSupport
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.beans.factory.BeanClassLoaderAware
| |||||||||||
From interface
org.springframework.beans.factory.InitializingBean
|
Default content type: "application/x-java-serialized-object"
Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware).
This method allows the bean instance to perform initialization only possible when all bean properties have been set and to throw an exception in the event of misconfiguration.
Return the content type to use for sending remote invocation responses.
Initialize this service exporter.
Specify the content type to use for sending remote invocation responses.
Default is "application/x-java-serialized-object".
Create an ObjectInputStream for the given InputStream.
The default implementation creates a Spring CodebaseAwareObjectInputStream
.
is | the InputStream to read from |
---|
IOException | if creation of the ObjectInputStream failed |
---|
Create an ObjectOutputStream for the given OutputStream.
The default implementation creates a plain
ObjectOutputStream
.
os | the OutputStream to write to |
---|
IOException | if creation of the ObjectOutputStream failed |
---|
Perform the actual reading of an invocation result object from the given ObjectInputStream.
The default implementation simply calls
readObject()
.
Can be overridden for deserialization of a custom wrapper object rather
than the plain invocation, for example an encryption-aware holder.
ois | the ObjectInputStream to read from |
---|
IOException | in case of I/O failure |
---|---|
ClassNotFoundException | if case of a transferred class not being found in the local ClassLoader |
Perform the actual writing of the given invocation result object to the given ObjectOutputStream.
The default implementation simply calls
writeObject(Object)
.
Can be overridden for serialization of a custom wrapper object rather
than the plain invocation, for example an encryption-aware holder.
result | the RemoteInvocationResult object |
---|---|
oos | the ObjectOutputStream to write to |
IOException | if thrown by I/O methods |
---|