Package org.cybergarage.upnp.event
Class SubscriptionRequest
- java.lang.Object
-
- org.cybergarage.http.HTTPPacket
-
- org.cybergarage.http.HTTPRequest
-
- org.cybergarage.upnp.event.SubscriptionRequest
-
public class SubscriptionRequest extends HTTPRequest
-
-
Constructor Summary
Constructors Constructor Description SubscriptionRequest()SubscriptionRequest(HTTPRequest httpReq)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCallback()StringgetNT()StringgetSID()longgetTimeout()booleanhasCallback()booleanhasNT()booleanhasSID()SubscriptionResponsepost()voidpost(SubscriptionResponse subRes)voidsetCallback(String value)voidsetNT(String value)voidsetRenewRequest(Service service, String uuid, long timeout)voidsetSID(String id)voidsetSubscribeRequest(Service service, String callback, long timeout)voidsetTimeout(long value)voidsetUnsubscribeRequest(Service service)-
Methods inherited from class org.cybergarage.http.HTTPRequest
getFirstLineString, getHeader, getHTTPVersion, getLocalAddress, getLocalPort, getMethod, getParameterList, getParameterValue, getRequestHost, getRequestPort, getSocket, getURI, isGetRequest, isHeadRequest, isKeepAlive, isMethod, isNotifyRequest, isPostRequest, isSOAPAction, isSubscribeRequest, isUnsubscribeRequest, parseRequestLine, post, post, post, print, read, returnBadRequest, returnOK, returnResponse, set, setBindHost, setMethod, setRequestHost, setRequestPort, setSocket, setURI, setURI, toString
-
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 Detail
-
SubscriptionRequest
public SubscriptionRequest()
-
SubscriptionRequest
public SubscriptionRequest(HTTPRequest httpReq)
-
-
Method Detail
-
setSubscribeRequest
public void setSubscribeRequest(Service service, String callback, long timeout)
-
setUnsubscribeRequest
public void setUnsubscribeRequest(Service service)
-
setNT
public void setNT(String value)
-
getNT
public String getNT()
-
hasNT
public boolean hasNT()
-
setCallback
public void setCallback(String value)
-
getCallback
public String getCallback()
-
hasCallback
public boolean hasCallback()
-
setSID
public void setSID(String id)
-
getSID
public String getSID()
-
hasSID
public boolean hasSID()
-
setTimeout
public final void setTimeout(long value)
-
getTimeout
public long getTimeout()
-
post
public void post(SubscriptionResponse subRes)
-
post
public SubscriptionResponse post()
-
-