MAK RTIspy API Documentation for HLA 1516
wwwDocSubDir.h
Go to the documentation of this file.
00001 /*********************************************************************
00002  ** Copyright (c) 2006 MaK Technologies, Inc.
00003  ** All rights reserved.
00004  *********************************************************************/
00005 /*******************************************************************************
00006  ** $RCSfile: wwwDocSubDir.h,v $ $Revision: 1.3 $ $State: Exp $
00007  *******************************************************************************/
00008 #ifndef DtWwwDocSubDir_H_
00009 #define DtWwwDocSubDir_H_
00010 
00011 #include <rtiMsConfig.h>
00012 #include <vlutil/vlString.h>
00013 #include <basicEhsDoc.h>
00014 
00015 class HttpRequest;
00016 class HttpResponse;
00017 
00018 // The DtWwwDocSubDir page represents a sub-directory in the docTree
00019 // - by default sub-directories contain only Files
00020 // - a sub-directory may have other sub-directories or EHS pages as children
00021 // NOTE: to serve files in a subdirectory of the DocRoot, each sub-directory
00022 //       must be added as an EHS page
00023 class DT_DLL_WWWEHS DtWwwDocSubDir : public DtBasicEhsDoc
00024 {
00025 private:
00026 
00027    // Copy Constructor not implimented : Copy not allowed
00028    DtWwwDocSubDir(const DtWwwDocSubDir&);
00029    // Copy Constructor not implimented : Copy not allowed
00030    DtWwwDocSubDir& operator=(const DtWwwDocSubDir&);
00031 
00032 public:
00033 
00034    DtWwwDocSubDir( DtString dirName );
00035    virtual ~DtWwwDocSubDir();
00036 
00037    virtual DtString directoryPath() const;
00038 
00039 protected:
00040 
00041    // Handler for file requests for files in sub-directories from docRoot
00042    virtual ResponseCode HandleFileRequest( HttpRequest * ipoHttpRequest, 
00043                                            HttpResponse * ipoHttpResponse );
00044 
00045    // Serve requests for this page
00046    virtual ResponseCode HandleNonFileRequest( HttpRequest * ipoHttpRequest, 
00047                                               HttpResponse * ipoHttpResponse );
00048 
00049 protected:
00050    
00051    // The directory name
00052    DtString myDirectoryName;
00053 
00054    // All directories serve the same invalid page warning
00055    static DtString* theInvalidPageWarning;
00056 };
00057 
00058 #endif // DtWwwDocSubDir_H_

Document ID: Generated on Thu Jun 14 14:15:04 EDT 2012 from SVN revision 116116
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)