cybergarage-upnp
org.cybergarage.http.HTTPResponse Class Reference
Inheritance diagram for org.cybergarage.http.HTTPResponse:
org.cybergarage.http.HTTPPacket org.cybergarage.soap.SOAPResponse org.cybergarage.upnp.event.SubscriptionResponse org.cybergarage.upnp.ssdp.SSDPResponse org.cybergarage.upnp.control.ControlResponse org.cybergarage.upnp.ssdp.SSDPSearchResponse org.cybergarage.upnp.control.ActionResponse org.cybergarage.upnp.control.QueryResponse

Public Member Functions

 HTTPResponse ()
 
 HTTPResponse (HTTPResponse httpRes)
 
 HTTPResponse (InputStream in)
 
 HTTPResponse (HTTPSocket httpSock)
 
void setStatusCode (int code)
 
int getStatusCode ()
 
boolean isSuccessful ()
 
String getStatusLineString ()
 
String getHeader ()
 
String toString ()
 
void print ()
 
- Public Member Functions inherited from org.cybergarage.http.HTTPPacket
 HTTPPacket ()
 
 HTTPPacket (HTTPPacket httpPacket)
 
 HTTPPacket (InputStream in)
 
void init ()
 
void setVersion (String ver)
 
String getVersion ()
 
boolean read (HTTPSocket httpSock)
 
boolean hasFirstLine ()
 
int getNHeaders ()
 
void addHeader (HTTPHeader header)
 
void addHeader (String name, String value)
 
HTTPHeader getHeader (int n)
 
HTTPHeader getHeader (String name)
 
void clearHeaders ()
 
boolean hasHeader (String name)
 
void setHeader (String name, String value)
 
void setHeader (String name, int value)
 
void setHeader (String name, long value)
 
void setHeader (HTTPHeader header)
 
String getHeaderValue (String name)
 
void setStringHeader (String name, String value, String startWidth, String endWidth)
 
void setStringHeader (String name, String value)
 
String getStringHeaderValue (String name, String startWidth, String endWidth)
 
String getStringHeaderValue (String name)
 
void setIntegerHeader (String name, int value)
 
void setLongHeader (String name, long value)
 
int getIntegerHeaderValue (String name)
 
long getLongHeaderValue (String name)
 
String getHeaderString ()
 
void setContent (byte data[], boolean updateWithContentLength)
 
void setContent (byte data[])
 
void setContent (String data, boolean updateWithContentLength)
 
void setContent (String data)
 
byte[] getContent ()
 
String getContentString ()
 
boolean hasContent ()
 
void setContentInputStream (InputStream in)
 
InputStream getContentInputStream ()
 
boolean hasContentInputStream ()
 
void setContentType (String type)
 
String getContentType ()
 
void setContentLanguage (String code)
 
String getContentLanguage ()
 
String getCharSet ()
 
void setContentLength (long len)
 
long getContentLength ()
 
boolean hasConnection ()
 
void setConnection (String value)
 
String getConnection ()
 
boolean isCloseConnection ()
 
boolean isKeepAliveConnection ()
 
boolean hasContentRange ()
 
void setContentRange (long firstPos, long lastPos, long length)
 
long[] getContentRange ()
 
long getContentRangeFirstPosition ()
 
long getContentRangeLastPosition ()
 
long getContentRangeInstanceLength ()
 
void setCacheControl (String directive)
 
void setCacheControl (String directive, int value)
 
void setCacheControl (int value)
 
String getCacheControl ()
 
void setServer (String name)
 
String getServer ()
 
void setHost (String host, int port)
 
void setHost (String host)
 
String getHost ()
 
void setDate (Calendar cal)
 
String getDate ()
 
boolean hasTransferEncoding ()
 
void setTransferEncoding (String value)
 
String getTransferEncoding ()
 
boolean isChunked ()
 

Private Attributes

int statusCode = 0
 

Additional Inherited Members

- Protected Member Functions inherited from org.cybergarage.http.HTTPPacket
boolean set (InputStream in, boolean onlyHeaders)
 
boolean set (InputStream in)
 
boolean set (HTTPSocket httpSock)
 
void set (HTTPPacket httpPacket)
 
String getFirstLine ()
 
String getFirstLineToken (int num)
 

Constructor & Destructor Documentation

◆ HTTPResponse() [1/4]

org.cybergarage.http.HTTPResponse.HTTPResponse ( )
inline

◆ HTTPResponse() [2/4]

org.cybergarage.http.HTTPResponse.HTTPResponse ( HTTPResponse httpRes)
inline

◆ HTTPResponse() [3/4]

org.cybergarage.http.HTTPResponse.HTTPResponse ( InputStream in)
inline

◆ HTTPResponse() [4/4]

org.cybergarage.http.HTTPResponse.HTTPResponse ( HTTPSocket httpSock)
inline

Member Function Documentation

◆ getHeader()

String org.cybergarage.http.HTTPResponse.getHeader ( )
inline

◆ getStatusCode()

int org.cybergarage.http.HTTPResponse.getStatusCode ( )
inline

◆ getStatusLineString()

String org.cybergarage.http.HTTPResponse.getStatusLineString ( )
inline

◆ isSuccessful()

boolean org.cybergarage.http.HTTPResponse.isSuccessful ( )
inline

◆ print()

void org.cybergarage.http.HTTPResponse.print ( )
inline

◆ setStatusCode()

void org.cybergarage.http.HTTPResponse.setStatusCode ( int code)
inline

◆ toString()

String org.cybergarage.http.HTTPResponse.toString ( )
inline

Field Documentation

◆ statusCode

int org.cybergarage.http.HTTPResponse.statusCode = 0
private

The documentation for this class was generated from the following file: