org.pasoa.util.httpsoap
Class DefaultDocumentClient

java.lang.Object
  extended by org.pasoa.util.httpsoap.DefaultDocumentClient
All Implemented Interfaces:
HTTPDocumentClient

public class DefaultDocumentClient
extends Object
implements HTTPDocumentClient


Constructor Summary
DefaultDocumentClient()
           
 
Method Summary
 Document invoke(Dispatcher dispatcher, String context, Node request)
           
 Document invoke(URL endpoint, Document request)
           
 Document invoke(URL endpoint, String request)
           
 InputStream post(URL url, String content)
           
static String readString(InputStream textStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDocumentClient

public DefaultDocumentClient()
Method Detail

invoke

public Document invoke(URL endpoint,
                       Document request)
                throws IOException,
                       SAXException
Specified by:
invoke in interface HTTPDocumentClient
Throws:
IOException
SAXException

invoke

public Document invoke(URL endpoint,
                       String request)
                throws IOException,
                       SAXException
Throws:
IOException
SAXException

invoke

public Document invoke(Dispatcher dispatcher,
                       String context,
                       Node request)
                throws UnsupportedEncodingException,
                       Exception
Throws:
UnsupportedEncodingException - If the request string cannot be parsed into UTF-8
Exception

post

public InputStream post(URL url,
                        String content)
                 throws IOException
Throws:
IOException

readString

public static String readString(InputStream textStream)
                         throws IOException
Throws:
IOException