lintel 0.2.0
Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
lintel::HttpComponent Class Reference

#include <HttpComponent.h>

Inheritance diagram for lintel::HttpComponent:
lintel::Component

Public Member Functions

 HttpComponent ()
 
 HttpComponent (std::shared_ptr< EnvironmentConfiguration > environmentConfiguration)
 
std::vector< std::shared_ptr< Entry > > parse (const std::string &content, int32_t lineOffset, const std::string &fileName) override
 
- Public Member Functions inherited from lintel::Component
 Component (std::string configRoot)
 
virtual ~Component ()=default
 
const std::string & getConfigRoot () const
 

Additional Inherited Members

- Static Protected Member Functions inherited from lintel::Component
static std::size_t convertToBytes (const std::string &size)
 

Detailed Description

Parses HTTP host configuration (server/client) from XML

Constructor & Destructor Documentation

◆ HttpComponent() [1/2]

lintel::HttpComponent::HttpComponent ( )

Construct without an environment configuration; relative cert/key paths are then not resolved

◆ HttpComponent() [2/2]

lintel::HttpComponent::HttpComponent ( std::shared_ptr< EnvironmentConfiguration >  environmentConfiguration)
explicit

Construct with an environment configuration so that relative cert/key paths are resolved against the configuration directory

Parameters
environmentConfigurationThe environment configuration

Member Function Documentation

◆ parse()

std::vector< std::shared_ptr< Entry > > lintel::HttpComponent::parse ( const std::string &  content,
int32_t  lineOffset,
const std::string &  fileName 
)
overridevirtual

Parse XML content into HTTP configuration entries

Parameters
contentXML content
fileNamesource file name
lineOffsetline offset for error reporting
Returns
list of parsed entries

Implements lintel::Component.


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