Class AuthenticationSimpleHttpInvokerRequestExecutor
- java.lang.Object
-
- org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor
-
- org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor
-
- org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanClassLoaderAware
,org.springframework.remoting.httpinvoker.HttpInvokerRequestExecutor
@Deprecated public class AuthenticationSimpleHttpInvokerRequestExecutor extends org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor
Deprecated.as of 5.6.0 with no replacementAdds BASIC authentication support toSimpleHttpInvokerRequestExecutor
.
-
-
Field Summary
-
Fields inherited from class org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor
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
-
-
Constructor Summary
Constructors Constructor Description AuthenticationSimpleHttpInvokerRequestExecutor()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
doPrepareConnection(java.net.HttpURLConnection con, int contentLength)
Deprecated.Provided so subclasses can perform additional configuration if required (eg set additional request headers for non-security related information etc).protected void
prepareConnection(java.net.HttpURLConnection con, int contentLength)
Deprecated.Called every time a HTTP invocation is made.-
Methods inherited from class org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor
doExecuteRequest, isGzipResponse, openConnection, readResponseBody, setConnectTimeout, setReadTimeout, validateResponse, writeRequestBody
-
Methods inherited from class org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor
createObjectInputStream, decorateInputStream, decorateOutputStream, doReadRemoteInvocationResult, doWriteRemoteInvocation, executeRequest, getBeanClassLoader, getByteArrayOutputStream, getContentType, isAcceptGzipEncoding, readRemoteInvocationResult, setAcceptGzipEncoding, setBeanClassLoader, setContentType, writeRemoteInvocation
-
-
-
-
Method Detail
-
doPrepareConnection
protected void doPrepareConnection(java.net.HttpURLConnection con, int contentLength) throws java.io.IOException
Deprecated.Provided so subclasses can perform additional configuration if required (eg set additional request headers for non-security related information etc).- Parameters:
con
- the HTTP connection to preparecontentLength
- the length of the content to send- Throws:
java.io.IOException
-
prepareConnection
protected void prepareConnection(java.net.HttpURLConnection con, int contentLength) throws java.io.IOException
Deprecated.Called every time a HTTP invocation is made.Simply allows the parent to setup the connection, and then adds an
Authorization
HTTP header property that will be used for BASIC authentication.The
SecurityContextHolder
is used to obtain the relevant principal and credentials.- Overrides:
prepareConnection
in classorg.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor
- Parameters:
con
- the HTTP connection to preparecontentLength
- the length of the content to send- Throws:
java.io.IOException
- if thrown by HttpURLConnection methods
-
-