cybergarage-upnp
org.cybergarage.upnp.ssdp.SSDPRequest Class Reference
Inheritance diagram for org.cybergarage.upnp.ssdp.SSDPRequest:
org.cybergarage.http.HTTPRequest org.cybergarage.http.HTTPPacket org.cybergarage.upnp.ssdp.SSDPNotifyRequest org.cybergarage.upnp.ssdp.SSDPSearchRequest

Public Member Functions

 SSDPRequest ()
 
 SSDPRequest (InputStream in)
 
void setNT (String value)
 
String getNT ()
 
void setNTS (String value)
 
String getNTS ()
 
void setLocation (String value)
 
String getLocation ()
 
void setUSN (String value)
 
String getUSN ()
 
void setLeaseTime (int len)
 
int getLeaseTime ()
 
void setBootId (int bootId)
 
int getBootId ()
 
- Public Member Functions inherited from org.cybergarage.http.HTTPRequest
 HTTPRequest ()
 
 HTTPRequest (InputStream in)
 
 HTTPRequest (HTTPSocket httpSock)
 
void setMethod (String value)
 
String getMethod ()
 
boolean isMethod (String method)
 
boolean isGetRequest ()
 
boolean isPostRequest ()
 
boolean isHeadRequest ()
 
boolean isSubscribeRequest ()
 
boolean isUnsubscribeRequest ()
 
boolean isNotifyRequest ()
 
void setURI (String value, boolean isCheckRelativeURL)
 
void setURI (String value)
 
String getURI ()
 
ParameterList getParameterList ()
 
String getParameterValue (String name)
 
boolean isSOAPAction ()
 
void setRequestHost (String host)
 
String getRequestHost ()
 
void setRequestPort (int host)
 
int getRequestPort ()
 
void setSocket (HTTPSocket value)
 
HTTPSocket getSocket ()
 
String getLocalAddress ()
 
int getLocalPort ()
 
boolean parseRequestLine (String lineStr)
 
String getHTTPVersion ()
 
String getFirstLineString ()
 
String getHeader ()
 
boolean isKeepAlive ()
 
boolean read ()
 
boolean post (HTTPResponse httpRes)
 
HTTPResponse post (String host, int port, boolean isKeepAlive)
 
HTTPResponse post (String host, int port)
 
void set (HTTPRequest httpReq)
 
boolean returnResponse (int statusCode)
 
boolean returnOK ()
 
boolean returnBadRequest ()
 
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 ()
 

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

◆ SSDPRequest() [1/2]

org.cybergarage.upnp.ssdp.SSDPRequest.SSDPRequest ( )
inline

◆ SSDPRequest() [2/2]

org.cybergarage.upnp.ssdp.SSDPRequest.SSDPRequest ( InputStream in)
inline

Member Function Documentation

◆ getBootId()

int org.cybergarage.upnp.ssdp.SSDPRequest.getBootId ( )
inline

◆ getLeaseTime()

int org.cybergarage.upnp.ssdp.SSDPRequest.getLeaseTime ( )
inline

◆ getLocation()

String org.cybergarage.upnp.ssdp.SSDPRequest.getLocation ( )
inline

◆ getNT()

String org.cybergarage.upnp.ssdp.SSDPRequest.getNT ( )
inline

◆ getNTS()

String org.cybergarage.upnp.ssdp.SSDPRequest.getNTS ( )
inline

◆ getUSN()

String org.cybergarage.upnp.ssdp.SSDPRequest.getUSN ( )
inline

◆ setBootId()

void org.cybergarage.upnp.ssdp.SSDPRequest.setBootId ( int bootId)
inline

◆ setLeaseTime()

void org.cybergarage.upnp.ssdp.SSDPRequest.setLeaseTime ( int len)
inline

◆ setLocation()

void org.cybergarage.upnp.ssdp.SSDPRequest.setLocation ( String value)
inline

◆ setNT()

void org.cybergarage.upnp.ssdp.SSDPRequest.setNT ( String value)
inline

◆ setNTS()

void org.cybergarage.upnp.ssdp.SSDPRequest.setNTS ( String value)
inline

◆ setUSN()

void org.cybergarage.upnp.ssdp.SSDPRequest.setUSN ( String value)
inline

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