|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor
public class AuthenticationSimpleHttpInvokerRequestExecutor
Adds BASIC authentication support to SimpleHttpInvokerRequestExecutor
.
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 | |
---|---|
AuthenticationSimpleHttpInvokerRequestExecutor()
|
Method Summary | |
---|---|
protected void |
doPrepareConnection(java.net.HttpURLConnection con,
int contentLength)
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)
Called every time a HTTP invocation is made. |
Methods inherited from class org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor |
---|
doExecuteRequest, isGzipResponse, openConnection, readResponseBody, 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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AuthenticationSimpleHttpInvokerRequestExecutor()
Method Detail |
---|
protected void doPrepareConnection(java.net.HttpURLConnection con, int contentLength) throws java.io.IOException
con
- the HTTP connection to preparecontentLength
- the length of the content to send
java.io.IOException
- if thrown by HttpURLConnection methodsprotected void prepareConnection(java.net.HttpURLConnection con, int contentLength) throws java.io.IOException
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.
prepareConnection
in class org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor
con
- the HTTP connection to preparecontentLength
- the length of the content to send
java.io.IOException
- if thrown by HttpURLConnection methods
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |