org.pasoa.wrappers.axishandler
Class ProvenanceHandler

java.lang.Object
  extended by org.apache.axis.handlers.BasicHandler
      extended by 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

Field Summary
static String P_RECORD_SCHEMA
           
static String P_XQUERY_SCHEMA
           
static String PHEADER_NS
           
static String PSTRUCT_NS
           
 
Fields inherited from class org.apache.axis.handlers.BasicHandler
makeLockable, name, options
 
Constructor Summary
ProvenanceHandler()
           
 
Method Summary
static void addATracer(String sid)
           
static void addIdentifiersToElement(InteractionKey irid, Element elem)
           
static URL getProvenanceService()
          Get the url of the provenance service.
static Set getTracers()
          Get the tracers for this thread.
static String interactionRecordIDToIdentifiersString(InteractionKey irid)
           
 void invoke(org.apache.axis.MessageContext msgContext)
           
static void setProvenanceService(URL provServ)
          Overides the default provenance service for this thread of execution.
 
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
 

Field Detail

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
Constructor Detail

ProvenanceHandler

public ProvenanceHandler()
Method Detail

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