Class SoapMessageHandler

java.lang.Object
javax.xml.soap.SOAPConnection
com.nt.udc.ei.node.soap.SoapMessageHandler
All Implemented Interfaces:
Runnable

public abstract class SoapMessageHandler extends javax.xml.soap.SOAPConnection implements Runnable
Network Mediation User: jwu Date: Jan 24, 2005 Time: 1:39:10 PM MetaSolv Software Inc.
  • Field Details

    • timeout

      protected int timeout
    • startTime

      protected String startTime
    • configWin

      protected String configWin
    • useConfig

      protected boolean useConfig
    • dataIsAvailable

      protected boolean dataIsAvailable
    • host

      protected String host
    • port

      protected String port
    • username

      protected String username
    • password

      protected String password
    • uri

      protected String uri
    • keystore

      protected String keystore
    • proxyhost

      protected String proxyhost
    • proxyport

      protected String proxyport
    • useHttps

      protected boolean useHttps
    • logger

      protected LoggerIfc logger
    • eiRecords

      protected DCEIRecord[] eiRecords
    • endPoint

      protected String endPoint
    • deleteFlag

      protected boolean deleteFlag
    • errorId

      protected String errorId
    • id

      protected String id
    • alarmRaised

      protected boolean alarmRaised
    • debugLevel

      protected int debugLevel
    • eiNode

      protected EINode eiNode
    • HTTP

      protected static final String HTTP
      See Also:
    • HTTPS

      protected static final String HTTPS
      See Also:
  • Constructor Details

  • Method Details

    • getLogger

      public LoggerIfc getLogger()
    • getId

      public String getId()
    • getErrorIdentifier

      public String 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()
      Specified by:
      run in interface Runnable
    • writeEventTime

      public void writeEventTime(String eventTime) throws IOException
      Write the eventTime to the scratch file.
      Throws:
      IOException
    • compareDates

      public String compareDates(String eventTime1, String eventTime2)
      Compare the two dates and return the date which is later one.
    • getData

      public DCEIRecord[] getData()
    • isDataAvailable

      public boolean isDataAvailable()
    • formURL

      protected String formURL(boolean useHttps)
    • 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

      protected abstract ArrayList processSoapMessages() throws javax.xml.soap.SOAPException, Exception
      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 class javax.xml.soap.SOAPConnection
      Throws:
      javax.xml.soap.SOAPException
    • close

      public void close() throws javax.xml.soap.SOAPException
      Closes this SOAPConnection object.
      Specified by:
      close in class javax.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)