Spring Framework HttpInvokerServiceExporter - 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 HttpInvokerServiceExporter class.

This code example shows how to use the following methods:setServiceInterface
 */ 
public class ServiceRegistryHttpInvokerServiceExporter extends HttpInvokerServiceExporter { 
	 
	private ServiceRegistry serviceRegistry; 
	 
	public ServiceRegistryHttpInvokerServiceExporter() { 
		super.setServiceInterface(ServiceRegistry.class); 
	} 
 
	public ServiceRegistry getServiceRegistry() { 
		return serviceRegistry; 
	} 
 
	public void setServiceRegistry(ServiceRegistry serviceRegistry) { 
		super.setService(serviceRegistry); 
		this.serviceRegistry = serviceRegistry; 
	} 
 
	public void handleRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 
 
5
CodeRank
This code example shows how to use the following methods:
 
import org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter; 
 
/** 
 */ 
public class RemoteHostHttpInvokerServiceExporter extends HttpInvokerServiceExporter { 
 
    /** 
     */ 
    @Override 
    protected InputStream decorateInputStream(HttpServletRequest request, InputStream is) throws IOException { 
        RemoteHostThreadLocal.INSTANCE.set(request.getRemoteHost()); 
        return is; 
    } 
 
    /** 
     */ 
    @Override 
    protected OutputStream decorateOutputStream(HttpServletRequest request, HttpServletResponse response, OutputStream os) throws IOException { 
        return os; 
4
CodeRank