org.kuali.rice.kew.config
Class ThinClientResourceLoader

java.lang.Object
  extended by org.kuali.rice.core.api.lifecycle.BaseLifecycle
      extended by org.kuali.rice.core.api.resourceloader.ResourceLoaderContainer
          extended by org.kuali.rice.core.framework.resourceloader.BaseResourceLoader
              extended by org.kuali.rice.kew.config.ThinClientResourceLoader
All Implemented Interfaces:
Lifecycle, ObjectLoader, ResourceLoader, ServiceLocator

public class ThinClientResourceLoader
extends BaseResourceLoader

Initializes and loads webservice resources for the Embedded plugin. Currently, the only 2 services which are exposed are the utility service and the document actions service.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Field Summary
static String CONNECTION_MANAGER_TIMEOUT
           
static String CONNECTION_TIMEOUT
           
static String DOCUMENT_ENDPOINT
           
static String GROUP_ENDPOINT
           
static String IDENTITY_ENDPOINT
           
static String MAX_CONNECTIONS
           
static String SECURE_DOCUMENT_ENDPOINT
           
static String SECURE_GROUP_ENDPOINT
           
static String SECURE_IDENTITY_ENDPOINT
           
static String SECURE_UTILITY_ENDPOINT
           
static String UTILITY_ENDPOINT
           
 
Fields inherited from interface org.kuali.rice.core.api.resourceloader.ResourceLoader
EMBEDDED_CLIENT_APP_RESOURCE_LOADER, EMBEDDED_PLUGIN, KSB_CONFIGURER_CONTAINER_NAME, PLUGIN_REGISTRY_LOADER_NAME, RMI_PLUGIN, ROOT_RESOURCE_LOADER_NAME, WEB_SERVICE_PLUGIN
 
Constructor Summary
ThinClientResourceLoader()
           
 
Method Summary
protected  void configureDefaultHttpClientParams(org.apache.commons.httpclient.params.HttpParams params)
           
 GroupService getGroupService()
           
protected  org.apache.commons.httpclient.HttpClient getHttpClient()
          Creates a commons HttpClient for service invocation.
 IdentityService getIdentityService()
           
 Object getService(QName serviceQName)
          Fetches the service with the given name.
protected  Object getServiceProxy(Class serviceInterface, String endpointParam, String secureEndpointParam)
           
protected  void initializeHttpClientParams()
           
 void start()
           
 void stop()
           
 
Methods inherited from class org.kuali.rice.core.framework.resourceloader.BaseResourceLoader
getClassLoader, getContents, getObject, getServiceLocator, isPostProcessContainer, postProcessObject, postProcessService, setClassLoader, setPostProcessContainer
 
Methods inherited from class org.kuali.rice.core.api.resourceloader.ResourceLoaderContainer
addResourceLoader, addResourceLoaderFirst, containsResourceLoader, getName, getResourceLoader, getResourceLoaderNames, getResourceLoaders, removeAllResourceLoaders, removeResourceLoader, setName, toString
 
Methods inherited from class org.kuali.rice.core.api.lifecycle.BaseLifecycle
isStarted, setStarted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.core.api.resourceloader.ResourceLoader
addResourceLoader, addResourceLoaderFirst, getName, getResourceLoader, getResourceLoaderNames, getResourceLoaders, removeResourceLoader, setName
 
Methods inherited from interface org.kuali.rice.core.api.lifecycle.Lifecycle
isStarted
 

Field Detail

MAX_CONNECTIONS

public static final String MAX_CONNECTIONS
See Also:
Constant Field Values

CONNECTION_TIMEOUT

public static final String CONNECTION_TIMEOUT
See Also:
Constant Field Values

CONNECTION_MANAGER_TIMEOUT

public static final String CONNECTION_MANAGER_TIMEOUT
See Also:
Constant Field Values

DOCUMENT_ENDPOINT

public static final String DOCUMENT_ENDPOINT
See Also:
Constant Field Values

SECURE_DOCUMENT_ENDPOINT

public static final String SECURE_DOCUMENT_ENDPOINT
See Also:
Constant Field Values

UTILITY_ENDPOINT

public static final String UTILITY_ENDPOINT
See Also:
Constant Field Values

SECURE_UTILITY_ENDPOINT

public static final String SECURE_UTILITY_ENDPOINT
See Also:
Constant Field Values

IDENTITY_ENDPOINT

public static final String IDENTITY_ENDPOINT
See Also:
Constant Field Values

SECURE_IDENTITY_ENDPOINT

public static final String SECURE_IDENTITY_ENDPOINT
See Also:
Constant Field Values

GROUP_ENDPOINT

public static final String GROUP_ENDPOINT
See Also:
Constant Field Values

SECURE_GROUP_ENDPOINT

public static final String SECURE_GROUP_ENDPOINT
See Also:
Constant Field Values
Constructor Detail

ThinClientResourceLoader

public ThinClientResourceLoader()
Method Detail

start

public void start()
           throws Exception
Specified by:
start in interface Lifecycle
Overrides:
start in class BaseResourceLoader
Throws:
Exception

stop

public void stop()
          throws Exception
Specified by:
stop in interface Lifecycle
Overrides:
stop in class BaseResourceLoader
Throws:
Exception

getService

public Object getService(QName serviceQName)
Description copied from interface: ServiceLocator
Fetches the service with the given name.

Specified by:
getService in interface ServiceLocator
Overrides:
getService in class BaseResourceLoader

getIdentityService

public IdentityService getIdentityService()

getGroupService

public GroupService getGroupService()

getServiceProxy

protected Object getServiceProxy(Class serviceInterface,
                                 String endpointParam,
                                 String secureEndpointParam)

getHttpClient

protected org.apache.commons.httpclient.HttpClient getHttpClient()
Creates a commons HttpClient for service invocation. Config parameters that start with http.* are used to configure the client. TODO we need to add support for other invocation protocols and implementations, but for now...


initializeHttpClientParams

protected void initializeHttpClientParams()

configureDefaultHttpClientParams

protected void configureDefaultHttpClientParams(org.apache.commons.httpclient.params.HttpParams params)


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.