org.pasoa.wrappers.axishandler
Class ProvenanceHandler
java.lang.Object
org.apache.axis.handlers.BasicHandler
org.pasoa.wrappers.axishandler.ProvenanceHandler
- All Implemented Interfaces:
- org.apache.axis.Handler, Serializable
- public class ProvenanceHandler
- extends org.apache.axis.handlers.BasicHandler
An axis handler that automatically sends all
request/responses to a provenance service
- Author:
- Paul Groth pg03r@ecs.soton.ac.uk
- See Also:
- Serialized Form
Fields inherited from class org.apache.axis.handlers.BasicHandler |
makeLockable, name, options |
Methods inherited from class org.apache.axis.handlers.BasicHandler |
canHandleBlock, cleanup, generateWSDL, getDeploymentData, getName, getOption, getOptions, getUnderstoodHeaders, init, initHashtable, onFault, setName, setOption, setOptionDefault, setOptions, setOptionsLockable |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
P_RECORD_SCHEMA
public static final String P_RECORD_SCHEMA
- See Also:
- Constant Field Values
P_XQUERY_SCHEMA
public static final String P_XQUERY_SCHEMA
- See Also:
- Constant Field Values
PHEADER_NS
public static final String PHEADER_NS
- See Also:
- Constant Field Values
PSTRUCT_NS
public static final String PSTRUCT_NS
- See Also:
- Constant Field Values
ProvenanceHandler
public ProvenanceHandler()
invoke
public void invoke(org.apache.axis.MessageContext msgContext)
addIdentifiersToElement
public static void addIdentifiersToElement(InteractionKey irid,
Element elem)
throws Exception
- Throws:
Exception
interactionRecordIDToIdentifiersString
public static String interactionRecordIDToIdentifiersString(InteractionKey irid)
setProvenanceService
public static void setProvenanceService(URL provServ)
- Overides the default provenance service for this thread of execution.
- Parameters:
provServ
- the url of the provenance service
getProvenanceService
public static URL getProvenanceService()
- Get the url of the provenance service. If a service has not yet been
invoked this will return null. After invocation this will return the last
provenance service used in this thread.
- Returns:
- the URL of the provenance service in use
addATracer
public static void addATracer(String sid)
getTracers
public static Set getTracers()
- Get the tracers for this thread. If a service has not yet been invoked
this will return null, unless specifically set. The handler will generate
a tracer automatically for every thread.
- Returns:
- the session id in use for this thread