public final class AuthenticationCommonsHttpInvokerRequestExecutor extends KSBHttpInvokerRequestExecutor
KSBHttpInvokerRequestExecutor
that retrieves
credentials from the CredentialsSource and places them in a BASIC HTTP
Authorization header.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 |
---|
AuthenticationCommonsHttpInvokerRequestExecutor(org.apache.commons.httpclient.HttpClient httpClient,
CredentialsSource credentialsSource,
ServiceConfiguration serviceConfiguration)
Constructor that accepts the CredentialsSource and Service Info.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getDigitalSignatureService, getJavaSecurityManagementService, getResponseBody, getSecure, isSecure, setSecure, signRequest, validateResponse
createPostMethod, doExecuteRequest, executePostMethod, getHttpClient, isGzipResponse, setConnectTimeout, setHttpClient, setReadTimeout
createObjectInputStream, decorateInputStream, decorateOutputStream, doReadRemoteInvocationResult, doWriteRemoteInvocation, executeRequest, getBeanClassLoader, getByteArrayOutputStream, getContentType, isAcceptGzipEncoding, readRemoteInvocationResult, setAcceptGzipEncoding, setBeanClassLoader, setContentType, writeRemoteInvocation
public AuthenticationCommonsHttpInvokerRequestExecutor(org.apache.commons.httpclient.HttpClient httpClient, CredentialsSource credentialsSource, ServiceConfiguration serviceConfiguration)
credentialsSource
- the source of credentials.serviceInfo
- information about the service.protected void setRequestBody(org.springframework.remoting.httpinvoker.HttpInvokerClientConfiguration config, org.apache.commons.httpclient.methods.PostMethod postMethod, ByteArrayOutputStream baos) throws IOException
setRequestBody
in class KSBHttpInvokerRequestExecutor
IOException
Copyright © 2005-2015 The Kuali Foundation. All Rights Reserved.