Module: Internet Protocols Module Package: HTTP
Does not inherit
#include <rw/http/RWHttpEntityTag.h>
RWHttpEntityTag maintains the entity tag. It compares two entity tags as defined in the HTTP/1.1 specification. RWHttpEntityTag is used primary within Entity-Tag based classes.
enum validator { weak = 0, strong = 1};
RWHttpEntityTag();
Constructs a default RWHttpEntityTag. The stored tag is an empty string with its validator level set to weak.
RWHttpEntityTag(const RWCString& str, validator val = RWHttpEntityTag::strong);
Constructs an RWHttpEntityTag with its value set to str, and its validator level set to val. The RWCString should contain 7-bit US-ASCII data.
RWCString asString(void) const;
Returns the entity tag as an RWCString. Weakness is indicated by W/. The RWCString should contain 7-bit US-ASCII data.
bool compareTo(const RWHttpEntityTag& etag, validator val = RWHttpEntityTag::strong);
Compares this and etag as defined in RFC2616 [13.3.3]. val specifies whether this is a weak or strong comparison.
RWHttpEntityTag::validator getStrength() const;
Returns the strength of the entity tag.
RWCString getTag() const;
Returns the entity tag. The RWCString should contain 7-bit US-ASCII data.
void setEntityTag(const RWCString& tag, validator val = RWHttpEntityTag::strong);
Assigns the internal tag from an RWCString. The RWCString should contain 7-bit US-ASCII data.
© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.