cybergarage-upnp
org.cybergarage.upnp.event.NotifyRequest Class Reference
Inheritance diagram for org.cybergarage.upnp.event.NotifyRequest:
org.cybergarage.soap.SOAPRequest org.cybergarage.http.HTTPRequest org.cybergarage.http.HTTPPacket

Public Member Functions

 NotifyRequest ()
 
 NotifyRequest (HTTPRequest httpReq)
 
void setNT (String value)
 
void setNTS (String value)
 
void setSID (String id)
 
String getSID ()
 
void setSEQ (long value)
 
long getSEQ ()
 
boolean setRequest (Subscriber sub, String varName, String value)
 
PropertyList getPropertyList ()
 
- Public Member Functions inherited from org.cybergarage.soap.SOAPRequest
 SOAPRequest ()
 
 SOAPRequest (HTTPRequest httpReq)
 
void setSOAPAction (String action)
 
String getSOAPAction ()
 
boolean isSOAPAction (String value)
 
SOAPResponse postMessage (String host, int port)
 
void setEnvelopeNode (Node node)
 
Node getEnvelopeNode ()
 
Node getBodyNode ()
 
void setContent (Node node)
 
void print ()
 
- 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 ()
 
- 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 Member Functions

Node createPropertySetNode (String varName, String value)
 
Node getVariableNode ()
 
Property getProperty (Node varNode)
 

Static Private Attributes

static final String XMLNS = "e"
 
static final String PROPERTY = "property"
 
static final String PROPERTYSET = "propertyset"
 

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

◆ NotifyRequest() [1/2]

org.cybergarage.upnp.event.NotifyRequest.NotifyRequest ( )
inline

◆ NotifyRequest() [2/2]

org.cybergarage.upnp.event.NotifyRequest.NotifyRequest ( HTTPRequest httpReq)
inline

Member Function Documentation

◆ createPropertySetNode()

Node org.cybergarage.upnp.event.NotifyRequest.createPropertySetNode ( String varName,
String value )
inlineprivate

◆ getProperty()

Property org.cybergarage.upnp.event.NotifyRequest.getProperty ( Node varNode)
inlineprivate

◆ getPropertyList()

PropertyList org.cybergarage.upnp.event.NotifyRequest.getPropertyList ( )
inline

◆ getSEQ()

long org.cybergarage.upnp.event.NotifyRequest.getSEQ ( )
inline

◆ getSID()

String org.cybergarage.upnp.event.NotifyRequest.getSID ( )
inline

◆ getVariableNode()

Node org.cybergarage.upnp.event.NotifyRequest.getVariableNode ( )
inlineprivate

◆ setNT()

void org.cybergarage.upnp.event.NotifyRequest.setNT ( String value)
inline

◆ setNTS()

void org.cybergarage.upnp.event.NotifyRequest.setNTS ( String value)
inline

◆ setRequest()

boolean org.cybergarage.upnp.event.NotifyRequest.setRequest ( Subscriber sub,
String varName,
String value )
inline

◆ setSEQ()

void org.cybergarage.upnp.event.NotifyRequest.setSEQ ( long value)
inline

◆ setSID()

void org.cybergarage.upnp.event.NotifyRequest.setSID ( String id)
inline

Field Documentation

◆ PROPERTY

final String org.cybergarage.upnp.event.NotifyRequest.PROPERTY = "property"
staticprivate

◆ PROPERTYSET

final String org.cybergarage.upnp.event.NotifyRequest.PROPERTYSET = "propertyset"
staticprivate

◆ XMLNS

final String org.cybergarage.upnp.event.NotifyRequest.XMLNS = "e"
staticprivate

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