Class net.www.http.HttpClient
All Packages    This Package    Previous    Next

Class net.www.http.HttpClient

java.lang.Object
   |
   +----net.NetworkClient
           |
           +----net.www.http.HttpClient

public final class HttpClient
extends NetworkClient
Version:
1.40 15 May 1995
Author:
Jonathan Payne

ACCEPTED
BAD
CREATED
FORBIDDEN
FOUND
INTERNAL_ERROR
METHOD
MOVED
NOT_FOUND
NOT_IMPLEMENTED
OK
PARTIAL
PAYMENT_REQUIRED
UNAUTHORIZED
cachingProxyHost
cachingProxyPort
firewallProxyHost
firewallProxyPort
useProxyForCaching
useProxyForFirewall

HttpClient(URL, String, String, int)
HttpClient(URL, String, int)
HttpClient(URL, String)
HttpClient(URL)

closeServer()
Close an open connection to the server.
get(URL)
getAuthentication()
getAuthenticationField(int)
getAuthenticationRealm()
getAuthenticationScheme()
getHeaderField(String)
getInputStream()
getRequestStatus(String, String)
Parse the first line of the HTTP request.
getStatus()
getURLFile(URL)
handleUrl(URL)
openServer(String, int)
post(URL)
processRequest(String)
setAuthentication(String)

useProxyForFirewall
  public static boolean useProxyForFirewall
firewallProxyHost
  public static String firewallProxyHost
firewallProxyPort
  public static int firewallProxyPort
useProxyForCaching
  public static boolean useProxyForCaching
cachingProxyHost
  public static String cachingProxyHost
cachingProxyPort
  public static int cachingProxyPort
OK
  public final static int OK
CREATED
  public final static int CREATED
ACCEPTED
  public final static int ACCEPTED
PARTIAL
  public final static int PARTIAL
MOVED
  public final static int MOVED
FOUND
  public final static int FOUND
METHOD
  public final static int METHOD
BAD
  public final static int BAD
UNAUTHORIZED
  public final static int UNAUTHORIZED
PAYMENT_REQUIRED
  public final static int PAYMENT_REQUIRED
FORBIDDEN
  public final static int FORBIDDEN
NOT_FOUND
  public final static int NOT_FOUND
INTERNAL_ERROR
  public final static int INTERNAL_ERROR
NOT_IMPLEMENTED
  public final static int NOT_IMPLEMENTED

HttpClient
  public HttpClient(URL url,
                    String auth,
                    String proxy,
                    int proxyPort)
HttpClient
  public HttpClient(URL url,
                    String proxy,
                    int proxyPort)
HttpClient
  public HttpClient(URL url,
                    String auth)
HttpClient
  public HttpClient(URL url)

openServer
  public synchronized void openServer(String host,
                                      int port)
getRequestStatus
  protected void getRequestStatus(String response,
                                  String name)
Parse the first line of the HTTP request. It usually looks something like: "HTTP/1.0 comment\r\n".

getURLFile

  protected String getURLFile(URL u)
post
  protected void post(URL u)
get
  protected void get(URL url)
processRequest
  protected void processRequest(String name)
closeServer
  public void closeServer()
Close an open connection to the server.
Overrides:
closeServer in class NetworkClient

getHeaderField

  public String getHeaderField(String fieldName)
getStatus
  public int getStatus()
getInputStream
  public InputStream getInputStream()
setAuthentication
  public void setAuthentication(String au)
getAuthentication
  public String getAuthentication()
getAuthenticationScheme
  public String getAuthenticationScheme()
getAuthenticationRealm
  public String getAuthenticationRealm()
getAuthenticationField
  public String getAuthenticationField(int which)
handleUrl
  protected void handleUrl(URL url)

All Packages    This Package    Previous    Next