#include <MessageRep.h>

Inheritance diagram for Adaptation::Ecap::HeaderRep:
Collaboration diagram for Adaptation::Ecap::HeaderRep:

Public Types

typedef libecap::Name Name
 
typedef libecap::Area Area
 

Public Member Functions

 HeaderRep (Http::Message &aMessage)
 
bool hasAny (const Name &name) const override
 
Value value (const Name &name) const override
 
void add (const Name &name, const Value &value) override
 
void removeAny (const Name &name) override
 
void visitEach (libecap::NamedValueVisitor &visitor) const override
 
Area image () const override
 
void parse (const Area &buf) override
 

Static Protected Member Functions

static Http::HdrType TranslateHeaderId (const Name &name)
 

Private Attributes

HttpHeadertheHeader
 
Http::MessagetheMessage
 

Detailed Description

Definition at line 33 of file MessageRep.h.

Member Typedef Documentation

◆ Area

typedef libecap::Area Adaptation::Ecap::HeaderRep::Area

Definition at line 37 of file MessageRep.h.

◆ Name

typedef libecap::Name Adaptation::Ecap::HeaderRep::Name

Definition at line 36 of file MessageRep.h.

Constructor & Destructor Documentation

◆ HeaderRep()

Adaptation::Ecap::HeaderRep::HeaderRep ( Http::Message aMessage)

Definition at line 26 of file MessageRep.cc.

Member Function Documentation

◆ add()

void Adaptation::Ecap::HeaderRep::add ( const Name name,
const Value &  value 
)
override

Definition at line 52 of file MessageRep.cc.

References SBuf::c_str(), and Http::CONTENT_LENGTH.

◆ hasAny()

bool Adaptation::Ecap::HeaderRep::hasAny ( const Name name) const
override

Definition at line 32 of file MessageRep.cc.

References Http::OTHER.

◆ image()

libecap::Area Adaptation::Ecap::HeaderRep::image ( ) const
override

Definition at line 88 of file MessageRep.cc.

References MemBuf::content(), MemBuf::contentSize(), and MemBuf::init().

◆ parse()

void Adaptation::Ecap::HeaderRep::parse ( const Area buf)
override

Definition at line 98 of file MessageRep.cc.

References error(), and Must.

◆ removeAny()

void Adaptation::Ecap::HeaderRep::removeAny ( const Name name)
override

Definition at line 64 of file MessageRep.cc.

References Http::CONTENT_LENGTH, and Http::OTHER.

◆ TranslateHeaderId()

Http::HdrType Adaptation::Ecap::HeaderRep::TranslateHeaderId ( const Name name)
staticprotected

Definition at line 105 of file MessageRep.cc.

References Http::OTHER.

◆ value()

Adaptation::Ecap::HeaderRep::Value Adaptation::Ecap::HeaderRep::value ( const Name name) const
override

Definition at line 41 of file MessageRep.cc.

References Http::OTHER, String::size(), and String::termedBuf().

◆ visitEach()

void Adaptation::Ecap::HeaderRep::visitEach ( libecap::NamedValueVisitor &  visitor) const
override

Definition at line 77 of file MessageRep.cc.

References HttpHeaderInitPos.

Member Data Documentation

◆ theHeader

HttpHeader& Adaptation::Ecap::HeaderRep::theHeader
private

Definition at line 55 of file MessageRep.h.

◆ theMessage

Http::Message& Adaptation::Ecap::HeaderRep::theMessage
private

Definition at line 56 of file MessageRep.h.


The documentation for this class was generated from the following files:

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors