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