com.infoengine.soap.util.sax
Class EnvelopeDeserializer

java.lang.Object
  extended byorg.xml.sax.helpers.DefaultHandler
      extended bycom.infoengine.soap.util.sax.EnvelopeDeserializer
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class EnvelopeDeserializer
extends DefaultHandler


Field Summary
private  BodyDeserializer body
           
(package private) static String BODY
           
private  DefaultHandler currentHandler
           
protected static boolean DEBUG
           
(package private) static String ENVELOPE
           
private  boolean envOpen
           
private  HeaderDeserializer header
           
(package private) static String HEADER
           
private  boolean request
           
(package private) static String SOAP_ENV_NS
           
private  InputSource source
           
 
Constructor Summary
EnvelopeDeserializer(InputStream is, boolean request)
           
 
Method Summary
 void characters(char[] ch, int start, int length)
           
 void endDocument()
           
 void endElement(String namespaceURI, String localName, String qName)
           
 SOAPParameter[] getHeaders()
           
 String getMethodName()
           
 Object getObject()
           
 SOAPParameter[] getParameters()
           
static void main(String[] args)
           
 void process()
           
static EnvelopeDeserializer process(InputStream is, boolean request)
           
 void startDocument()
           
 void startElement(String namespaceURI, String localName, String qName, Attributes atts)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

protected static boolean DEBUG

request

private boolean request

SOAP_ENV_NS

static final String SOAP_ENV_NS
See Also:
Constant Field Values

ENVELOPE

static final String ENVELOPE
See Also:
Constant Field Values

HEADER

static final String HEADER
See Also:
Constant Field Values

BODY

static final String BODY
See Also:
Constant Field Values

envOpen

private boolean envOpen

body

private BodyDeserializer body

header

private HeaderDeserializer header

currentHandler

private DefaultHandler currentHandler

source

private InputSource source
Constructor Detail

EnvelopeDeserializer

public EnvelopeDeserializer(InputStream is,
                            boolean request)
Method Detail

process

public void process()
             throws Exception
Throws:
Exception

process

public static EnvelopeDeserializer process(InputStream is,
                                           boolean request)
                                    throws Exception
Throws:
Exception

characters

public void characters(char[] ch,
                       int start,
                       int length)
                throws SAXException
Throws:
SAXException

startDocument

public void startDocument()
                   throws SAXException
Throws:
SAXException

endDocument

public void endDocument()
                 throws SAXException
Throws:
SAXException

startElement

public void startElement(String namespaceURI,
                         String localName,
                         String qName,
                         Attributes atts)
                  throws SAXException
Throws:
SAXException

endElement

public void endElement(String namespaceURI,
                       String localName,
                       String qName)
                throws SAXException
Throws:
SAXException

getMethodName

public String getMethodName()

getParameters

public SOAPParameter[] getParameters()

getObject

public Object getObject()

getHeaders

public SOAPParameter[] getHeaders()

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception