public class SubscriptionResponse extends HTTPResponse
This class extends HTTPResponse to handle GENA (General Event Notification Architecture) subscription responses for UPnP event notifications. It manages the response to SUBSCRIBE and UNSUBSCRIBE requests, including success and error handling.
Key features:
This class is used by UPnP devices to respond to subscription requests from control points, providing subscription confirmation, timeout information, and error status when necessary.
| Constructor and Description |
|---|
SubscriptionResponse() |
SubscriptionResponse(HTTPResponse httpRes) |
| Modifier and Type | Method and Description |
|---|---|
String |
getSID() |
long |
getTimeout() |
void |
setErrorResponse(int code) |
void |
setResponse(int code) |
void |
setSID(String id) |
void |
setTimeout(long value) |
getHeader, getStatusCode, getStatusLineString, isSuccessful, print, setStatusCode, toStringaddHeader, 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, setIntegerHeader, setLongHeader, setServer, setStringHeader, setStringHeader, setTransferEncoding, setVersionpublic SubscriptionResponse()
public SubscriptionResponse(HTTPResponse httpRes)