issrg.gt4.util
Class ActionParameter

java.lang.Object
  extended by issrg.gt4.util.ActionParameter

public class ActionParameter
extends java.lang.Object

This class is used to store a specific parameter element path for a given operation for a said service. The parameter path is a list of QNames, where each QName is QName of a child element of previous QName element. The root of this list is the top level element in the SOAPBody. For example, an array of QName with element 0 as {http://foo.bar.edu}, element 1 as outer;{http://foo.bar.edu}inner, and element 2 as {http://foo.bar.edu}innermost would be a parameter path to the element innermost where inner is child of outer and innermost is a child of inner.


Field Summary
static java.lang.String DELIMITER
           
static java.lang.String PARAMETER_DELIMITER
           
 
Constructor Summary
ActionParameter(java.lang.String servicePath_, java.lang.String methodName_, javax.xml.namespace.QName[] parameterPath_)
           
 
Method Summary
 java.lang.String getMethodName()
           
static java.util.HashMap getParametersFromFile(java.io.File file)
           Reads a configuration file with information about the parameters to extract from SOAP Message.
 javax.xml.namespace.QName[] getParmeterPath()
           
 java.lang.String getServicePath()
           
 java.lang.String toString()
          The format used for string representation is as follows: servicePath?methodName?paramQName1;paramQName2;paramQNamen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DELIMITER

public static final java.lang.String DELIMITER
See Also:
Constant Field Values

PARAMETER_DELIMITER

public static final java.lang.String PARAMETER_DELIMITER
See Also:
Constant Field Values
Constructor Detail

ActionParameter

public ActionParameter(java.lang.String servicePath_,
                       java.lang.String methodName_,
                       javax.xml.namespace.QName[] parameterPath_)
Method Detail

getServicePath

public java.lang.String getServicePath()

getMethodName

public java.lang.String getMethodName()

getParmeterPath

public javax.xml.namespace.QName[] getParmeterPath()

toString

public java.lang.String toString()
The format used for string representation is as follows: servicePath?methodName?paramQName1;paramQName2;paramQNamen

Overrides:
toString in class java.lang.Object

getParametersFromFile

public static java.util.HashMap getParametersFromFile(java.io.File file)
                                               throws java.lang.SecurityException

Reads a configuration file with information about the parameters to extract from SOAP Message. The format of the file is individual line entry with this format: "servicePath methodname parameterPath". The parameterPath is a string with string representation of each QName, in the order it needs to be looked into with semicolon (;) as delimiter. Service path is the full service endpoint (i.e protocol://localhost:portNumber/serviceName)

The properties that are read in are stored as a HashMap. The HashMap is keyed on the servicePath and stores a HashMap as the value. The HashMap stored as value is keyed on the method name and the parameter path is stored as the value.

Throws:
java.lang.SecurityException