org.kuali.rice.ksb.security.httpinvoker
Class AuthenticationCommonsHttpInvokerRequestExecutor
java.lang.Object
org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor
org.springframework.remoting.httpinvoker.CommonsHttpInvokerRequestExecutor
org.kuali.rice.ksb.messaging.KSBHttpInvokerRequestExecutor
org.kuali.rice.ksb.security.httpinvoker.AuthenticationCommonsHttpInvokerRequestExecutor
- All Implemented Interfaces:
- org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.remoting.httpinvoker.HttpInvokerRequestExecutor
public final class AuthenticationCommonsHttpInvokerRequestExecutor
- extends KSBHttpInvokerRequestExecutor
Extension to KSBHttpInvokerRequestExecutor
that retrieves
credentials from the CredentialsSource and places them in a BASIC HTTP
Authorization header.
- Since:
- 0.9
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
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 |
Method Summary |
protected void |
setRequestBody(org.springframework.remoting.httpinvoker.HttpInvokerClientConfiguration config,
org.apache.commons.httpclient.methods.PostMethod postMethod,
ByteArrayOutputStream baos)
Overridden to obtain the Credentials from the CredentialsSource and pass
them via HTTP BASIC Authorization. |
Methods inherited from class org.springframework.remoting.httpinvoker.CommonsHttpInvokerRequestExecutor |
createPostMethod, doExecuteRequest, executePostMethod, getHttpClient, isGzipResponse, setHttpClient, setReadTimeout |
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 |
credentialsSource
private final CredentialsSource credentialsSource
- Source of the credentials to pass via BASIC AUTH.
serviceInfo
private final ServiceInfo serviceInfo
- Details about the service that the CredentialsSource may need.
AuthenticationCommonsHttpInvokerRequestExecutor
public AuthenticationCommonsHttpInvokerRequestExecutor(org.apache.commons.httpclient.HttpClient httpClient,
CredentialsSource credentialsSource,
ServiceInfo serviceInfo)
- Constructor that accepts the CredentialsSource and Service Info.
- Parameters:
credentialsSource
- the source of credentials.serviceInfo
- information about the service.
setRequestBody
protected void setRequestBody(org.springframework.remoting.httpinvoker.HttpInvokerClientConfiguration config,
org.apache.commons.httpclient.methods.PostMethod postMethod,
ByteArrayOutputStream baos)
throws IOException
- Overridden to obtain the Credentials from the CredentialsSource and pass
them via HTTP BASIC Authorization.
- Overrides:
setRequestBody
in class KSBHttpInvokerRequestExecutor
- Throws:
IOException
Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.