|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cybersource.ws.client.Utility
Class containing useful constants and methods.
| Field Summary | |
static java.lang.String |
ENVIRONMENT
Environment information. |
static java.lang.String |
VERSION
Version number of this release. |
| Method Summary | |
static org.w3c.dom.Element |
getElement(org.w3c.dom.Document owner,
java.lang.String elementName,
java.lang.String nsURI)
Returns the Element object corresponding to the given element name. |
static java.lang.String |
getElementText(org.w3c.dom.Document owner,
java.lang.String elementName,
java.lang.String nsURI)
Returns the text value of the given element name in the CyberSource namespace. |
static java.lang.String |
getStackTrace(java.lang.Exception e)
Returns the stack trace of the supplied Exception object. |
static javax.xml.parsers.DocumentBuilder |
newDocumentBuilder()
Returns a DocumentBuilder object. |
static java.lang.String |
nodeToString(org.w3c.dom.Node node)
Returns the string representation of the given Node object. |
static java.lang.String |
nodeToString(org.w3c.dom.Node node,
int type)
Returns the string representation of the given Node object. |
static byte[] |
read(java.io.File file)
Reads the content of the given file into a byte array. |
static byte[] |
read(java.io.InputStream in)
Reads the content of the given file into a byte array. |
static byte[] |
read(java.lang.String filename)
Reads the content of the given file into a byte array. |
static java.util.Properties |
readProperties(java.lang.String[] commandLineArgs)
Reads the properties from a file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String VERSION
public static final java.lang.String ENVIRONMENT
| Method Detail |
public static java.lang.String nodeToString(org.w3c.dom.Node node,
int type)
node - the Node object whose string representation is wanted.type - either PCI.REQUEST or PCI.REPLY. Used for masking.
public static java.lang.String nodeToString(org.w3c.dom.Node node)
node - the Node object whose string representation is wanted.
public static java.util.Properties readProperties(java.lang.String[] commandLineArgs)
commandLineArgs - the command-line arguments.
public static byte[] read(java.lang.String filename)
throws java.io.IOException
filename - name of the file to read.
java.io.IOException - if there was an error reading the file.
public static byte[] read(java.io.File file)
throws java.io.IOException
file - File object to read.
java.io.IOException - if there was an error reading the file.
public static byte[] read(java.io.InputStream in)
throws java.io.IOException
in - InputStream object to read.
java.io.IOException - if there was an error reading the file.
public static javax.xml.parsers.DocumentBuilder newDocumentBuilder()
throws javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.ParserConfigurationException - if no suitable parser
implementation is found.
public static org.w3c.dom.Element getElement(org.w3c.dom.Document owner,
java.lang.String elementName,
java.lang.String nsURI)
owner - Document object to search.elementName - local name to search for.nsURI - namespaceURI to used (may be null).
null if none is found.
public static java.lang.String getElementText(org.w3c.dom.Document owner,
java.lang.String elementName,
java.lang.String nsURI)
owner - Document object to search.elementName - local name to search for.nsURI - namespaceURI to used (may be null).
null if none is found.public static java.lang.String getStackTrace(java.lang.Exception e)
e - Exception object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||