org.codehaus.activesoap.transport.http
Class HttpTransportClient

java.lang.Object
  extended byorg.codehaus.activesoap.transport.TransportClientSupport
      extended byorg.codehaus.activesoap.transport.http.HttpTransportClient
All Implemented Interfaces:
TransportClient

public class HttpTransportClient
extends TransportClientSupport

Version:
$Revision: 1.3 $

Constructor Summary
HttpTransportClient(String url)
           
HttpTransportClient(URL url)
           
 
Method Summary
 void close()
          Closes down the transport if it has any resources open etc.
protected  void configureConnection(HttpURLConnection connection)
          A pluggable Strategy pattern allowing a connection to be configured
protected  HttpURLConnection createConnection()
           
protected  String getText(InputStream inputStream)
           
 URL getUrl()
           
protected  String invoke(Invocation invocation, Reader request)
           
 void invokeOneWay(Invocation invocation, Reader request)
          Performs a one way request
 Reader invokeRequest(Invocation invocation, Reader request)
          Performs a request-reply, waiting for the response before returning
 void setUrl(URL url)
           
 
Methods inherited from class org.codehaus.activesoap.transport.TransportClientSupport
createInvocation, getStreamFactory, setStreamFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpTransportClient

public HttpTransportClient(URL url)

HttpTransportClient

public HttpTransportClient(String url)
                    throws MalformedURLException
Method Detail

invokeOneWay

public void invokeOneWay(Invocation invocation,
                         Reader request)
                  throws Exception
Description copied from interface: TransportClient
Performs a one way request

Throws:
Exception

invokeRequest

public Reader invokeRequest(Invocation invocation,
                            Reader request)
                     throws Exception
Description copied from interface: TransportClient
Performs a request-reply, waiting for the response before returning

Throws:
Exception

close

public void close()
           throws Exception
Description copied from interface: TransportClient
Closes down the transport if it has any resources open etc.

Throws:
Exception

getUrl

public URL getUrl()

setUrl

public void setUrl(URL url)

invoke

protected String invoke(Invocation invocation,
                        Reader request)
                 throws Exception
Throws:
Exception

getText

protected String getText(InputStream inputStream)
                  throws IOException
Throws:
IOException

createConnection

protected HttpURLConnection createConnection()
                                      throws IOException
Throws:
IOException

configureConnection

protected void configureConnection(HttpURLConnection connection)
A pluggable Strategy pattern allowing a connection to be configured



Copyright © 2004-2007 LogicBlaze, Inc.. All Rights Reserved.