| java.lang.Object de.danet.an.workflow.clients.wfxml.ResourceReference
ResourceReference | class ResourceReference (Code) | | This class wraps the URI encoding and decoding of the
ReceiverKey that is used in the ASAP header. Moreover is it
used to retrieve the attributes that were given in a request to this
service.
The ReceiverKey is a
java.net.URI with the following
structure
<schema:>//<authority>/<base path>[?<query>]
The parts up to base path describe the path to this service.
For the servlet this is e.g. http://localhost:8080/wfxml .
All parts that are needed to identify the specific instance are encoded in
the query part of the URI as key-value pairs.
The instance is given as such a query parameter and names the
addressed resource instance of the request. If it is omitted the
Service Registry is taken as the instance.
A request to the
Factory for the process proc that is described in
package pkg is made using the following
ReceiverKey , (assuming the base path above):
http://localhost:8080/wfxml?Resource=Factory&PackageId=pkg&ProcessId=proc
TODO: Add the unique identifier for the workflow engine.
author: Dirk Schnelle |
ResourceReference | public ResourceReference(String baseUrl, ProcessDefinition procDef)(Code) | | Create a new instance that references a process definition.
Parameters: baseUrl - the sender base Parameters: procDef - the process definition |
ResourceReference | public ResourceReference(String baseUrl, String packageId, String processId, String processKey)(Code) | | Create a new instance that references an instance.
Parameters: baseUrl - Parameters: packageId - Parameters: processId - Parameters: processKey - |
ResourceReference | public ResourceReference(String baseUrl, Process process) throws RemoteException(Code) | | Create a new instance that references an instance.
Parameters: baseUrl - Parameters: process - |
ResourceReference | public ResourceReference(String baseUrl, Activity activity) throws RemoteException(Code) | | Create a new instance that references an activity.
Parameters: baseUrl - the base URL Parameters: activity - the activity |
ResourceReference | public ResourceReference(String baseUrl, String key) throws ASAPException(Code) | | Constructs a new object.
Parameters: baseUrl - base url of the main servlet. Parameters: key - ReceiverKey of a request. exception: ASAPException - Error parsing the receiver key. |
getActivityKey | public String getActivityKey()(Code) | | Retrieves the activity key as it is specified in the
ReceiverKey .
activity key. |
getBaseUrl | public String getBaseUrl()(Code) | | Retrieves the base URL of this WfXML server.
base URL. |
getNamespace | public String getNamespace()(Code) | | Generates a namespace for the current resource.
Namespaces are defined for the factories and are used in the instances.
namespace. |
getPackageId | public String getPackageId()(Code) | | Retrieves the package id as it is specified in the
ReceiverKey .
package id. |
getProcessId | public String getProcessId()(Code) | | Retrieves the process id as it is specified in the
ReceiverKey .
process id. |
getProcessKey | public String getProcessKey()(Code) | | Retrieves the process key as it is specified in the
ReceiverKey .
process id. |
getResource | public String getResource()(Code) | | Retrieves the name of the resource to which the receiver key points to.
name of the resource. |
getResourceKey | public String getResourceKey()(Code) | | Retrieves the sender key.
sender key for the observer. |
|
|