com.croftsoft.core.net.http
Class HttpConnection

java.lang.Object
  extended by com.croftsoft.core.net.http.HttpConnection

public final class HttpConnection
extends Object

Somewhat of a replacement for HttpURLConnection.

Since:
2000-04-27
Version:
2003-05-19
Author:
David W. Croft

Field Summary
static int HTTP_ACCEPTED
           
static int HTTP_NO_CONTENT
           
 
Constructor Summary
HttpConnection(String host, int port, String path, String userAgent, String contentType, byte[] requestBytes, Parser contentParser)
           
 
Method Summary
 void abort()
           
 Hashtable getHeaderHashtable()
           
 Object getParsedContent()
           
 int getResponseCode()
           
 void post()
           
 void setRequestBytes(byte[] requestBytes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HTTP_ACCEPTED

public static final int HTTP_ACCEPTED
See Also:
Constant Field Values

HTTP_NO_CONTENT

public static final int HTTP_NO_CONTENT
See Also:
Constant Field Values
Constructor Detail

HttpConnection

public HttpConnection(String host,
                      int port,
                      String path,
                      String userAgent,
                      String contentType,
                      byte[] requestBytes,
                      Parser contentParser)
Method Detail

post

public void post()
          throws IOException
Throws:
IOException

abort

public void abort()

getResponseCode

public int getResponseCode()

getParsedContent

public Object getParsedContent()

getHeaderHashtable

public Hashtable getHeaderHashtable()

setRequestBytes

public void setRequestBytes(byte[] requestBytes)

CroftSoft Javadoc

CroftSoft Core Javadoc (2008-09-28 20:58:02)