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 boolean
protected String
protected boolean
protected int
protected boolean
protected EINode
protected DCEIRecord[]
protected String
protected String
protected String
protected static final String
protected static final String
protected String
protected String
protected LoggerIfc
protected String
protected String
protected String
protected String
protected String
protected int
protected String
protected boolean
protected boolean
protected String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addAttribute
(org.apache.axis.message.SOAPEnvelope envelope, javax.xml.soap.SOAPElement element, String attributeName, String attributeValue) protected abstract void
addAttributesToBodyElement
(org.apache.axis.message.SOAPEnvelope envelope, javax.xml.soap.SOAPElement bodyElement) protected javax.xml.soap.SOAPElement
addParamValueToElement
(javax.xml.soap.SOAPElement parentElement, String prefix, SoapParameter param) javax.xml.soap.SOAPMessage
void
close()
Closes thisSOAPConnection
object.compareDates
(String eventTime1, String eventTime2) Compare the two dates and return the date which is later one.protected javax.xml.soap.SOAPMessage
createMessage
(String action, String command, String prefix, String nameSpace, SoapParameter[] params) protected String
formURL
(boolean useHttps) getData()
int
getId()
protected javax.xml.soap.SOAPMessage
getNewSoapMessage
(String action) protected org.apache.axis.message.SOAPEnvelope
getSoapEnvelope
(javax.xml.soap.SOAPMessage message) protected ArrayList
invokeRequest
(String action, String command, String prefix, String nameSpace, SoapParameter[] params, SoapResponseParserIfc parser) boolean
void
void
printAxisFault
(org.apache.axis.AxisFault x) void
printSOAPException
(javax.xml.soap.SOAPException x) protected abstract ArrayList
void
reset()
void
run()
protected javax.xml.soap.SOAPMessage
sendRequest
(javax.xml.soap.SOAPMessage message) void
void
writeEventTime
(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.SOAPException
IOException
-
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.SOAPException
Exception
-
sendRequest
protected javax.xml.soap.SOAPMessage sendRequest(javax.xml.soap.SOAPMessage message) throws MalformedURLException, javax.xml.soap.SOAPException, Exception - Throws:
MalformedURLException
javax.xml.soap.SOAPException
Exception
-
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.SOAPException
Exception
-
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.SOAPException
Exception
-
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:
call
in classjavax.xml.soap.SOAPConnection
- Throws:
javax.xml.soap.SOAPException
-
close
public void close() throws javax.xml.soap.SOAPExceptionCloses thisSOAPConnection
object.- Specified by:
close
in 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)
-