public class ClusteredHttpInvokerRequestExecutor
extends org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor
ServerSelector
.CONTENT_TYPE_SERIALIZED_OBJECT, ENCODING_GZIP, HTTP_HEADER_ACCEPT_ENCODING, HTTP_HEADER_ACCEPT_LANGUAGE, HTTP_HEADER_CONTENT_ENCODING, HTTP_HEADER_CONTENT_LENGTH, HTTP_HEADER_CONTENT_TYPE, HTTP_METHOD_POST, logger
Constructor and Description |
---|
ClusteredHttpInvokerRequestExecutor(ServerSelector serverSelector) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
currentServiceUrl(java.lang.String url,
org.springframework.remoting.httpinvoker.HttpInvokerClientConfiguration config) |
protected org.springframework.remoting.support.RemoteInvocationResult |
doExecuteRequest(org.springframework.remoting.httpinvoker.HttpInvokerClientConfiguration config,
java.io.ByteArrayOutputStream baos) |
protected org.springframework.remoting.support.RemoteInvocationResult |
doReadRemoteInvocationResult(java.io.ObjectInputStream ois) |
protected void |
doWriteRemoteInvocation(org.springframework.remoting.support.RemoteInvocation invocation,
java.io.ObjectOutputStream oos) |
protected java.net.HttpURLConnection |
openConnection(java.lang.String serviceUrl) |
protected java.lang.String |
printStopWatch(org.springframework.util.StopWatch sw) |
isGzipResponse, openConnection, prepareConnection, readResponseBody, setConnectTimeout, setReadTimeout, validateResponse, writeRequestBody
createObjectInputStream, decorateInputStream, decorateOutputStream, executeRequest, getBeanClassLoader, getByteArrayOutputStream, getContentType, isAcceptGzipEncoding, readRemoteInvocationResult, setAcceptGzipEncoding, setBeanClassLoader, setContentType, writeRemoteInvocation
public ClusteredHttpInvokerRequestExecutor(ServerSelector serverSelector)
protected org.springframework.remoting.support.RemoteInvocationResult doExecuteRequest(org.springframework.remoting.httpinvoker.HttpInvokerClientConfiguration config, java.io.ByteArrayOutputStream baos) throws java.io.IOException, java.lang.ClassNotFoundException
doExecuteRequest
in class org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor
java.io.IOException
java.lang.ClassNotFoundException
@Nullable protected java.lang.String currentServiceUrl(java.lang.String url, org.springframework.remoting.httpinvoker.HttpInvokerClientConfiguration config)
protected java.net.HttpURLConnection openConnection(java.lang.String serviceUrl) throws java.io.IOException
java.io.IOException
protected void doWriteRemoteInvocation(org.springframework.remoting.support.RemoteInvocation invocation, java.io.ObjectOutputStream oos) throws java.io.IOException
doWriteRemoteInvocation
in class org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor
java.io.IOException
protected org.springframework.remoting.support.RemoteInvocationResult doReadRemoteInvocationResult(java.io.ObjectInputStream ois) throws java.io.IOException, java.lang.ClassNotFoundException
doReadRemoteInvocationResult
in class org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor
java.io.IOException
java.lang.ClassNotFoundException
protected java.lang.String printStopWatch(org.springframework.util.StopWatch sw)