Package com.nt.udc.ei.node.soap
Class SoapMessageHandler
java.lang.Object
javax.xml.soap.SOAPConnection
com.nt.udc.ei.node.soap.SoapMessageHandler
- All Implemented Interfaces:
Runnable
Network Mediation
User: jwu
Date: Jan 24, 2005
Time: 1:39:10 PM
MetaSolv Software Inc.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected Stringprotected booleanprotected intprotected booleanprotected EINodeprotected DCEIRecord[]protected Stringprotected Stringprotected Stringprotected static final Stringprotected static final Stringprotected Stringprotected Stringprotected LoggerIfcprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected intprotected Stringprotected booleanprotected booleanprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddAttribute(org.apache.axis.message.SOAPEnvelope envelope, javax.xml.soap.SOAPElement element, String attributeName, String attributeValue) protected abstract voidaddAttributesToBodyElement(org.apache.axis.message.SOAPEnvelope envelope, javax.xml.soap.SOAPElement bodyElement) protected javax.xml.soap.SOAPElementaddParamValueToElement(javax.xml.soap.SOAPElement parentElement, String prefix, SoapParameter param) javax.xml.soap.SOAPMessagevoidclose()Closes thisSOAPConnectionobject.compareDates(String eventTime1, String eventTime2) Compare the two dates and return the date which is later one.protected javax.xml.soap.SOAPMessagecreateMessage(String action, String command, String prefix, String nameSpace, SoapParameter[] params) protected StringformURL(boolean useHttps) getData()intgetId()protected javax.xml.soap.SOAPMessagegetNewSoapMessage(String action) protected org.apache.axis.message.SOAPEnvelopegetSoapEnvelope(javax.xml.soap.SOAPMessage message) protected ArrayListinvokeRequest(String action, String command, String prefix, String nameSpace, SoapParameter[] params, SoapResponseParserIfc parser) booleanvoidvoidprintAxisFault(org.apache.axis.AxisFault x) voidprintSOAPException(javax.xml.soap.SOAPException x) protected abstract ArrayListvoidreset()voidrun()protected javax.xml.soap.SOAPMessagesendRequest(javax.xml.soap.SOAPMessage message) voidvoidwriteEventTime(String eventTime) Write the eventTime to the scratch file.
-
Field Details
-
timeout
protected int timeout -
startTime
-
configWin
-
useConfig
protected boolean useConfig -
dataIsAvailable
protected boolean dataIsAvailable -
host
-
port
-
username
-
password
-
uri
-
keystore
-
proxyhost
-
proxyport
-
useHttps
protected boolean useHttps -
logger
-
eiRecords
-
endPoint
-
deleteFlag
protected boolean deleteFlag -
errorId
-
id
-
alarmRaised
protected boolean alarmRaised -
debugLevel
protected int debugLevel -
eiNode
-
HTTP
- See Also:
-
HTTPS
- See Also:
-
-
Constructor Details
-
SoapMessageHandler
-
-
Method Details
-
getLogger
-
getId
-
getErrorIdentifier
-
soapRelatedAlarmRaised
public void soapRelatedAlarmRaised() -
getDebugLevel
public int getDebugLevel() -
getNewSoapMessage
protected javax.xml.soap.SOAPMessage getNewSoapMessage(String action) throws javax.xml.soap.SOAPException, IOException - Throws:
javax.xml.soap.SOAPExceptionIOException
-
getSoapEnvelope
protected org.apache.axis.message.SOAPEnvelope getSoapEnvelope(javax.xml.soap.SOAPMessage message) throws javax.xml.soap.SOAPException - Throws:
javax.xml.soap.SOAPException
-
addParamValueToElement
protected javax.xml.soap.SOAPElement addParamValueToElement(javax.xml.soap.SOAPElement parentElement, String prefix, SoapParameter param) throws javax.xml.soap.SOAPException - Throws:
javax.xml.soap.SOAPException
-
addAttribute
protected void addAttribute(org.apache.axis.message.SOAPEnvelope envelope, javax.xml.soap.SOAPElement element, String attributeName, String attributeValue) throws javax.xml.soap.SOAPException - Throws:
javax.xml.soap.SOAPException
-
createMessage
protected javax.xml.soap.SOAPMessage createMessage(String action, String command, String prefix, String nameSpace, SoapParameter[] params) throws javax.xml.soap.SOAPException, Exception - Throws:
javax.xml.soap.SOAPExceptionException
-
sendRequest
protected javax.xml.soap.SOAPMessage sendRequest(javax.xml.soap.SOAPMessage message) throws MalformedURLException, javax.xml.soap.SOAPException, Exception - Throws:
MalformedURLExceptionjavax.xml.soap.SOAPExceptionException
-
invokeRequest
protected ArrayList invokeRequest(String action, String command, String prefix, String nameSpace, SoapParameter[] params, SoapResponseParserIfc parser) throws javax.xml.soap.SOAPException, Exception - Throws:
javax.xml.soap.SOAPExceptionException
-
run
public void run() -
writeEventTime
Write the eventTime to the scratch file.- Throws:
IOException
-
compareDates
Compare the two dates and return the date which is later one. -
getData
-
isDataAvailable
public boolean isDataAvailable() -
formURL
-
addAttributesToBodyElement
protected abstract void addAttributesToBodyElement(org.apache.axis.message.SOAPEnvelope envelope, javax.xml.soap.SOAPElement bodyElement) throws javax.xml.soap.SOAPException - Throws:
javax.xml.soap.SOAPException
-
processSoapMessages
- Throws:
javax.xml.soap.SOAPExceptionException
-
reset
public void reset() -
postProcess
public void postProcess() -
call
public javax.xml.soap.SOAPMessage call(javax.xml.soap.SOAPMessage request, Object endpoint) throws javax.xml.soap.SOAPException - Specified by:
callin classjavax.xml.soap.SOAPConnection- Throws:
javax.xml.soap.SOAPException
-
close
public void close() throws javax.xml.soap.SOAPExceptionCloses thisSOAPConnectionobject.- Specified by:
closein classjavax.xml.soap.SOAPConnection- Throws:
javax.xml.soap.SOAPException- if there is a SOAP error
-
printSOAPException
public void printSOAPException(javax.xml.soap.SOAPException x) -
printAxisFault
public void printAxisFault(org.apache.axis.AxisFault x)
-