summaryrefslogtreecommitdiff
path: root/ACE/apps/JAWS/clients/Caching/http_handler.h
diff options
context:
space:
mode:
authorWilliam R. Otte <wotte@dre.vanderbilt.edu>2008-03-04 13:56:48 +0000
committerWilliam R. Otte <wotte@dre.vanderbilt.edu>2008-03-04 13:56:48 +0000
commitc4078c377d74290ebe4e66da0b4975da91732376 (patch)
tree1816ef391e42a07929304908ac0e21f4c2f6cb7b /ACE/apps/JAWS/clients/Caching/http_handler.h
parent700d1c1a6be348c6c70a2085e559baeb8f4a62ea (diff)
downloadATCD-c4078c377d74290ebe4e66da0b4975da91732376.tar.gz
swap in externals for ACE and TAO
Diffstat (limited to 'ACE/apps/JAWS/clients/Caching/http_handler.h')
-rw-r--r--ACE/apps/JAWS/clients/Caching/http_handler.h81
1 files changed, 0 insertions, 81 deletions
diff --git a/ACE/apps/JAWS/clients/Caching/http_handler.h b/ACE/apps/JAWS/clients/Caching/http_handler.h
deleted file mode 100644
index db4c68aa200..00000000000
--- a/ACE/apps/JAWS/clients/Caching/http_handler.h
+++ /dev/null
@@ -1,81 +0,0 @@
-/* -*- c++ -*- */
-// Hey, Emacs! This is a C++ file.
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// apps/JAWS/clients/Caching
-//
-// = FILENAME
-// http_handler.h
-//
-// = AUTHOR
-// James Hu
-//
-// ============================================================================
-
-#include "ace/SOCK_Connector.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "ace/Connector.h"
-#include "ace/Svc_Handler.h"
-
-class HTTP_Handler : public ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_NULL_SYNCH>
- // = TITLE
- // A simple HTTP protocol handler for clients.
- //
- // = DESCRIPTION
- // Checks to see if the requested file is already cached. If
- // so, it says so. If not, the request is issued to the
- // connection. The fetched file is cached.
-{
-public:
- // = Initialization methods.
- HTTP_Handler (void);
- HTTP_Handler (const char * path);
-
- virtual int open (void *);
- // Open hook.
-
- virtual int svc (void);
- // Entry points defined by the abstract Svc_Handler.
-
- const char *filename (void) const;
- // Accessor to the file being fetched.
-
-private:
- char request_[BUFSIZ];
- size_t request_size_;
-
- char filename_[BUFSIZ];
- size_t response_size_;
-};
-
-class HTTP_Connector
- // = TITLE
- // A simple HTTP connector.
- //
- // = DESCRIPTION
- // Creates an HTTP Handler based on the URL, and then delegates
- // to to the SOCK_CONNECTOR. Adapter pattern.
-{
-public:
- int connect (const char * url);
- // User entry point into the HTTP connector.
-
-private:
- int parseurl (const char *url,
- char *host,
- u_short *port,
- char *path);
- // Helper function.
-
-private:
- ACE_Connector<HTTP_Handler, ACE_SOCK_CONNECTOR> connector_;
- // Factory that actively establishes a connection with an HTTP
- // server.
-};