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
Definition: Base64.h:28
Definition: Envelope.h:46
size_t printTo(Print &p) const
String faultCode() const
ErrorCode errorCode() const
String faultString() const
String errorDescription() const
Class to manage a SOAP envelope for service request/response.
Definition: Envelope.h:36
bool getArg(const String &name, float &value, float defaultValue=0.0)
bool getArg(const String &name, bool &value, bool defaultValue=false)
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, int32_t &value, int32_t defaultValue=0)
Error load(const FlashString &content)
bool addArg(const String &name, const String &value)
Definition: Envelope.h:266
ContentType contentType() const
Get the current envelope content type.
Definition: Envelope.h:121
void convertToResponse()
Set a flag that this should be converted to Response on next setArg() call.
Definition: Envelope.h:147
bool getArg(const String &name, uint32_t &value, uint32_t defaultValue=0)
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
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
const char * getArgValue(const String &name) const
Definition: Envelope.h:191
size_t serialize(Print &p, bool pretty)
Serialize XML content to a stream.
Definition: Envelope.h:112
@ request
@ response
Envelope & createRequest(const String &actionName)
Initialise the envelope as a request.
String serialize(bool pretty)
Obtain content as XML string.
Definition: Envelope.h:103
bool addArg(const String &name, const Base64 &value)
Definition: Envelope.h:284
String soapAction() const
bool getArg(const String &name, char &value, char defaultValue='?')
Definition: Envelope.h:202
Envelope & createResponse(const String &actionName)
Initialise the envelope as a response.
bool getArg(const String &name, double &value, double defaultValue=0.0)
Represents any kind of device, including a root device.
Definition: UPnP/src/include/Network/UPnP/Service.h:47
Definition: WebConstants.h:72
Definition: ActionRequest.h:25
Node * getNode(Node *node, const char *path, const char *ns, size_t ns_len=0)
String getValue(const Node *node, const char *name, size_t name_size, const char *ns=nullptr, size_t ns_size=0)
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.
size_t serialize(const Node &node, String &buffer, bool pretty=false)
Serialize XML text and append to string buffer.
Definition: MPU6050.h:3441