Liferay 6.1.2-ce-ga3

com.liferay.portal.spring.remoting
Class AuthenticatingHttpInvokerRequestExecutor

java.lang.Object
  extended by org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor
      extended by org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor
          extended by 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

An HttpInvoker request executor for Spring Remoting that provides HTTP BASIC authentication information for service invocations.


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, logger
 
Constructor Summary
AuthenticatingHttpInvokerRequestExecutor()
           
 
Method Summary
 String getPassword()
           
 long getUserId()
           
protected  void prepareConnection(HttpURLConnection con, int contentLength)
          Called every time a HTTP invocation is made.
 void setPassword(String password)
           
 void setUserId(long userId)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthenticatingHttpInvokerRequestExecutor

public AuthenticatingHttpInvokerRequestExecutor()
Method Detail

getPassword

public String getPassword()

getUserId

public long getUserId()

setPassword

public void setPassword(String password)
                 throws PwdEncryptorException
Throws:
PwdEncryptorException

setUserId

public void setUserId(long userId)

prepareConnection

protected void prepareConnection(HttpURLConnection con,
                                 int contentLength)
                          throws 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:
IOException

Liferay 6.1.2-ce-ga3