Project JXTA

net.jxta.ext.http
Class HttpGet

java.lang.Object
  extended by 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]

Field Summary
protected static int BLOCK
           
protected  URLConnection connection
           
protected static Map headers
           
protected  String method
           
 
Constructor Summary
HttpGet()
           
HttpGet(URL url)
          Constructor for the HttpGet object
HttpGet(URL url, Message msg)
           
 
Method Summary
protected  void closeConnection()
           
 void disconnect()
          Description of the Method
 Message dispatch()
           
protected  Message dispatch(URL u)
           
protected  void doGet()
           
 Message getMessage()
           
protected  Message getResponse(URL u)
           
 URL getURL()
          Gets the uRL attribute of the HttpGet object
protected  URLConnection openConnection(URL u)
           
 void setMessage(Message msg)
           
 void setURL(URL url)
          Sets the uRL attribute of the HttpGet object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BLOCK

protected static final int BLOCK
See Also:
Constant Field Values

method

protected String method

connection

protected URLConnection connection

headers

protected static Map headers
Constructor Detail

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)
Method Detail

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

JXTA J2SE