public class UPnPMessage extends Object
| Constructor and Description |
|---|
UPnPMessage(String startLine,
String[] headers,
org.w3c.dom.Document xml)
Public constructor for the message.
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
getHeaders()
Reports the headers from the message, including all HTTP headers but
excluding trailing CR/LF characters.
|
String |
getStartLine()
Reports the HTTP start line, excluding trailing CR/LF characters.
|
org.w3c.dom.Document |
getXML()
Gets the XML from the message.
|
public UPnPMessage(String startLine, String[] headers, org.w3c.dom.Document xml)
startLine - The HTTP start line, excluding trailing CR/LF
characters. May be an empty string.headers - The HTTP or other headers that this instance is
to contain, excluding trailing CF/LF characters and the
blank line that follows HTTP headers.
The contents of the headers parameter are
copied into the resulting UPnPMessage object.
May be a zero-length array.xml - The XML document that this instance is to contain.
May be null.NullPointerException - if startLine,
headers, or any of the array elements within headers is
null.public String getStartLine()
public String[] getHeaders()
Note that if the message includes an HTTP CONTENT-LENGTH header,
its value describes the length of the raw XML data carried in the
UPnP message body, not the size of the XML document provided by
getXML().
UPnPMessage obejct.
If the UPnPMessage has no headers,
returns a zero-length array.UPnPIncomingMessageHandler,
UPnPOutgoingMessageHandlerpublic org.w3c.dom.Document getXML()
Copyright © 2013 CableLabs. All Rights Reserved.