Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » remoting » rmi » [javadoc | source]
org.springframework.remoting.rmi
abstract public class: RemoteInvocationSerializingExporter [javadoc | source]
java.lang.Object
   org.springframework.remoting.support.RemotingSupport
      org.springframework.remoting.support.RemoteExporter
         org.springframework.remoting.support.RemoteInvocationBasedExporter
            org.springframework.remoting.rmi.RemoteInvocationSerializingExporter

All Implemented Interfaces:
    InitializingBean, BeanClassLoaderAware

Direct Known Subclasses:
    SimpleHttpInvokerServiceExporter, HttpInvokerServiceExporter

Abstract base class for remote service exporters that explicitly deserialize org.springframework.remoting.support.RemoteInvocation objects and serialize org.springframework.remoting.support.RemoteInvocationResult objects, for example Spring's HTTP invoker.

Provides template methods for ObjectInputStream and ObjectOutputStream handling.

Field Summary
public static final  String CONTENT_TYPE_SERIALIZED_OBJECT    Default content type: "application/x-java-serialized-object" 
Fields inherited from org.springframework.remoting.support.RemotingSupport:
logger
Method from org.springframework.remoting.rmi.RemoteInvocationSerializingExporter Summary:
afterPropertiesSet,   createObjectInputStream,   createObjectOutputStream,   doReadRemoteInvocation,   doWriteRemoteInvocationResult,   getContentType,   getProxy,   prepare,   setContentType
Methods from org.springframework.remoting.support.RemoteInvocationBasedExporter:
getRemoteInvocationExecutor,   invoke,   invokeAndCreateResult,   setRemoteInvocationExecutor
Methods from org.springframework.remoting.support.RemoteExporter:
checkService,   checkServiceInterface,   getExporterName,   getProxyForService,   getService,   getServiceInterface,   isRegisterTraceInterceptor,   setRegisterTraceInterceptor,   setService,   setServiceInterface
Methods from org.springframework.remoting.support.RemotingSupport:
getBeanClassLoader,   overrideThreadContextClassLoader,   resetThreadContextClassLoader,   setBeanClassLoader
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.remoting.rmi.RemoteInvocationSerializingExporter Detail:
 public  void afterPropertiesSet() 
 protected ObjectInputStream createObjectInputStream(InputStream is) throws IOException 
 protected ObjectOutputStream createObjectOutputStream(OutputStream os) throws IOException 
 protected RemoteInvocation doReadRemoteInvocation(ObjectInputStream ois) throws ClassNotFoundException, IOException 
    Perform the actual reading of an invocation result object from the given ObjectInputStream.

    The default implementation simply calls java.io.ObjectInputStream#readObject() . Can be overridden for deserialization of a custom wrapper object rather than the plain invocation, for example an encryption-aware holder.

 protected  void doWriteRemoteInvocationResult(RemoteInvocationResult result,
    ObjectOutputStream oos) throws IOException 
    Perform the actual writing of the given invocation result object to the given ObjectOutputStream.

    The default implementation simply calls java.io.ObjectOutputStream#writeObject . Can be overridden for serialization of a custom wrapper object rather than the plain invocation, for example an encryption-aware holder.

 public String getContentType() 
    Return the content type to use for sending remote invocation responses.
 protected final Object getProxy() 
 public  void prepare() 
    Initialize this service exporter.
 public  void setContentType(String contentType) 
    Specify the content type to use for sending remote invocation responses.

    Default is "application/x-java-serialized-object".