net.jxta.ext.http
Class HttpGet
java.lang.Object
net.jxta.ext.http.HttpGet
- All Implemented Interfaces:
- Dispatchable
- Direct Known Subclasses:
- HttpPost
public class HttpGet
- extends Object
- implements Dispatchable
- Version:
- $Id: HttpGet.java,v 1.5 2004/05/18 22:00:52 gonzo Exp $
- Author:
- james todd [gonzo at jxta dot org]
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BLOCK
protected static final int BLOCK
- See Also:
- Constant Field Values
method
protected String method
connection
protected URLConnection connection
headers
protected static Map headers
HttpGet
public HttpGet()
HttpGet
public HttpGet(URL url)
- Constructor for the HttpGet object
- Parameters:
url
- Description of the Parameter
HttpGet
public HttpGet(URL url,
Message msg)
getURL
public URL getURL()
- Gets the uRL attribute of the HttpGet object
- Specified by:
getURL
in interface Dispatchable
- Returns:
- The URL value
setURL
public void setURL(URL url)
- Sets the uRL attribute of the HttpGet object
- Specified by:
setURL
in interface Dispatchable
- Parameters:
url
- The new uRL value
getMessage
public Message getMessage()
- Specified by:
getMessage
in interface Dispatchable
setMessage
public void setMessage(Message msg)
- Specified by:
setMessage
in interface Dispatchable
dispatch
public Message dispatch()
throws IOException
- Specified by:
dispatch
in interface Dispatchable
- Throws:
IOException
disconnect
public void disconnect()
- Description of the Method
- Specified by:
disconnect
in interface Dispatchable
dispatch
protected Message dispatch(URL u)
throws IOException
- Throws:
IOException
openConnection
protected URLConnection openConnection(URL u)
throws IOException
- Throws:
IOException
closeConnection
protected void closeConnection()
doGet
protected void doGet()
throws IOException
- Throws:
IOException
getResponse
protected Message getResponse(URL u)
throws IOException
- Throws:
IOException