|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InvocationRequest
Represents a normalized message that is
sent by a client application to invoke a specific operation of a
Adobe Experience Manager forms service that is deployed in the service container. An
InvocationRequest
defines the service name, the operation
name, the operation parameters, and whether the operation is executed
synchronously or asynchronously.
For information about sending an invocation request to a Adobe Experience Manager forms service, see Invoking Adobe Experience Manager forms Services.
Method Summary | |
---|---|
java.lang.String |
getEndPointURI()
Retrieves the endpoint URI used by this invocation request. |
java.lang.Object |
getInputParameter(java.lang.String parameterName)
Retrieves the value of the specified parameter. |
java.util.Map |
getInputParameters()
Retrieves input parameters that are specified in the invocation request as a java.util.map object. |
Context |
getInvocationContext()
Retrieves the com.adobe.idp.Context that is used in this invocation request. |
java.lang.String |
getInvocationId()
Returns the identifier value of this invocation request. |
java.lang.String |
getOperationName()
Retrieves the name of the service operation specified by this invocation request. |
java.lang.Object |
getProperty(java.lang.String propertyName)
Retrieves the value of an invocation request property. |
java.lang.Object |
getProperty(java.lang.String propertyName,
java.lang.Object defaultValue)
Retrieves an invocation request property. |
java.lang.String |
getServiceExplicitVersion()
Retrieves the explicit version of the Adobe Experience Manager forms service. |
java.lang.String |
getServiceName()
Retrieves the Adobe Experience Manager forms service name that is specified in this invocation request. |
java.lang.String |
getServiceOriginalVersion()
Retrieves the original verion of the Adobe Experience Manager forms service that is specified in this invocation request. |
ServiceConfiguration |
getTargetServiceConfiguration()
Returns the target service configuration that was resolved based on the service identifier and versioning information specified in this invocation request. |
boolean |
isSynchronous()
Determines whether the operation is going to be executed synchronously or asynchronously. |
java.lang.Object |
removeProperty(java.lang.String propertyName)
Removes an associated property from the invocation request. |
void |
setClientParameters(java.util.Map parameters)
Sets parameter values passed to the Adobe Experience Manager forms service. |
void |
setEndPointURI(java.lang.String endpointURI)
Specifies a valid endpoint URI, which is an address that is used to reference a Adobe Experience Manager forms service either locally or remotely. |
void |
setFaultCallback(FaultCallBackInfo info)
Sets a fault callback. |
void |
setInputParameter(java.lang.String parameterName,
java.lang.Object value)
Specifies an input parameter and its value. |
void |
setInputParameters(java.util.Map inputParameters)
Copies all the values from the specified map to this invocation request's input parameters. |
void |
setOperationName(java.lang.String operationName)
Specifies the service operation name that the client application wants to invoke. |
void |
setProperty(java.lang.String propertyName,
java.lang.Object value)
Specifies an invocation request property. |
void |
setResponseCallback(ResponseCallBackInfo info)
Sets a response callback. |
void |
setServiceExplicitVersion(java.lang.String explicitVersion)
Specifies the explicit version of the Adobe Experience Manager forms service that this invocation request is bound to. |
void |
setServiceName(java.lang.String serviceName)
Specifies the service name that the client application wants to interact with. |
void |
setServiceOriginalVersion(java.lang.String originalVersion)
Specifies the original version of the Adobe Experience Manager forms service. |
void |
setSynchronous(boolean synchronous)
Specifies if the operation is excuted synchronously or asynchronously. |
Method Detail |
---|
java.lang.String getServiceName()
ServiceClientFactory
object's
createInvocationRequest
method.
setServiceName()
,
createInvocationRequest()
void setServiceName(java.lang.String serviceName)
ServiceClientFactory
object's
createInvocationRequest
method. .
serviceName
- The service name.InvocationRequest.getServiceName()
,
InvocationRequest.getEndPointURI()
,
setEndPointURI()
,
createInvocationRequest()
java.lang.String getOperationName()
ServiceClientFactory
object's
createInvocationRequest
method.
InvocationRequest.setOperationName(String)
,
createInvocationRequest()
void setOperationName(java.lang.String operationName)
ServiceClientFactory
object's
createInvocationRequest
method.
operationName
- The name of the Adobe Experience Manager forms service operation.InvocationRequest.getOperationName()
,
InvocationRequest.getEndPointURI()
,
setServiceName()
,
setEndPointURI()
,
createInvocationRequest()
void setEndPointURI(java.lang.String endpointURI)
scheme://[host][:port]/[endpoint name]/[address]?[params]
For example: ejb://localhost:1099/SomeService?method=remoteMethod
.
The transport provider scheme must always be specified in an endpoint URI. The
host and port value in the endpoint URI is used by providers that support
a socket-based protocol, such as tcp, http, and udp. For example:
http://localhost:8080
.
The name of an endpoint URI is used to
refer to a pre-configured end point. If both host/port and the endpoint name
are set, the endpoint information is used. The address value of an
endpoint URI is used by providers that support addresses such as file path.
For example: file:///C:/temp/files
.
The params value of an endpoint URI
is used to specify properties that are associated with the Transport
Provider. For example: file:///inbound/myfiles?filterPattern="*.txt,*.xml"
.
Note the invocation request end point specification overrides the service name specification.
endpointURI
- The invocation request endpoint URI that references a Adobe Experience Manager forms service.InvocationRequest.getEndPointURI()
,
InvocationRequest.getServiceName()
,
InvocationRequest.setServiceName(String)
java.lang.String getEndPointURI()
InvocationRequest.getServiceName()
,
InvocationRequest.setServiceName(String)
,
InvocationRequest.setEndPointURI(String)
java.lang.String getServiceExplicitVersion()
InvocationRequest.setServiceExplicitVersion(String)
void setServiceExplicitVersion(java.lang.String explicitVersion)
explicitVersion
- The explicit version of the Adobe Experience Manager forms service.InvocationRequest.setServiceOriginalVersion(String)
,
InvocationRequest.getServiceExplicitVersion()
java.lang.String getServiceOriginalVersion()
InvocationRequest.setServiceOriginalVersion(String)
,
InvocationRequest.setServiceExplicitVersion(String)
,
InvocationRequest.getServiceExplicitVersion()
void setServiceOriginalVersion(java.lang.String originalVersion)
originalVersion
- The service original version.setServiceExplicitVersion()
,
getServiceOriginalVersion()
Context getInvocationContext()
com.adobe.idp.Context
that is used in this invocation request.
com.adobe.idp.Context
that is used in this invocation request.java.util.Map getInputParameters()
java.util.map
object. Consider the following invocation request that is
sent to the Encryption service to remove password-based encryption from a PDF document:
Map params = new HashMap();
FileInputStream fileInputStream = new FileInputStream("C:\\MapPasswordEncrypt.pdf");
Document inDoc = new Document ;(fileInputStream);
String myPassword = "password2";
params.put("inDocument", inDoc);
params.put("password", myPassword);
Properties connectProps = new Properties();
connectProps.put(ServiceClientFactoryProperties.DSC_DEFAULT_EJB_ENDPOINT, "jnp://localhost:1099");
connectProps.put(ServiceClientFactoryProperties.DSC_TRANSPORT_PROTOCOL, ServiceClientFactoryProperties.DSC_EJB_PROTOCOL);
connectProps.put(ServiceClientFactoryProperties.DSC_SERVER_TYPE, ServiceClientFactoryProperties.DSC_JBOSS_SERVER_TYPE);
ServiceClientFactory myFactory = ServiceClientFactory.createInstance(connectProps);
InvocationRequest request = myFactory.createInvocationRequest("EncryptionService", "removePDFPasswordSecurity",params,true);
In this situation, this method returns a java.util.map
object that contains a com.adobe.idp.Document
object that was passed to the inDocument
parameter and a string value that was passed to the
to the password
parameter. For information about passing parameter values as part of
an invocation request, see Invoking Adobe Experience Manager forms Services.
java.util.map
object that contains input parameters.setInputParameters()
void setInputParameters(java.util.Map inputParameters)
com.adobe.idp.Document
object, a java.util.Map
object, or a list of Document
objects.
inputParameters
- Copies all of the key pair values from this map object to
this invocation request's input parameters. Exisiting key pair values are
overwritten by the ones specified in the map object.java.lang.Object getInputParameter(java.lang.String parameterName)
com.adobe.idp.Document
object,
a Map object, or a list of Document objects.
parameterName
- The name of the input parameter.
InvocationRequest.setInputParameter(String, Object)
void setInputParameter(java.lang.String parameterName, java.lang.Object value)
parameterName
- The name of the specified input parameter.value
- The value of the specified input parameter.InvocationRequest.getInputParameter(String)
java.lang.Object getProperty(java.lang.String propertyName)
propertyName
- The name of the invocation request property.
InvocationRequest.setProperty(String, Object)
java.lang.Object getProperty(java.lang.String propertyName, java.lang.Object defaultValue)
propertyName
- The name of the property.defaultValue
- A default value if the property does not exist in the invocation request.
InvocationRequest.setProperty(String, Object)
void setProperty(java.lang.String propertyName, java.lang.Object value)
propertyName
- The name of the invocation request property.value
- The value of the specified invocation request property.InvocationRequest.getProperty(String)
java.lang.Object removeProperty(java.lang.String propertyName)
propertyName
- The name of the property to remove.
InvocationRequest.getProperty(String)
,
InvocationRequest.setProperty(String, Object)
boolean isSynchronous()
true
if the operation is executed synchronously,
otherwise false
.InvocationRequest.isSynchronous()
void setSynchronous(boolean synchronous)
synchronous
- Set to true
if the invocation request is a synchronous
request. Set to false
if the invocation request is
an asynchronous request.InvocationRequest.isSynchronous()
void setResponseCallback(ResponseCallBackInfo info)
void setFaultCallback(FaultCallBackInfo info)
void setClientParameters(java.util.Map parameters)
parameters
- A map of parameter values.java.lang.String getInvocationId()
ServiceConfiguration getTargetServiceConfiguration()
ServiceConfiguration
object that contains service configuration information.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |