CPPSERV


Home Projects Jobs Clientele Contact
CPPSERV Documentation Download TODO Mailing lists Bug tracker News RSS Feed Browse source

IncludedResponseWrapper.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2006 by Ilya A. Volynets-Evenbakh                       *
00003  *   ilya@total-knowledge.com                                              *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  ***************************************************************************/
00020 #ifndef _INCLUSED_RESPONSE_WRAPPER_
00021 #define _INCLUDED_RESPONSE_WRAPPER_
00022 
00023 #include <servlet/HttpServletResponseWrapper.h>
00024 
00025 namespace container
00026 {
00027 
00028 class IncludedResponseWrapper:
00029     public servlet::HttpServletResponseWrapper
00030 {
00031 public:
00036     IncludedResponseWrapper(HttpServletResponse* response)
00037         : servlet::HttpServletResponseWrapper(response)
00038     {}
00039 
00043     virtual void addCookie(const servlet::Cookie&)
00044     {}
00045 
00049     virtual void sendError(int, const std::string&) {
00050     }
00051 
00055     virtual void sendError(int) {
00056     }
00057 
00061     virtual void sendRedirect(const std::string&) {
00062     }
00063     
00067     virtual void setDateHeader(const std::string&, long) {
00068     }
00069     
00073    virtual void addDateHeader(const std::string&, long) {
00074     }
00075     
00079     virtual void setHeader(const std::string&, const std::string&) {
00080     }
00081     
00085      virtual void addHeader(const std::string&, const std::string&) {
00086     }
00087     
00091     virtual void setIntHeader(const std::string&, int) {
00092     }
00093     
00097     virtual void addIntHeader(const std::string&, int) {
00098     }
00099 
00104     virtual void setStatus(int) {
00105     }
00106 
00110      virtual void setStatus(int, const std::string&) {
00111     }
00112 
00116     virtual void  setCharacterEncoding(const std::string&) {
00117     }
00118 
00122     virtual void  setContentLength(int){
00123     }
00124 
00128     virtual void  setContentType(const std::string&) {
00129     }
00130 };   
00131 }
00132 
00133 #endif

SourceForge.net Logo