Class AlfrescoConnector
java.lang.Object
org.springframework.extensions.webscripts.connector.AbstractConnector
org.springframework.extensions.webscripts.connector.HttpConnector
org.springframework.extensions.webscripts.connector.AlfrescoConnector
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,Connector
An implementation of an Alfresco Connector that can be used to conncet
to an Alfresco Repository and issue URL invokes against it.
The Alfresco Connector extends the HttpConnector and provides the additional functionality of apply authentication (usually a ticket or a cookie) onto the outgoing request.
The authentication information is retrieved from the connector session.
- Author:
- muzquiano, kevinr
-
Field Summary
Fields inherited from class org.springframework.extensions.webscripts.connector.AbstractConnector
connectorSession, descriptor, endpoint -
Constructor Summary
ConstructorsConstructorDescriptionAlfrescoConnector(RemoteConfigElement.ConnectorDescriptor descriptor, String endpoint) Instantiates a new Alfresco Connector. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyRequestAuthentication(RemoteClient remoteClient, ConnectorContext context) Stamps Credentials values onto the remote clientMethods inherited from class org.springframework.extensions.webscripts.connector.HttpConnector
applyRequestHeaders, call, call, call, call, initRemoteClient, processResponseMethods inherited from class org.springframework.extensions.webscripts.connector.AbstractConnector
buildRemoteClient, call, getConnectorSession, getCredentials, getEndpoint, setApplicationContext, setConnectorSession, setCredentials, setEndpoint, toString
-
Constructor Details
-
AlfrescoConnector
Instantiates a new Alfresco Connector.- Parameters:
descriptor- the descriptorendpoint- the endpoint
-
-
Method Details
-
applyRequestAuthentication
Description copied from class:HttpConnectorStamps Credentials values onto the remote client- Overrides:
applyRequestAuthenticationin classHttpConnector- Parameters:
remoteClient- RemoteClientcontext- ConnectorContext
-