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).
Public Methods
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