rabbit.client
Class ClientBase
java.lang.Object
rabbit.client.ClientBase
public class ClientBase
- extends Object
A base class for doing http requests
- Author:
- Robert Olofsson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClientBase
public ClientBase()
throws IOException
- Throws:
IOException
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