public class SSDPRequest extends BasicHttpRequest implements SSDPMessage
HttpRequest
implementation.
Name | Mode | Type | isHidden | isBound | isConstrained |
---|---|---|---|---|---|
allHeaders | R | Header[] | false | false | false |
header | W | Header | false | false | false |
headers | W | Header[] | false | false | false |
params | RW | HttpParams | false | false | false |
protocolVersion | R | ProtocolVersion | false | false | false |
requestLine | R | RequestLine | 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 |
---|---|
|
SSDPRequest(DatagramPacket packet)
Sole public constructor.
|
protected |
SSDPRequest(String method)
Protected constructor for subclasses.
|
Modifier and Type | Method and Description |
---|---|
String |
toString() |
protected String |
toString(InetSocketAddress address)
Convenience method to format a
InetSocketAddress to its
String representation. |
getProtocolVersion, getRequestLine
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 SSDPRequest(DatagramPacket packet)
packet
- The DatagramPacket
containing the
SSDPRequest
.protected SSDPRequest(String method)
method
- The name of the SSDP method.protected String toString(InetSocketAddress address)
InetSocketAddress
to its
String
representation.address
- The InetSocketAddress
.String
representation.public String toString()
toString
in class BasicHttpRequest
Copyright © 2015–2020 Allen D. Ball. All rights reserved.