Package org.cybergarage.http
Class HTTPResponse
java.lang.Object
org.cybergarage.http.HTTPPacket
org.cybergarage.http.HTTPResponse
- Direct Known Subclasses:
SOAPResponse,SSDPResponse,SubscriptionResponse
public class HTTPResponse extends HTTPPacket
-
Constructor Summary
Constructors Constructor Description HTTPResponse()HTTPResponse(InputStream in)HTTPResponse(HTTPResponse httpRes)HTTPResponse(HTTPSocket httpSock) -
Method Summary
Modifier and Type Method Description StringgetHeader()intgetStatusCode()StringgetStatusLineString()booleanisSuccessful()voidprint()voidsetStatusCode(int code)StringtoString()Methods inherited from class org.cybergarage.http.HTTPPacket
addHeader, addHeader, clearHeaders, getCacheControl, getCharSet, getConnection, getContent, getContentInputStream, getContentLanguage, getContentLength, getContentRange, getContentRangeFirstPosition, getContentRangeInstanceLength, getContentRangeLastPosition, getContentString, getContentType, getDate, getFirstLine, getFirstLineToken, getHeader, getHeader, getHeaderString, getHeaderValue, getHost, getIntegerHeaderValue, getLongHeaderValue, getNHeaders, getServer, getStringHeaderValue, getStringHeaderValue, getTransferEncoding, getVersion, hasConnection, hasContent, hasContentInputStream, hasContentRange, hasFirstLine, hasHeader, hasTransferEncoding, init, isChunked, isCloseConnection, isKeepAliveConnection, read, set, set, set, set, setCacheControl, setCacheControl, setCacheControl, setConnection, setContent, setContent, setContent, setContent, setContentInputStream, setContentLanguage, setContentLength, setContentRange, setContentType, setDate, setHeader, setHeader, setHeader, setHeader, setHost, setHost, setIntegerHeader, setLongHeader, setServer, setStringHeader, setStringHeader, setTransferEncoding, setVersion
-
Constructor Details
-
HTTPResponse
public HTTPResponse() -
HTTPResponse
-
HTTPResponse
-
HTTPResponse
-
-
Method Details
-
setStatusCode
public void setStatusCode(int code) -
getStatusCode
public int getStatusCode() -
isSuccessful
public boolean isSuccessful() -
getStatusLineString
-
getHeader
-
toString
-
print
public void print()
-