com.liferay.portal.spring.remoting
Class AuthenticatingHttpInvokerRequestExecutor
java.lang.Object
org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor
org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor
com.liferay.portal.spring.remoting.AuthenticatingHttpInvokerRequestExecutor
- All Implemented Interfaces:
- org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.remoting.httpinvoker.HttpInvokerRequestExecutor
public class AuthenticatingHttpInvokerRequestExecutor
- extends org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor
View Source
An HttpInvoker request executor for Spring Remoting that provides HTTP BASIC
authentication information for service invocations.
- Author:
- Joel Kozikowski
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, logger |
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 |
AuthenticatingHttpInvokerRequestExecutor
public AuthenticatingHttpInvokerRequestExecutor()
getUserId
public long getUserId()
setUserId
public void setUserId(long userId)
getPassword
public java.lang.String getPassword()
setPassword
public void setPassword(java.lang.String password)
throws com.liferay.portal.PwdEncryptorException
- Throws:
com.liferay.portal.PwdEncryptorException
prepareConnection
protected void prepareConnection(java.net.HttpURLConnection con,
int contentLength)
throws java.io.IOException
- Called every time a HTTP invocation is made. This implementation allows
the parent to setup the connection, and then adds an
Authorization
HTTP header property for BASIC authentication.
- Overrides:
prepareConnection
in class org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor
- Throws:
java.io.IOException