public class SSDPResponse extends BasicHttpResponse implements SSDPMessage
HttpResponse
implementation.
Name | Mode | Type | isHidden | isBound | isConstrained |
---|---|---|---|---|---|
allHeaders | R | Header[] | false | false | false |
entity | RW | HttpEntity | false | false | false |
header | W | Header | false | false | false |
headers | W | Header[] | false | false | false |
inetAddress | R | InetAddress | false | false | false |
locale | RW | Locale | false | false | false |
params | RW | HttpParams | false | false | false |
protocolVersion | R | ProtocolVersion | false | false | false |
reasonPhrase | W | String | false | false | false |
statusCode | W | int | false | false | false |
statusLine | RW | StatusLine | false | false | false |
headergroup, params
ADDRESS, AL, CHARSET, CRLF, EXT, MAN, MAX_AGE, MX, NT, NTS, SSDP_ALIVE, SSDP_BYEBYE, ST, USN
Modifier | Constructor and Description |
---|---|
|
SSDPResponse(DatagramPacket packet)
Sole public constructor.
|
protected |
SSDPResponse(int code,
String reason)
Protected constructor for subclasses.
|
Modifier and Type | Method and Description |
---|---|
InetAddress |
getInetAddress()
Method to get the sender
InetAddress . |
String |
toString() |
getEntity, getLocale, getProtocolVersion, getReason, getStatusLine, setEntity, setLocale, setReasonPhrase, setStatusCode, setStatusLine, setStatusLine, setStatusLine
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParams
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLocation, getST, getUSN, toDatagramPacket
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, getProtocolVersion, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParams
public SSDPResponse(DatagramPacket packet)
packet
- The DatagramPacket
containing the
SSDPResponse
.protected SSDPResponse(int code, String reason)
code
- The response status code.reason
- The response status reason.public InetAddress getInetAddress()
InetAddress
.InetAddress
(may be null
).public String toString()
toString
in class BasicHttpResponse
Copyright © 2015–2020 Allen D. Ball. All rights reserved.