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.
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 |
---|
AuthenticatingHttpInvokerRequestExecutor() |
Modifier and Type | Method and Description |
---|---|
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) |
doExecuteRequest, isGzipResponse, openConnection, readResponseBody, setConnectTimeout, setReadTimeout, validateResponse, writeRequestBody
createObjectInputStream, decorateInputStream, decorateOutputStream, doReadRemoteInvocationResult, doWriteRemoteInvocation, executeRequest, getBeanClassLoader, getByteArrayOutputStream, getContentType, isAcceptGzipEncoding, readRemoteInvocationResult, setAcceptGzipEncoding, setBeanClassLoader, setContentType, writeRemoteInvocation
public AuthenticatingHttpInvokerRequestExecutor()
public String getPassword()
public long getUserId()
public void setPassword(String password) throws com.liferay.portal.kernel.exception.PwdEncryptorException
com.liferay.portal.kernel.exception.PwdEncryptorException
public void setUserId(long userId)
protected void prepareConnection(HttpURLConnection con, int contentLength) throws IOException
Authorization
HTTP header property for BASIC authentication.prepareConnection
in class org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor
IOException