Class AuthenticationCommonsHttpInvokerRequestExecutor

java.lang.Object
org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor
org.springframework.remoting.httpinvoker.HttpComponentsHttpInvokerRequestExecutor
org.kuali.rice.ksb.messaging.KSBHttpInvokerRequestExecutor
org.kuali.rice.ksb.security.httpinvoker.AuthenticationCommonsHttpInvokerRequestExecutor
All Implemented Interfaces:
org.springframework.beans.factory.Aware, 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)
  • 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

    Constructors
    Constructor
    Description
    AuthenticationCommonsHttpInvokerRequestExecutor(org.apache.http.client.HttpClient httpClient, org.kuali.rice.core.api.security.credentials.CredentialsSource credentialsSource, org.kuali.rice.ksb.api.bus.ServiceConfiguration serviceConfiguration)
    Constructor that accepts the CredentialsSource and Service Info.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    setRequestBody(org.springframework.remoting.httpinvoker.HttpInvokerClientConfiguration config, org.apache.http.client.methods.HttpPost httpPost, 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.HttpComponentsHttpInvokerRequestExecutor

    createHttpPost, createRequestConfig, doExecuteRequest, executeHttpPost, getHttpClient, isGzipResponse, setConnectionRequestTimeout, setConnectTimeout, 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
  • Constructor Details

    • AuthenticationCommonsHttpInvokerRequestExecutor

      public AuthenticationCommonsHttpInvokerRequestExecutor(org.apache.http.client.HttpClient httpClient, org.kuali.rice.core.api.security.credentials.CredentialsSource credentialsSource, org.kuali.rice.ksb.api.bus.ServiceConfiguration serviceConfiguration)
      Constructor that accepts the CredentialsSource and Service Info.
      Parameters:
      httpClient - the http client
      credentialsSource - the source of credentials.
      serviceConfiguration - the service configuration.
  • Method Details