rabbit.client
Class ClientBase

java.lang.Object
  extended by rabbit.client.ClientBase

public class ClientBase
extends Object

A base class for doing http requests

Author:
Robert Olofsson

Constructor Summary
ClientBase()
           
 
Method Summary
 ConnectionHandler getConnectionHandler()
           
 Logger getLogger()
           
 URL getRedirectedURL(HttpHeader request, String location)
           
 HttpHeader getRequest(String method, String url)
           
 TaskRunner getTaskRunner()
           
 void sendRequest(HttpHeader request, ClientListener client)
           
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientBase

public ClientBase()
           throws IOException
Throws:
IOException
Method Detail

getRequest

public HttpHeader getRequest(String method,
                             String url)
                      throws IOException
Throws:
IOException

getConnectionHandler

public ConnectionHandler getConnectionHandler()

getTaskRunner

public TaskRunner getTaskRunner()

getLogger

public Logger getLogger()

shutdown

public void shutdown()

sendRequest

public void sendRequest(HttpHeader request,
                        ClientListener client)
                 throws IOException
Throws:
IOException

getRedirectedURL

public URL getRedirectedURL(HttpHeader request,
                            String location)
                     throws IOException
Throws:
IOException