public interface

HttpInvokerRequestExecutor

org.springframework.remoting.httpinvoker.HttpInvokerRequestExecutor
Known Indirect Subclasses

Class Overview

Strategy interface for actual execution of an HTTP invoker request. Used by HttpInvokerClientInterceptor and its subclass HttpInvokerProxyFactoryBean.

Two implementations are provided out of the box:

  • SimpleHttpInvokerRequestExecutor: Uses J2SE facilities to execute POST requests, without support for HTTP authentication or advanced configuration options.
  • CommonsHttpInvokerRequestExecutor: Uses Jakarta's Commons HttpClient to execute POST requests, allowing to use a preconfigured HttpClient instance (potentially with authentication, HTTP connection pooling, etc).

Summary

Public Methods
abstract RemoteInvocationResult executeRequest(HttpInvokerClientConfiguration config, RemoteInvocation invocation)
Execute a request to send the given remote invocation.

Public Methods

public abstract RemoteInvocationResult executeRequest (HttpInvokerClientConfiguration config, RemoteInvocation invocation)

Execute a request to send the given remote invocation.

Parameters
config the HTTP invoker configuration that specifies the target service
invocation the RemoteInvocation to execute
Returns
  • the RemoteInvocationResult object
Throws
IOException if thrown by I/O operations
ClassNotFoundException if thrown during deserialization
Exception in case of general errors