Class powersoft.jcm.net.HTTP
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class powersoft.jcm.net.HTTP

java.lang.Object
   |
   +----powersoft.jcm.net.Internet
           |
           +----powersoft.jcm.net.HTTP

public class HTTP
extends Internet
implements HTTPInterface

Constructor Index

 o HTTP()

Method Index

 o addRequestHeader(String, String, int)
 o closeConnection()
 o closeRequest()
 o connect()
 o getDataInputStream()
Gets the input stream
 o getLastReply()
Gets the complete discriptive reply of the server for the last command sent to the server.
 o openRequest(String, String, String)
 o queryInfo(String)
 o readFile(byte[])
Fills the specified buffer (array of bytes) with the data read from the input stream.
 o sendRequest()
 o setProtocolName(String)

Constructors

 o HTTP
  public HTTP()

Methods

 o getDataInputStream
  public DataInputStream getDataInputStream()
Gets the input stream
 o setProtocolName
  public void setProtocolName(String protocol)
Overrides:
setProtocolName in class Internet
 o getLastReply
  public String getLastReply()
Gets the complete discriptive reply of the server for the last command sent to the server.
 o connect
  public boolean connect()
 o closeConnection
  public boolean closeConnection()
 o openRequest
  public boolean openRequest(String object,
                             String verb,
                             String version)
 o addRequestHeader
  public boolean addRequestHeader(String headerField,
                                  String headerFieldValue,
                                  int headerFieldFlag)
 o sendRequest
  public boolean sendRequest()
 o closeRequest
  public boolean closeRequest()
 o queryInfo
  public String queryInfo(String headerField)
 o readFile
  public int readFile(byte buffer[])
Fills the specified buffer (array of bytes) with the data read from the input stream.
Overrides:
readFile in class Internet

All Packages  Class Hierarchy  This Package  Previous  Next  Index