public class SOAPRequest extends HTTPRequest
This class extends HTTPRequest to handle SOAP protocol messages used in UPnP control operations. It provides functionality for creating and parsing SOAP requests with proper XML formatting and SOAP action headers.
Key features:
This class is used by UPnP control points to send action invocation requests to UPnP devices, enabling remote procedure calls through SOAP messaging over HTTP.
| Constructor and Description |
|---|
SOAPRequest()SOAPRequest. |
SOAPRequest(HTTPRequest httpReq)SOAPRequest. |
| Modifier and Type | Method and Description |
|---|---|
Node | getBodyNode()Return the SOAP body node. |
Node | getEnvelopeNode()Return the SOAP envelope node. |
String | getSOAPAction()Return the SOAP action header value. |
boolean | isSOAPAction(String value)Check if the SOAP action matches the given value. |
SOAPResponse | postMessage(String host,
int port)Post a SOAP message to the target host and port. |
void | print()print. |
void | setContent(Node node)Set the XML content from a node. |
void | setEnvelopeNode(Node node)Set the SOAP envelope node. |
void | setSOAPAction(String action)Set the SOAP action header. |
getFirstLineString, getHeader, getHTTPVersion, getLocalAddress, getLocalPort, getMethod, getParameterList, getParameterValue, getRequestHost, getRequestPort, getSocket, getURI, isGetRequest, isHeadRequest, isKeepAlive, isMethod, isNotifyRequest, isPostRequest, isSOAPAction, isSubscribeRequest, isUnsubscribeRequest, parseRequestLine, post, post, post, read, returnBadRequest, returnOK, returnResponse, set, setBindHost, setMethod, setRequestHost, setRequestPort, setSocket, setURI, setURI, 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 SOAPRequest()
public SOAPRequest(HTTPRequest httpReq)
public Node getBodyNode()
public Node getEnvelopeNode()
public String getSOAPAction()
public boolean isSOAPAction(String value)
value - value to comparepublic SOAPResponse postMessage(String host, int port)
host - the target hostport - the target portpublic void print()
print in class HTTPRequestpublic void setContent(Node node)
node - the node to set as contentpublic void setEnvelopeNode(Node node)
node - the envelope node to setpublic void setSOAPAction(String action)
action - the SOAP action to set