Home » synapse-1.2-src » org.apache.synapse.util.xpath » [javadoc | source]
org.apache.synapse.util.xpath
public class: SynapseXPathVariableContext [javadoc | source]
java.lang.Object
   org.apache.synapse.util.xpath.SynapseXPathVariableContext

All Implemented Interfaces:
    org.jaxen.VariableContext

Jaxen variable context for the XPath variables implicitly exposed by Synapse. It exposes the following variables:
body
The SOAP 1.1 or 1.2 body element.
header
The SOAP 1.1 or 1.2 header element.
Constructor:
 public SynapseXPathVariableContext(VariableContext parent,
    MessageContext synCtx) 

    Initializes the SynapseVariableContext with the specified context

    Parameters:
    parent - the parent variable context
    synCtx - context to be initialized for the variable resolution
 public SynapseXPathVariableContext(VariableContext parent,
    SOAPEnvelope env) 

    Initializes the SynapseVariableContext with the specified envelope

    Parameters:
    parent - the parent variable context
    env - envelope to be initialized for the variable resolution
Method from org.apache.synapse.util.xpath.SynapseXPathVariableContext Summary:
getVariableValue
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.synapse.util.xpath.SynapseXPathVariableContext Detail:
 public Object getVariableValue(String namespaceURI,
    String prefix,
    String localName) throws UnresolvableException 
    Gets the variable values resolved from the context. This includes the
    body
    The SOAP 1.1 or 1.2 body element.
    header
    The SOAP 1.1 or 1.2 header element.
    and the following variable prefixes
    ctx
    Prefix for Synapse MessageContext properties
    axis2
    Prefix for Axis2 MessageContext properties
    trp
    Prefix for the transport headers
    If the variable is unknown, this method attempts to resolve it using the parent variable context.