Module: Internet Protocols Module Package: HTTP
RWHttpEntityTagHeaderBase RWHttpHeaderBase
#include <rw/http/RWHttpEntityTagHeaderBase.h>
RWHttpEntityTagHeaderBase is a specialization of RWHttpHeaderBase. It is a helper class that defines the basic formatting and structure of headers that take etag as an argument.
RWHttpEntityTagHeaderBase(const RWCString& label, RWHttpHeaderType type=RW_HTTP_ENTITY_HEADER);
Constructs a default RWHttpEntityTagHeaderBase object with the label value set to label and the internal RWHttpHeaderType set to type. The RWCString should contain 7-bit US-ASCII data.
RWHttpEntityTagHeaderBase(const RWCString& label, const RWHttpEntityTag& etag, RWHttpHeaderType type=RW_HTTP_ENTITY_HEADER);
Constructs an RWHttpEntityTagHeaderBase object with the label set to label, the entity tag set to etag, and the type set to type. The RWCString should contain 7-bit US-ASCII data.
RWHttpEntityTag getEntityTag() const;
Returns the internal entity tag value.
virtual RWCString getValue() const;
Returns the entity tag as a HTTP formatted string. The RWCString should contain 7-bit US-ASCII data.
void setEntityTag(const WHttpEntityTag& etag);
Sets the internal entity tag value to etag.
© 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.