| org.springframework.remoting.support.RemoteInvocationBasedExporter org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter
Method Summary | |
public void | afterPropertiesSet() | protected ObjectInputStream | createObjectInputStream(InputStream is) Create an ObjectInputStream for the given InputStream. | protected ObjectOutputStream | createObjectOutputStream(OutputStream os) Create an ObjectOutputStream for the given OutputStream. | protected InputStream | decorateInputStream(HttpServletRequest request, InputStream is) Return the InputStream to use for reading remote invocations,
potentially decorating the given original InputStream. | protected OutputStream | decorateOutputStream(HttpServletRequest request, HttpServletResponse response, OutputStream os) Return the OutputStream to use for writing remote invocation results,
potentially decorating the given original OutputStream. | protected RemoteInvocation | doReadRemoteInvocation(ObjectInputStream ois) Perform the actual reading of an invocation result object from the
given ObjectInputStream. | protected void | doWriteRemoteInvocationResult(RemoteInvocationResult result, ObjectOutputStream oos) Perform the actual writing of the given invocation result object
to the given ObjectOutputStream. | public String | getContentType() Return the content type to use for sending HTTP invoker responses. | public void | handleRequest(HttpServletRequest request, HttpServletResponse response) Reads a remote invocation from the request, executes it,
and writes the remote invocation result to the response. | public void | prepare() Initialize this service exporter. | protected RemoteInvocation | readRemoteInvocation(HttpServletRequest request) Read a RemoteInvocation from the given HTTP request. | protected RemoteInvocation | readRemoteInvocation(HttpServletRequest request, InputStream is) Deserialize a RemoteInvocation object from the given InputStream.
Gives
HttpInvokerServiceExporter.decorateInputStream a chance to decorate the stream
first (for example, for custom encryption or compression). | public void | setContentType(String contentType) Specify the content type to use for sending HTTP invoker responses. | protected void | writeRemoteInvocationResult(HttpServletRequest request, HttpServletResponse response, RemoteInvocationResult result) Write the given RemoteInvocationResult to the given HTTP response. | protected void | writeRemoteInvocationResult(HttpServletRequest request, HttpServletResponse response, RemoteInvocationResult result, OutputStream os) Serialize the given RemoteInvocation to the given OutputStream. |
CONTENT_TYPE_SERIALIZED_OBJECT | final public static String CONTENT_TYPE_SERIALIZED_OBJECT(Code) | | Default content type: "application/x-java-serialized-object"
|
afterPropertiesSet | public void afterPropertiesSet()(Code) | | |
decorateInputStream | protected InputStream decorateInputStream(HttpServletRequest request, InputStream is) throws IOException(Code) | | Return the InputStream to use for reading remote invocations,
potentially decorating the given original InputStream.
The default implementation returns the given stream as-is.
Can be overridden, for example, for custom encryption or compression.
Parameters: request - current HTTP request Parameters: is - the original InputStream the potentially decorated InputStream throws: IOException - in case of I/O failure |
decorateOutputStream | protected OutputStream decorateOutputStream(HttpServletRequest request, HttpServletResponse response, OutputStream os) throws IOException(Code) | | Return the OutputStream to use for writing remote invocation results,
potentially decorating the given original OutputStream.
The default implementation returns the given stream as-is.
Can be overridden, for example, for custom encryption or compression.
Parameters: request - current HTTP request Parameters: response - current HTTP response Parameters: os - the original OutputStream the potentially decorated OutputStream throws: IOException - in case of I/O failure |
doWriteRemoteInvocationResult | protected void doWriteRemoteInvocationResult(RemoteInvocationResult result, ObjectOutputStream oos) throws IOException(Code) | | 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.
Parameters: result - the RemoteInvocationResult object Parameters: oos - the ObjectOutputStream to write to throws: IOException - if thrown by I/O methods |
getContentType | public String getContentType()(Code) | | Return the content type to use for sending HTTP invoker responses.
|
prepare | public void prepare()(Code) | | Initialize this service exporter.
|
setContentType | public void setContentType(String contentType)(Code) | | Specify the content type to use for sending HTTP invoker responses.
Default is "application/x-java-serialized-object".
|
writeRemoteInvocationResult | protected void writeRemoteInvocationResult(HttpServletRequest request, HttpServletResponse response, RemoteInvocationResult result) throws IOException(Code) | | Write the given RemoteInvocationResult to the given HTTP response.
Parameters: request - current HTTP request Parameters: response - current HTTP response Parameters: result - the RemoteInvocationResult object throws: IOException - in case of I/O failure |
|
|