These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework RemoteInvocationSerializingExporter class.
* @see #doWriteRemoteInvocationResult */ protected void writeRemoteInvocationResult( HttpExchange exchange, RemoteInvocationResult result, OutputStream os) throws IOException { ObjectOutputStream oos = createObjectOutputStream(decorateOutputStream(exchange, os)); doWriteRemoteInvocationResult(result, oos); oos.flush(); } /** * Return the OutputStream to use for writing remote invocation results, * potentially decorating the given original OutputStream. * <p>The default implementation returns the given stream as-is. * Can be overridden, for example, for custom encryption or compression. * @param exchange current HTTP request/response * @param os the original OutputStream * @return the potentially decorated OutputStream * @throws java.io.IOException in case of I/O failure */
* @see HttpInvokerProxyFactoryBean * @see org.springframework.remoting.rmi.RmiServiceExporter * @see org.springframework.remoting.caucho.HessianServiceExporter * @see org.springframework.remoting.caucho.BurlapServiceExporter */ public class HttpInvokerServiceExporter extends RemoteInvocationSerializingExporter implements HttpRequestHandler { /** * Reads a remote invocation from the request, executes it, * and writes the remote invocation result to the response. * @see #readRemoteInvocation(HttpServletRequest) * @see #invokeAndCreateResult(org.springframework.remoting.support.RemoteInvocation, Object) * @see #writeRemoteInvocationResult(HttpServletRequest, HttpServletResponse, RemoteInvocationResult) */ @Override public void handleRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try {