com.flat502.rox.marshal.xmlrpc
Class SaxUnmarshaller

java.lang.Object
  extended by com.flat502.rox.marshal.xmlrpc.XmlRpcMethodUnmarshaller
      extended by com.flat502.rox.marshal.xmlrpc.SaxUnmarshaller
All Implemented Interfaces:
MethodUnmarshaller, XmlRpcConstants

public class SaxUnmarshaller
extends XmlRpcMethodUnmarshaller

Marshal an XML-RPC method call using easy (v1) SAX.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.flat502.rox.marshal.xmlrpc.XmlRpcConstants
XmlRpcConstants.ContentTypes, XmlRpcConstants.Formats, XmlRpcConstants.Tags, XmlRpcConstants.Types
 
Constructor Summary
SaxUnmarshaller(FieldNameCodec codec)
           
 
Method Summary
 void characters(char[] ch, int start, int length)
           
 void endDocument()
           
 void endElement(java.lang.String element)
           
 void expectRequest(boolean expectRequest)
           
 Fault getFault()
           
 java.lang.String getMethodName()
           
 java.lang.Object[] getParams()
           
 java.lang.Object getResponse()
           
 org.xml.sax.HandlerBase getSaxHandler()
           
protected  java.lang.Class getStructMemberType(java.lang.Object structObject, java.lang.String name)
           
 void setCallAid(MethodCallUnmarshallerAid callAid)
           
 void setResponseAid(MethodResponseUnmarshallerAid rspAid)
           
 void startDocument()
           
 void startElement(java.lang.String element, org.xml.sax.AttributeList attrs)
           
 
Methods inherited from class com.flat502.rox.marshal.xmlrpc.XmlRpcMethodUnmarshaller
decodeFieldName, getDateFormat, getDefaultFieldNameCodec, getFieldNameCodec, newDateFormat, newStructObject, parseBase64, parseBoolean, parseDate, parseDouble, parseEnum, parseInt, parseString, parseString, setObjectMember
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SaxUnmarshaller

public SaxUnmarshaller(FieldNameCodec codec)
Method Detail

setCallAid

public void setCallAid(MethodCallUnmarshallerAid callAid)

setResponseAid

public void setResponseAid(MethodResponseUnmarshallerAid rspAid)
Parameters:
rspAid - An unmarshaller aid implementation.

getMethodName

public java.lang.String getMethodName()

getParams

public java.lang.Object[] getParams()

getResponse

public java.lang.Object getResponse()

getFault

public Fault getFault()

expectRequest

public void expectRequest(boolean expectRequest)

getStructMemberType

protected java.lang.Class getStructMemberType(java.lang.Object structObject,
                                              java.lang.String name)
                                       throws MarshallingException
Overrides:
getStructMemberType in class XmlRpcMethodUnmarshaller
Throws:
MarshallingException

startDocument

public void startDocument()
                   throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

endDocument

public void endDocument()
                 throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

startElement

public void startElement(java.lang.String element,
                         org.xml.sax.AttributeList attrs)
                  throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

endElement

public void endElement(java.lang.String element)
                throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

getSaxHandler

public org.xml.sax.HandlerBase getSaxHandler()

characters

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