01: /*
02: * Copyright (c) 1997-1999 The Java Apache Project. All rights reserved.
03: *
04: * Redistribution and use in source and binary forms, with or without
05: * modification, are permitted provided that the following conditions
06: * are met:
07: *
08: * 1. Redistributions of source code must retain the above copyright
09: * notice, this list of conditions and the following disclaimer.
10: *
11: * 2. Redistributions in binary form must reproduce the above copyright
12: * notice, this list of conditions and the following disclaimer in
13: * the documentation and/or other materials provided with the
14: * distribution.
15: *
16: * 3. All advertising materials mentioning features or use of this
17: * software must display the following acknowledgment:
18: * "This product includes software developed by the Java Apache
19: * Project for use in the Apache JServ servlet engine project
20: * (http://java.apache.org/)."
21: *
22: * 4. The names "Apache JServ", "Apache JServ Servlet Engine" and
23: * "Java Apache Project" must not be used to endorse or promote products
24: * derived from this software without prior written permission.
25: *
26: * 5. Products derived from this software may not be called "Apache JServ"
27: * nor may "Apache" nor "Apache JServ" appear in their names without
28: * prior written permission of the Java Apache Project.
29: *
30: * 6. Redistributions of any form whatsoever must retain the following
31: * acknowledgment:
32: * "This product includes software developed by the Java Apache
33: * Project for use in the Apache JServ servlet engine project
34: * (http://java.apache.org/)."
35: *
36: * THIS SOFTWARE IS PROVIDED BY THE JAVA APACHE PROJECT "AS IS" AND ANY
37: * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
38: * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
39: * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE JAVA APACHE PROJECT OR
40: * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
41: * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
42: * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
43: * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
44: * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
45: * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
46: * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
47: * OF THE POSSIBILITY OF SUCH DAMAGE.
48: *
49: * This software consists of voluntary contributions made by many
50: * individuals on behalf of the Java Apache Group. For more information
51: * on the Java Apache Project and the Apache JServ Servlet Engine project,
52: * please see <http://java.apache.org/>.
53: */
54:
55: /*
56: * Copyright 2000,2005 wingS development team.
57: *
58: * This file is part of wingS (http://wingsframework.org).
59: *
60: * wingS is free software; you can redistribute it and/or modify
61: * it under the terms of the GNU Lesser General Public License
62: * as published by the Free Software Foundation; either version 2.1
63: * of the License, or (at your option) any later version.
64: *
65: * Please see COPYING for the complete licence.
66: */
67: package org.wings.template.parser;
68:
69: import java.io.OutputStream;
70:
71: /**
72: * A parse context is generated for each
73: * processing of a page and may hold parameters
74: * which are needed in the tag Handlers. A HttpServlet(Request|Response)
75: * are used at least.
76: *
77: * @see PageParser
78: */
79: public interface ParseContext {
80: OutputStream getOutputStream();
81:
82: void startTag(int number);
83:
84: void doneTag(int number);
85: }
|