org.nakedobjects.plugins.remoting.http.transport
Class HttpClientTransport

java.lang.Object
  extended by org.nakedobjects.remoting.transport.TransportAbstract
      extended by org.nakedobjects.plugins.remoting.http.transport.HttpClientTransport
All Implemented Interfaces:
ApplicationScopedComponent, Component, Transport

public class HttpClientTransport
extends TransportAbstract


Constructor Summary
HttpClientTransport(NakedObjectConfiguration configuration)
           
 
Method Summary
 void connect()
           
 void disconnect()
           
 java.io.InputStream getInputStream()
          When first called, executes the HTTP POST, then returns the response body.
 java.io.OutputStream getOutputStream()
          Returns an OutputStream that writes into the request body of an HTTP POST, and will send on flush.
 void init()
           
 void shutdown()
           
 
Methods inherited from class org.nakedobjects.remoting.transport.TransportAbstract
getConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpClientTransport

public HttpClientTransport(NakedObjectConfiguration configuration)
Method Detail

init

public void init()

shutdown

public void shutdown()

connect

public void connect()
             throws java.io.IOException
Throws:
java.io.IOException

disconnect

public void disconnect()

getOutputStream

public java.io.OutputStream getOutputStream()
Returns an OutputStream that writes into the request body of an HTTP POST, and will send on flush.


getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
When first called, executes the HTTP POST, then returns the response body.

Subsequent calls return the same input stream, at whatever position they have been processed.

Throws:
java.io.IOException


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.