KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > barracuda > core > helper > servlet > BarracudaServletResponseWrapper


1 /*
2  * Copyright (C) 2003 Christian Cryder [christianc@granitepeaks.com]
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  * $Id: BarracudaServletResponseWrapper.java,v 1.2 2004/02/01 05:16:28 christianc Exp $
19  */

20 package org.enhydra.barracuda.core.helper.servlet;
21
22 import java.io.*;
23 import java.util.*;
24 import java.security.*;
25 import javax.servlet.*;
26 import javax.servlet.http.*;
27
28 import org.apache.log4j.Logger;
29
30 import org.enhydra.barracuda.core.helper.state.*;
31 import org.enhydra.barracuda.plankton.data.*;
32
33 /**
34  * <p>This class acts as a thin wrapper around a ServletResponse.
35  *
36  * @author christianc@granitepeaks.com
37  * @since //csc_010404_1
38  */

39 public interface BarracudaServletResponseWrapper extends HttpServletResponse {
40
41     /**
42      * Set the underlying response object.
43      *
44      * @param ireq the underlying HttpServletRequest
45      */

46 // public void setResponse(ServletResponse iresp);
47

48     /**
49      * Allow the ServletOutputStream to be overridden. Resets the PrintWriter and OutputStream
50      */

51 // public void setOutputStream(ServletOutputStream iout);
52

53     /**
54      * Return the servlet output stream associated with this Response.
55      *
56      * @exception IllegalStateException if <code>getWriter</code> has
57      * already been called for this response
58      * @exception IOException if an input/output error occurs
59      */

60 // public ServletOutputStream getOutputStream() throws IOException;
61

62     /**
63      * Allow the PrintWriter to be overridden. Resets the PrintWriter and OutputStream
64      */

65 // public void setWriter(PrintWriter ipw);
66

67     /**
68      * Return the print writer associated with this Response (this method may
69      * be called multiple times).
70      *
71      * @exception IllegalStateException if <code>getOutputStream</code> has
72      * already been called for this response
73      * @exception IOException if an input/output error occurs
74      */

75 // public PrintWriter getWriter() throws IOException;
76

77     /**
78      * Allow the Header store to be overridden. You need to do this if you override
79      * PrintWriter or OutputStream and you still want your headers to be saved.
80      */

81 // public void setHeaderStore(Map ihdrmap);
82

83     /**
84      * Return the headers associated with this response.
85      */

86 // public Map getHeaderStore();
87
}
88
Popular Tags