Base HTTP response handler class.  
 More...
#include <torchttphandler.h>
Base HTTP response handler class. 
A TorcHTTPHandler object will be passed TorcHTTPRequest objects to process. Handlers are registered with the HTTP server using TorcHTTPServer::RegisterHandler and are removed with TorcHTTPServer::DeregisterHandler. The handler's signature tells the server which URL the handler is expecting to process (e.g. /events).
Concrete subclasses must implement ProcessRequest.
- See also
 - TorcHTTPServer 
 
- 
TorcHTTPRequest 
 
Definition at line 13 of file torchttphandler.h.
 
      
        
          | TorcHTTPHandler::TorcHTTPHandler  | 
          ( | 
          const QString &  | 
          Signature,  | 
        
        
           | 
           | 
          const QString &  | 
          Name  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
  
  
      
        
          | TorcHTTPHandler::~TorcHTTPHandler  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
 
      
        
          | bool TorcHTTPHandler::GetRecursive  | 
          ( | 
          void  | 
           | ) | 
           const | 
        
      
 
 
  
  
      
        
          | void TorcHTTPHandler::HandleFile  | 
          ( | 
          TorcHTTPRequest &  | 
          Request,  | 
         
        
           | 
           | 
          const QString &  | 
          Filename,  | 
         
        
           | 
           | 
          int  | 
          Cache  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
staticprotected   | 
  
 
 
  
  
      
        
          | void TorcHTTPHandler::HandleOptions  | 
          ( | 
          TorcHTTPRequest &  | 
          Request,  | 
         
        
           | 
           | 
          int  | 
          Allowed  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
staticprotected   | 
  
 
 
  
  
      
        
          | bool TorcHTTPHandler::MethodIsAuthorised  | 
          ( | 
          TorcHTTPRequest &  | 
          Request,  | 
         
        
           | 
           | 
          int  | 
          Allowed  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
staticprotected   | 
  
 
Check the current request is authorised and set the authentication header if not. 
Definition at line 92 of file torchttphandler.cpp.
 
 
      
        
          | QString TorcHTTPHandler::Name  | 
          ( | 
          void  | 
           | ) | 
           const | 
        
      
 
 
  
  
      
        
          | virtual void TorcHTTPHandler::ProcessHTTPRequest  | 
          ( | 
          const QString &  | 
          PeerAddress,  | 
         
        
           | 
           | 
          int  | 
          PeerPort,  | 
         
        
           | 
           | 
          const QString &  | 
          LocalAddress,  | 
         
        
           | 
           | 
          int  | 
          LocalPort,  | 
         
        
           | 
           | 
          TorcHTTPRequest &  | 
          Request  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
pure virtual   | 
  
 
 
  
  
      
        
          | QVariantMap TorcHTTPHandler::ProcessRequest  | 
          ( | 
          const QString &  | 
          Method,  | 
         
        
           | 
           | 
          const QVariant &  | 
          Parameters,  | 
         
        
           | 
           | 
          QObject *  | 
          Connection,  | 
         
        
           | 
           | 
          bool  | 
          Authenticated  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
virtual   | 
  
 
 
      
        
          | QString TorcHTTPHandler::Signature  | 
          ( | 
          void  | 
           | ) | 
           const | 
        
      
 
 
  
  
      
        
          | QString TorcHTTPHandler::m_name | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | bool TorcHTTPHandler::m_recursive | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | QString TorcHTTPHandler::m_signature | 
         
       
   | 
  
protected   | 
  
 
 
The documentation for this class was generated from the following files: