Envelope.h
Go to the documentation of this file.
221 typename std::enable_if<std::is_unsigned<T>::value && !std::is_floating_point<T>::value, bool>::type
235 typename std::enable_if<std::is_signed<T>::value && !std::is_floating_point<T>::value, bool>::type
Node * getNode(Node *node, const char *path, const char *ns, size_t ns_len=0)
Full details for this device or service.
void convertToResponse()
Set a flag that this should be converted to Response on next setArg() call.
Definition: Envelope.h:147
Represents any kind of device, including a root device.
Definition: UPnP/src/include/Network/UPnP/Service.h:46
bool addArg(const String &name, const String &value)
Definition: Envelope.h:266
String soapAction() const
Envelope & createResponse(const String &actionName)
Initialise the envelope as a response.
std::enable_if< std::is_signed< T >::value &&!std::is_floating_point< T >::value, bool >::type getArg(const String &name, T &value, T defaultValue=T{})
Definition: Envelope.h:236
String getValue(const Node *node, const char *name, size_t name_size, const char *ns=nullptr, size_t ns_size=0)
const char * getArgValue(const String &name) const
Definition: Envelope.h:191
ContentType contentType() const
Get the current envelope content type.
Definition: Envelope.h:121
Class to manage a SOAP envelope for service request/response.
Definition: Envelope.h:35
or urn:{domain}:service:{serviceType}:{v}
size_t serialize(const Node &node, String &buffer, bool pretty=false)
Serialize XML text and append to string buffer.
Definition: ActionRequest.h:24
std::enable_if< std::is_unsigned< T >::value &&!std::is_floating_point< T >::value, bool >::type getArg(const String &name, T &value, T defaultValue=T{})
Definition: Envelope.h:222
bool getArg(const String &name, char &value, char defaultValue='?')
Definition: Envelope.h:202
Node * appendNode(Node *parent, const char *name, const char *value=nullptr, size_t name_size=0, size_t value_size=0)
Append a child element with optional value.
bool addArg(const String &name, const Base64 &value)
Definition: Envelope.h:284
void prepareResponse()
If Response is required but hasn't been prepared yet, do it now. This wipes out the incoming request...
Definition: Envelope.h:159
Definition: Envelope.h:45
Definition: WebConstants.h:71
String serialize(bool pretty)
Obtain content as XML string.
Definition: Envelope.h:103
size_t serialize(Print &p, bool pretty)
Serialize XML content to a stream.
Definition: Envelope.h:112
Envelope & createRequest(const String &actionName)
Initialise the envelope as a request.
Definition: Base64.h:27
1.8.13