14#include <boost/shared_ptr.hpp>
144 virtual void reset();
150 std::string
getUri()
const;
163 virtual std::string
toString()
const;
int version()
returns Kea hooks version.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
Base class for classes which need to be associated with a CalloutHandle object.
Generic exception thrown by HttpMessage class.
Base class for HttpRequest and HttpResponse.
Generic exception thrown by HttpRequest class.
HttpRequestError(const char *file, size_t line, const char *what)
Represents HTTP request message.
static bool recordIssuer_
Record issuer name.
std::string custom_
Custom name.
Method methodFromString(std::string method) const
Converts HTTP method specified in textual format to Method.
HttpRequestContextPtr context_
Pointer to the HttpRequestContext holding parsed data.
std::string toBriefString() const
Returns HTTP method, URI and HTTP version as a string.
std::string basic_auth_
Basic auth.
virtual void finalize()
Completes creation of the HTTP request.
static bool recordSubject_
Access control parameters: Flags which indicate what information to record.
Method getMethod() const
Returns HTTP method of the request.
std::string getSubject() const
Returns recorded subject name.
virtual void create()
Commits information held in the context into the request.
std::string getBasicAuth() const
Returns recorded basic auth.
std::string getBody() const
Returns HTTP message body as string.
bool isPersistent() const
Checks if the client has requested persistent connection.
void requireHttpMethod(const HttpRequest::Method &method)
Specifies an HTTP method allowed for the request.
std::string getCustom() const
Returns recorded custom name.
void setTls(bool tls)
Set (record) TLS usage.
static bool recordBasicAuth_
Record basic auth.
HttpRequest()
Constructor for inbound HTTP request.
std::string getUri() const
Returns HTTP request URI.
std::set< Method > required_methods_
Set of required HTTP methods.
const HttpRequestContextPtr & context() const
Returns pointer to the HttpRequestContext.
std::string getRemote() const
Returns remote address.
void setCustom(const std::string &custom)
Set (record) custom name.
std::string methodToString(const HttpRequest::Method &method) const
Converts HTTP method to string.
std::string getIssuer() const
Returns recorded issuer name.
std::string issuer_
Issuer name.
void setSubject(const std::string &subject)
Set (record) subject name.
void setRemote(const std::string &remote)
Set remote address.
std::string remote_
Remote address.
std::string subject_
Subject name.
Method method_
HTTP method of the request.
virtual void reset()
Reset the state of the object.
void setBasicAuth(const std::string &basic_auth)
Set (record) basic auth.
virtual std::string toString() const
Returns HTTP message as string.
bool getTls() const
Access control parameters: get/set methods.
void setIssuer(const std::string &issuer)
Set (record) issuer name.
boost::shared_ptr< BasicHttpAuth > BasicHttpAuthPtr
Type of pointers to basic HTTP authentication objects.
boost::shared_ptr< HttpRequestContext > HttpRequestContextPtr
Pointer to the HttpRequestContext.
boost::shared_ptr< HttpRequest > HttpRequestPtr
Pointer to the HttpRequest object.
Defines the logger used by the top-level component of kea-lfc.