net.wotonomy.web.xml
Class XMLRPCDecoder

java.lang.Object
  extended by net.wotonomy.web.xml.XMLRPCDecoder
All Implemented Interfaces:
net.wotonomy.foundation.xml.XMLDecoder

public class XMLRPCDecoder
extends java.lang.Object
implements net.wotonomy.foundation.xml.XMLDecoder

An implementation of XMLDecoder that reads objects from XMLRPC format. This implementation is not thread-safe, so a new instances should be created to accomodate multiple threads.


Constructor Summary
XMLRPCDecoder()
           
 
Method Summary
 java.lang.Object decode(java.io.InputStream anInputStream, java.lang.String aDescription, java.net.URL aURL)
          Decodes an object in XML-RPC format from the specified input stream.
 void decode(java.io.InputStream anInputStream, XMLRPCReceiver aReceiver)
          Decodes an XML-RPC message from the specified input stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLRPCDecoder

public XMLRPCDecoder()
Method Detail

decode

public java.lang.Object decode(java.io.InputStream anInputStream,
                               java.lang.String aDescription,
                               java.net.URL aURL)
Decodes an object in XML-RPC format from the specified input stream.

Specified by:
decode in interface net.wotonomy.foundation.xml.XMLDecoder
Parameters:
anInputStream - The input stream from which to read. The stream will be read fully.
aDescription - A description to accompany error messages for the stream, typically a file name.
aURL - A URL against which relative references within the XML will be resolved.
Returns:
The object that was constructed from the XML content, or null if no object could be constructed.

decode

public void decode(java.io.InputStream anInputStream,
                   XMLRPCReceiver aReceiver)
Decodes an XML-RPC message from the specified input stream. Stand-alone values not wrapped in "methodCall" or "param" tags will be treated as a response.

Parameters:
anInputStream - The input stream from which to read. The stream will be read fully.
aReceiver - an XMLRPCReceiver that will be invoked with the appropriate method: request, response, or fault.


Copyright © 2006 null. All Rights Reserved.