Spring Framework RemoteInvocationSerializingExporter - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework RemoteInvocationSerializingExporter class.

This code example shows how to use the following methods:createObjectOutputStream, doWriteRemoteInvocationResult
	 * @see #doWriteRemoteInvocationResult 
	protected void writeRemoteInvocationResult( 
			HttpExchange exchange, RemoteInvocationResult result, OutputStream os) throws IOException {
		ObjectOutputStream oos = createObjectOutputStream(decorateOutputStream(exchange, os));
		doWriteRemoteInvocationResult(result, oos);
	 * 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 
This code example shows how to use the following methods:
 * @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) 
	public void handleRequest(HttpServletRequest request, HttpServletResponse response) 
			throws ServletException, IOException { 
		try { 
See Code Examples for Spring Framework RemoteInvocationSerializingExporter Methods: