|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor
Abstract base implementation of the HttpInvokerRequestExecutor interface.
Preimplements serialization of RemoteInvocation objects and deserialization of RemoteInvocationResults objects.
doExecuteRequest(org.springframework.remoting.httpinvoker.HttpInvokerClientConfiguration, java.io.ByteArrayOutputStream)| Field Summary | |
protected static java.lang.String |
CONTENT_TYPE_SERIALIZED_OBJECT
|
protected static java.lang.String |
HTTP_HEADER_CONTENT_LENGTH
|
protected static java.lang.String |
HTTP_HEADER_CONTENT_TYPE
|
protected static java.lang.String |
HTTP_METHOD_POST
|
protected org.apache.commons.logging.Log |
logger
|
| Constructor Summary | |
AbstractHttpInvokerRequestExecutor()
|
|
| Method Summary | |
protected abstract RemoteInvocationResult |
doExecuteRequest(HttpInvokerClientConfiguration config,
java.io.ByteArrayOutputStream baos)
Execute a request to send the given serialized remote invocation. |
RemoteInvocationResult |
executeRequest(HttpInvokerClientConfiguration config,
RemoteInvocation invocation)
Execute a request to send the given remote invocation. |
protected java.io.ByteArrayOutputStream |
getByteArrayOutputStream(RemoteInvocation invocation)
Serialize the given RemoteInvocation into a ByteArrayOutputStream. |
protected RemoteInvocationResult |
readRemoteInvocationResult(java.io.InputStream is)
Deserialize a RemoteInvocationResult from the given InputStream. |
protected void |
writeRemoteInvocation(RemoteInvocation invocation,
java.io.OutputStream os)
Serialize the given RemoteInvocation to the given OutputStream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final java.lang.String CONTENT_TYPE_SERIALIZED_OBJECT
protected static final java.lang.String HTTP_HEADER_CONTENT_TYPE
protected static final java.lang.String HTTP_HEADER_CONTENT_LENGTH
protected static final java.lang.String HTTP_METHOD_POST
protected final org.apache.commons.logging.Log logger
| Constructor Detail |
public AbstractHttpInvokerRequestExecutor()
| Method Detail |
public final RemoteInvocationResult executeRequest(HttpInvokerClientConfiguration config,
RemoteInvocation invocation)
throws java.io.IOException,
java.lang.ClassNotFoundException
HttpInvokerRequestExecutor
executeRequest in interface HttpInvokerRequestExecutorconfig - the HTTP invoker configuration that specifies the
target serviceinvocation - the RemoteInvocation to execute
java.lang.ClassNotFoundException - if thrown during deserialization
java.io.IOException - if thrown by I/O operations
protected java.io.ByteArrayOutputStream getByteArrayOutputStream(RemoteInvocation invocation)
throws java.io.IOException
invocation - the RemoteInvocation object
java.io.IOException - if thrown by I/O methods
protected void writeRemoteInvocation(RemoteInvocation invocation,
java.io.OutputStream os)
throws java.io.IOException
invocation - the RemoteInvocation objectos - the OutputStream to write to
java.io.IOException - if thrown by I/O methods
protected abstract RemoteInvocationResult doExecuteRequest(HttpInvokerClientConfiguration config,
java.io.ByteArrayOutputStream baos)
throws java.io.IOException,
java.lang.ClassNotFoundException
Implementations will usually call readRemoteInvocationResult to deserialize a returned RemoteInvocationResult object.
config - the HTTP invoker configuration that specifies the
target servicebaos - the ByteArrayOutputStream that contains the serialized
RemoteInvocation object
java.io.IOException - if thrown by I/O operations
java.lang.ClassNotFoundException - if thrown during deserializationreadRemoteInvocationResult(java.io.InputStream)
protected RemoteInvocationResult readRemoteInvocationResult(java.io.InputStream is)
throws java.io.IOException,
java.lang.ClassNotFoundException
is - the InputStream to read from
java.io.IOException - if thrown by I/O methods
java.lang.ClassNotFoundException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||