public class KSBHttpInvokerRequestExecutor extends org.springframework.remoting.httpinvoker.CommonsHttpInvokerRequestExecutor
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 |
---|
KSBHttpInvokerRequestExecutor() |
KSBHttpInvokerRequestExecutor(Boolean secure) |
KSBHttpInvokerRequestExecutor(org.apache.commons.httpclient.HttpClient httpClient) |
Modifier and Type | Method and Description |
---|---|
protected DigitalSignatureService |
getDigitalSignatureService() |
protected JavaSecurityManagementService |
getJavaSecurityManagementService() |
protected InputStream |
getResponseBody(org.springframework.remoting.httpinvoker.HttpInvokerClientConfiguration config,
org.apache.commons.httpclient.methods.PostMethod postMethod)
Returns a wrapped InputStream which is responsible for verifying the digital signature on the response after all
data has been read.
|
Boolean |
getSecure() |
protected boolean |
isSecure() |
protected void |
setRequestBody(org.springframework.remoting.httpinvoker.HttpInvokerClientConfiguration config,
org.apache.commons.httpclient.methods.PostMethod postMethod,
ByteArrayOutputStream baos)
Signs the outgoing request by generating a digital signature from the bytes in the ByteArrayOutputStream and attaching the
signature and our alias to the headers of the PostMethod.
|
void |
setSecure(Boolean secure) |
protected void |
signRequest(org.apache.commons.httpclient.methods.PostMethod postMethod,
ByteArrayOutputStream baos)
Signs the request by adding headers to the PostMethod.
|
protected void |
validateResponse(org.springframework.remoting.httpinvoker.HttpInvokerClientConfiguration config,
org.apache.commons.httpclient.methods.PostMethod postMethod) |
createPostMethod, doExecuteRequest, executePostMethod, getHttpClient, isGzipResponse, setConnectTimeout, setHttpClient, setReadTimeout
createObjectInputStream, decorateInputStream, decorateOutputStream, doReadRemoteInvocationResult, doWriteRemoteInvocation, executeRequest, getBeanClassLoader, getByteArrayOutputStream, getContentType, isAcceptGzipEncoding, readRemoteInvocationResult, setAcceptGzipEncoding, setBeanClassLoader, setContentType, writeRemoteInvocation
public KSBHttpInvokerRequestExecutor()
public KSBHttpInvokerRequestExecutor(Boolean secure)
public KSBHttpInvokerRequestExecutor(org.apache.commons.httpclient.HttpClient httpClient)
protected void setRequestBody(org.springframework.remoting.httpinvoker.HttpInvokerClientConfiguration config, org.apache.commons.httpclient.methods.PostMethod postMethod, ByteArrayOutputStream baos) throws IOException
setRequestBody
in class org.springframework.remoting.httpinvoker.CommonsHttpInvokerRequestExecutor
IOException
protected InputStream getResponseBody(org.springframework.remoting.httpinvoker.HttpInvokerClientConfiguration config, org.apache.commons.httpclient.methods.PostMethod postMethod) throws IOException
getResponseBody
in class org.springframework.remoting.httpinvoker.CommonsHttpInvokerRequestExecutor
IOException
protected void validateResponse(org.springframework.remoting.httpinvoker.HttpInvokerClientConfiguration config, org.apache.commons.httpclient.methods.PostMethod postMethod) throws IOException
validateResponse
in class org.springframework.remoting.httpinvoker.CommonsHttpInvokerRequestExecutor
IOException
protected void signRequest(org.apache.commons.httpclient.methods.PostMethod postMethod, ByteArrayOutputStream baos) throws Exception
Exception
protected boolean isSecure()
protected DigitalSignatureService getDigitalSignatureService()
protected JavaSecurityManagementService getJavaSecurityManagementService()
Copyright © 2005-2015 The Kuali Foundation. All Rights Reserved.