|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.altair.hwm.fileserver.soap.HWMSOAPUtil
public class HWMSOAPUtil
Title: HWMSOAPUtil
Description: A utility class for SOAP related functions
Company: Altair Engineering, Inc.
| Constructor Summary | |
|---|---|
HWMSOAPUtil()
Constructor |
|
| Method Summary | |
|---|---|
static void |
CheckForErrors(javax.xml.soap.SOAPEnvelope soapEnv,
javax.xml.soap.SOAPElement soapElemReply,
java.lang.String strCmd)
Checks for the error section in the reply. |
static void |
FillSOAPMsg(javax.xml.soap.SOAPMessage soapMsg,
javax.xml.soap.SOAPElement soapElem,
HWMFileInfo hwmFileInfo,
boolean bZip)
Given the HWMFileInfo command, fills in the SOAP msg |
static void |
FormatErrorReply(javax.xml.soap.SOAPMessage soapMsg,
java.lang.String strCmd,
java.lang.String strErr,
java.lang.Throwable th)
Fill the reply SOAP message |
static javax.xml.soap.SOAPBodyElement |
FormatReplyBody(javax.xml.soap.SOAPMessage soapMsg,
java.lang.String strCmd)
Fills te soap message with the |
static javax.xml.soap.AttachmentPart |
GetAttachment(javax.xml.soap.SOAPMessage soapMsg,
java.lang.String strContentID)
Returns the attachment part with the given content id |
static javax.xml.soap.SOAPElement |
GetChildElement(javax.xml.soap.SOAPElement soapElemParent,
javax.xml.soap.Name name)
Gets the required child element with the given name. |
static void |
GetFileInfo(javax.xml.soap.SOAPMessage soapMsgReply,
javax.xml.soap.SOAPElement soapElemParams,
java.lang.String strCmd,
HWMFileInfo hwmFileInfo,
boolean bUnCompress)
Given the parameter element, it parses it and returns the information about the file encapsulated in the parameter section. |
static HWMFileInfo |
ParseReplyForFileInfo(javax.xml.soap.SOAPMessage soapMsgReply,
javax.xml.soap.SOAPElement soapElemReply,
java.lang.String strCmd,
boolean bUnCompress)
Given the reply element, it parses it and returns the information about the file. |
static void |
WriteToFile(java.io.InputStream in,
java.lang.String strFile)
Writes the data from the stream onto the given file |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HWMSOAPUtil()
| Method Detail |
|---|
public static void FormatErrorReply(javax.xml.soap.SOAPMessage soapMsg,
java.lang.String strCmd,
java.lang.String strErr,
java.lang.Throwable th)
throws javax.xml.soap.SOAPException
soapMsg - the reply SOAP messagestrCmd - The command name which failedstrErr - The error stringth - The throwable class which represents either an exception
or error which occurred.
javax.xml.soap.SOAPException
public static javax.xml.soap.SOAPBodyElement FormatReplyBody(javax.xml.soap.SOAPMessage soapMsg,
java.lang.String strCmd)
throws javax.xml.soap.SOAPException
soapMsg - The SOAP reply messagestrCmd - The command name
javax.xml.soap.SOAPException
public static javax.xml.soap.SOAPElement GetChildElement(javax.xml.soap.SOAPElement soapElemParent,
javax.xml.soap.Name name)
soapElemParent - The parent SOAP element from which the child
element with given name should be returnedname - The name of the child element
public static javax.xml.soap.AttachmentPart GetAttachment(javax.xml.soap.SOAPMessage soapMsg,
java.lang.String strContentID)
throws javax.xml.soap.SOAPException
soapMsg - The SOAP message which contains the attachmentsstrContentID - The content id of the required attachment
javax.xml.soap.SOAPException
public static void FillSOAPMsg(javax.xml.soap.SOAPMessage soapMsg,
javax.xml.soap.SOAPElement soapElem,
HWMFileInfo hwmFileInfo,
boolean bZip)
throws javax.xml.soap.SOAPException
soapMsg - The SOAP replysoapElem - The reply or cmd elementhwmFileInfo - The file info objectbZip - If true, the file (if present) is zipped.
javax.xml.soap.SOAPException
public static void CheckForErrors(javax.xml.soap.SOAPEnvelope soapEnv,
javax.xml.soap.SOAPElement soapElemReply,
java.lang.String strCmd)
throws java.lang.Exception
soapEnv - The SOAP envelope of the reply messagesoapElemReply - The reply elementstrCmd - The command name for which this reply is received
java.lang.Exception
public static HWMFileInfo ParseReplyForFileInfo(javax.xml.soap.SOAPMessage soapMsgReply,
javax.xml.soap.SOAPElement soapElemReply,
java.lang.String strCmd,
boolean bUnCompress)
throws java.lang.Exception
soapMsgReply - The SOAP reply messagesoapElemReply - The reply elementstrCmd - The command name for which this reply is receivedbUnCompress - Uncompress the file or not. if true - uncompression
will be done.
java.lang.Exception
public static void GetFileInfo(javax.xml.soap.SOAPMessage soapMsgReply,
javax.xml.soap.SOAPElement soapElemParams,
java.lang.String strCmd,
HWMFileInfo hwmFileInfo,
boolean bUnCompress)
throws java.lang.Exception
soapMsgReply - The SOAP reply messagesoapElemParam - The parameter section of the replystrCmd - The command name for which this reply is receivedhwmFileInfo - The file info object that needs to be filledbUnCompress - Uncompress the file or not. if true - uncompression
will be done.
java.lang.Exception
public static void WriteToFile(java.io.InputStream in,
java.lang.String strFile)
throws java.lang.Exception
in - The InputStreamstrFile - The file name (complete path)
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||