#include <ServiceConfig.h>

Inheritance diagram for Adaptation::ServiceConfig:
Collaboration diagram for Adaptation::ServiceConfig:

Public Member Functions

 ServiceConfig ()
 
const char * methodStr () const
 
const char * vectPointStr () const
 
bool parse ()
 

Public Attributes

String key
 
String uri
 
String protocol
 
String host
 
String resource
 
int port
 
Method method
 
VectPoint point
 
bool bypass
 
long maxConn
 maximum number of concurrent service transactions More...
 
SrvBehaviour onOverload
 how to handle Max-Connections feature More...
 
bool routing
 whether this service may determine the next service(s) More...
 
bool ipv6
 whether this service uses IPv6 transport (default IPv4) More...
 
Security::PeerOptions secure
 
YesNoNone connectionEncryption
 whether this service uses only secure connections More...
 

Protected Member Functions

Method parseMethod (const char *buf) const
 
VectPoint parseVectPoint (const char *buf) const
 
bool grokBool (bool &var, const char *name, const char *value)
 interpret parsed values More...
 
bool grokUri (const char *value)
 
bool grokLong (long &var, const char *name, const char *value)
 
bool grokOnOverload (SrvBehaviour &var, const char *value)
 handle on-overload configuration option More...
 
virtual bool grokExtension (const char *name, const char *value)
 handle name=value configuration option with name unknown to Squid More...
 

Detailed Description

Definition at line 22 of file ServiceConfig.h.

Constructor & Destructor Documentation

◆ ServiceConfig()

Adaptation::ServiceConfig::ServiceConfig ( )

Definition at line 19 of file ServiceConfig.cc.

Member Function Documentation

◆ grokBool()

bool Adaptation::ServiceConfig::grokBool ( bool &  var,
const char *  name,
const char *  value 
)
protected

Definition at line 293 of file ServiceConfig.cc.

References cfg_filename, config_lineno, DBG_CRITICAL, debugs, and HERE().

Referenced by parse().

◆ grokExtension()

bool Adaptation::ServiceConfig::grokExtension ( const char *  name,
const char *  value 
)
protectedvirtual

Reimplemented in Adaptation::Ecap::ServiceConfig.

Definition at line 345 of file ServiceConfig.cc.

References cfg_filename, config_lineno, DBG_CRITICAL, and debugs.

Referenced by parse().

◆ grokLong()

bool Adaptation::ServiceConfig::grokLong ( long &  var,
const char *  name,
const char *  value 
)
protected

Definition at line 310 of file ServiceConfig.cc.

References cfg_filename, config_lineno, DBG_CRITICAL, debugs, NULL, and p.

Referenced by parse().

◆ grokOnOverload()

bool Adaptation::ServiceConfig::grokOnOverload ( SrvBehaviour var,
const char *  value 
)
protected

◆ grokUri()

◆ methodStr()

const char * Adaptation::ServiceConfig::methodStr ( ) const

◆ parse()

◆ parseMethod()

Adaptation::Method Adaptation::ServiceConfig::parseMethod ( const char *  buf) const
protected

Definition at line 38 of file ServiceConfig.cc.

References Adaptation::methodNone, Adaptation::methodReqmod, and Adaptation::methodRespmod.

Referenced by parse().

◆ parseVectPoint()

Adaptation::VectPoint Adaptation::ServiceConfig::parseVectPoint ( const char *  buf) const
protected

Definition at line 50 of file ServiceConfig.cc.

References Adaptation::pointNone, Adaptation::pointPostCache, and Adaptation::pointPreCache.

Referenced by parse().

◆ vectPointStr()

const char * Adaptation::ServiceConfig::vectPointStr ( ) const

Definition at line 32 of file ServiceConfig.cc.

References point, and Adaptation::vectPointStr().

Referenced by Adaptation::Config::dumpService(), and parse().

Member Data Documentation

◆ bypass

◆ connectionEncryption

◆ host

◆ ipv6

bool Adaptation::ServiceConfig::ipv6

Definition at line 50 of file ServiceConfig.h.

Referenced by parse().

◆ key

String Adaptation::ServiceConfig::key

◆ maxConn

long Adaptation::ServiceConfig::maxConn

Definition at line 47 of file ServiceConfig.h.

Referenced by parse(), and Adaptation::Icap::ServiceRep::setMaxConnections().

◆ method

◆ onOverload

SrvBehaviour Adaptation::ServiceConfig::onOverload

Definition at line 48 of file ServiceConfig.h.

Referenced by Adaptation::Icap::ServiceRep::availableConnections(), and parse().

◆ point

VectPoint Adaptation::ServiceConfig::point

Definition at line 43 of file ServiceConfig.h.

Referenced by parse(), and vectPointStr().

◆ port

◆ protocol

String Adaptation::ServiceConfig::protocol

◆ resource

String Adaptation::ServiceConfig::resource

Definition at line 39 of file ServiceConfig.h.

Referenced by grokUri().

◆ routing

bool Adaptation::ServiceConfig::routing

Definition at line 49 of file ServiceConfig.h.

Referenced by parse(), and Adaptation::Ecap::XactionRep::updateHistory().

◆ secure

Security::PeerOptions Adaptation::ServiceConfig::secure

◆ uri


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors