|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ocap.hn.upnp.common.UPnPMessage
public class UPnPMessage
The class represents a UPnP message comprising an HTTP start line, zero or more headers and an optional XML document.
| Constructor Summary | |
|---|---|
UPnPMessage(String startLine,
String[] headers,
org.w3c.dom.Document xml)
Public constructor for the message. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||