Package org.cybergarage.http
Class HTTPPacket
java.lang.Object
org.cybergarage.http.HTTPPacket
- Direct Known Subclasses:
HTTPRequest
,HTTPResponse
public class HTTPPacket extends Object
-
Constructor Summary
Constructors Constructor Description HTTPPacket()
HTTPPacket(InputStream in)
HTTPPacket(HTTPPacket httpPacket)
-
Method Summary
-
Constructor Details
-
HTTPPacket
public HTTPPacket() -
HTTPPacket
-
HTTPPacket
-
-
Method Details
-
init
public void init() -
setVersion
-
getVersion
-
set
-
set
-
set
-
set
-
read
-
getFirstLine
-
getFirstLineToken
-
hasFirstLine
public boolean hasFirstLine() -
getNHeaders
public int getNHeaders() -
addHeader
-
addHeader
-
getHeader
-
getHeader
-
clearHeaders
public void clearHeaders() -
hasHeader
-
setHeader
-
setHeader
-
setHeader
-
setHeader
-
getHeaderValue
-
setStringHeader
-
setStringHeader
-
getStringHeaderValue
-
getStringHeaderValue
-
setIntegerHeader
-
setLongHeader
-
getIntegerHeaderValue
-
getLongHeaderValue
-
getHeaderString
-
setContent
public void setContent(byte[] data, boolean updateWithContentLength) -
setContent
public void setContent(byte[] data) -
setContent
-
setContent
-
getContent
public byte[] getContent() -
getContentString
-
hasContent
public boolean hasContent() -
setContentInputStream
-
getContentInputStream
-
hasContentInputStream
public boolean hasContentInputStream() -
setContentType
-
getContentType
-
setContentLanguage
-
getContentLanguage
-
getCharSet
-
setContentLength
public void setContentLength(long len) -
getContentLength
public long getContentLength() -
hasConnection
public boolean hasConnection() -
setConnection
-
getConnection
-
isCloseConnection
public boolean isCloseConnection() -
isKeepAliveConnection
public boolean isKeepAliveConnection() -
hasContentRange
public boolean hasContentRange() -
setContentRange
public void setContentRange(long firstPos, long lastPos, long length) -
getContentRange
public long[] getContentRange() -
getContentRangeFirstPosition
public long getContentRangeFirstPosition() -
getContentRangeLastPosition
public long getContentRangeLastPosition() -
getContentRangeInstanceLength
public long getContentRangeInstanceLength() -
setCacheControl
-
setCacheControl
-
setCacheControl
public void setCacheControl(int value) -
getCacheControl
-
setServer
-
getServer
-
setHost
-
setHost
-
getHost
-
setDate
-
getDate
-
hasTransferEncoding
public boolean hasTransferEncoding() -
setTransferEncoding
-
getTransferEncoding
-
isChunked
public boolean isChunked()
-