|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.adobe.idp.dsc.clientsdk.ServiceClientFactory
public class ServiceClientFactory
Responsible for maintaining
client configuration and providing a ServiceClient
instance for an application
to use.
Nested Class Summary | |
---|---|
static interface |
ServiceClientFactory.ThrowHandler
A ThrowHandler instance participates in the handling of any Exception that occurs during the invocation of a service request. |
Constructor Summary | |
---|---|
ServiceClientFactory()
|
Method Summary | |
---|---|
FaultCallBackInfo |
createFaultCallBackInfo(java.lang.String serviceName,
java.lang.String operationName,
java.lang.String version)
Sets a fault callback. |
static ServiceClientFactory |
createInstance()
Creates a new instance of ServiceClientFactory that is used
to send invocation requests to a Adobe Experience Manager forms service. |
static ServiceClientFactory |
createInstance(Context aContext)
Creates a new instance of ServiceClientFactory that is used
to send invocation requests to a Adobe Experience Manager forms service. |
static ServiceClientFactory |
createInstance(java.util.Properties aProperties)
Creates a new instance of ServiceClientFactory that is used
to send invocation requests to a Adobe Experience Manager forms service. |
static ServiceClientFactory |
createInstance(java.lang.String aResourceName)
Creates a ServiceClientFactory object with a resource property. |
static ServiceClientFactory |
createInstance(java.net.URL aPropertyURL)
Creates a ServiceClientFactory with properties located at the specified URL. |
InvocationRequest |
createInvocationRequest(java.lang.String aServiceName,
java.lang.String aOperationName,
java.util.Map aParameterInput,
boolean synchronous)
Creates an InvocationRequest object using the specified Adobe Experience Manager forms service
name, operation name, parameter values, and operation mode. |
ResponseCallBackInfo |
createResponseCallBackInfo(java.lang.String serviceName,
java.lang.String operationName,
java.lang.String version)
Sets a response callback. |
Context |
getContext()
Returns the context that maintains information such as the user credential values. |
static java.util.Properties |
getDefaultProperties()
Gets the default properties to use for ServiceClientFactory's created through the empty arg createInstance call. |
com.adobe.idp.DocumentPassivationClient |
getDocumentPassivationClient(java.lang.String scheme,
java.lang.String uri)
|
java.lang.Object |
getProperty(java.lang.String aPropertyName)
Gets a property value that was used to create the ServiceClientFactory object. |
ServiceClient |
getServiceClient()
Returns an instance of a ServiceClient object. |
static void |
installThrowHandler(ServiceClientFactory.ThrowHandler th)
Replaces the global default ThrowHandler instance in order to provide specialized exception handling. |
void |
setContext(Context aContext)
Sets the context to use. |
static void |
setDefaultProperties(java.util.Properties aProps)
Sets the Default Properties to use for ServiceClientFactory's created through the empty arg createInstance call. |
void |
setProviderId(java.lang.String aConnectorId,
java.lang.String aEndpointPublicId)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceClientFactory()
Method Detail |
---|
public static void setDefaultProperties(java.util.Properties aProps)
aProps
- public static java.util.Properties getDefaultProperties()
public static void installThrowHandler(ServiceClientFactory.ThrowHandler th)
th
- the ThrowHandler instance that should be used to handle
exception sarising during invocation request/response.public static ServiceClientFactory createInstance()
ServiceClientFactory
that is used
to send invocation requests to a Adobe Experience Manager forms service. For information, see
Invoking Adobe Experience Manager forms Services.
ServiceClientFactory
, or null an error occurs.public static ServiceClientFactory createInstance(Context aContext)
ServiceClientFactory
that is used
to send invocation requests to a Adobe Experience Manager forms service.
aContext
- A com.adobe.idp.Context
object that is used for authentication and authorization purposes.
ServiceClientFactory
object, or null an error occurs.public static ServiceClientFactory createInstance(java.util.Properties aProperties) throws com.adobe.idp.dsc.DSCRuntimeException
ServiceClientFactory
that is used
to send invocation requests to a Adobe Experience Manager forms service.
aProperties
- A java.util.Properties
object that stores connection properties.
For information, see Invoking Adobe Experience Manager forms Services.
ServiceClientFactory
object, or null if an error occurs.
com.adobe.idp.dsc.DSCRuntimeException
public static ServiceClientFactory createInstance(java.lang.String aResourceName)
ServiceClientFactory
object with a resource property. The specified
resource must be located within the classpath of the client application.
aResourceName
- The name of the resource.
ServiceClientFactory
object, or null if an error occurs.public static ServiceClientFactory createInstance(java.net.URL aPropertyURL)
ServiceClientFactory
with properties located at the specified URL.
aPropertyURL
- The URL to the property file.
ServiceClientFactory
object, or null if an error occurs.public ServiceClient getServiceClient()
ServiceClient
object. For information, see Invoking Adobe Experience Manager forms Services.
ServiceClient
object.public InvocationRequest createInvocationRequest(java.lang.String aServiceName, java.lang.String aOperationName, java.util.Map aParameterInput, boolean synchronous) throws com.adobe.idp.dsc.DSCRuntimeException
InvocationRequest
object using the specified Adobe Experience Manager forms service
name, operation name, parameter values, and operation mode.
aServiceName
- The name of the Adobe Experience Manager forms service to invoke.aOperationName
- The Adobe Experience Manager forms operation name. The operation must belong to the Adobe Experience Manager forms service specified by the aServiceName
parameter.aParameterInput
- A map that contains parameter values that are required by the operation.synchronous
- Set to true
if the operation is executed
synchronously, otherwise, set it to false
.
InvocationRequest
object.
A
- DSCRuntimeException
if the service name or the operation name is null or an empty string.
com.adobe.idp.dsc.DSCRuntimeException
public Context getContext()
Context
object or null if the context has not been established.public void setContext(Context aContext)
aContext
- A Context
object.public java.lang.Object getProperty(java.lang.String aPropertyName)
ServiceClientFactory
object.
aPropertyName
- The name of the property.
public ResponseCallBackInfo createResponseCallBackInfo(java.lang.String serviceName, java.lang.String operationName, java.lang.String version)
public FaultCallBackInfo createFaultCallBackInfo(java.lang.String serviceName, java.lang.String operationName, java.lang.String version)
public void setProviderId(java.lang.String aConnectorId, java.lang.String aEndpointPublicId)
public com.adobe.idp.DocumentPassivationClient getDocumentPassivationClient(java.lang.String scheme, java.lang.String uri)
getDocumentPassivationClient
in interface com.adobe.idp.DocumentPassivationClientFactory
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |