01 /*
02 * Copyright 2004 The Apache Software Foundation
03 *
04 * Licensed under the Apache License, Version 2.0 (the "License");
05 * you may not use this file except in compliance with the License.
06 * You may obtain a copy of the License at
07 *
08 * http://www.apache.org/licenses/LICENSE-2.0
09 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 package javax.servlet.jsp;
18
19 import javax.servlet.*;
20 import javax.servlet.http.*;
21 import java.io.IOException;
22
23 /**
24 * The HttpJspPage interface describes the interaction that a JSP Page
25 * Implementation Class must satisfy when using the HTTP protocol.
26 *
27 * <p>
28 * The behaviour is identical to that of the JspPage, except for the signature
29 * of the _jspService method, which is now expressible in the Java type
30 * system and included explicitly in the interface.
31 *
32 * @see JspPage
33 */
34
35 public interface HttpJspPage extends JspPage {
36
37 /** The _jspService()method corresponds to the body of the JSP page. This
38 * method is defined automatically by the JSP container and should never
39 * be defined by the JSP page author.
40 * <p>
41 * If a superclass is specified using the extends attribute, that
42 * superclass may choose to perform some actions in its service() method
43 * before or after calling the _jspService() method. See using the extends
44 * attribute in the JSP_Engine chapter of the JSP specification.
45 *
46 * @param request Provides client request information to the JSP.
47 * @param response Assists the JSP in sending a response to the client.
48 * @throws ServletException Thrown if an error occurred during the
49 * processing of the JSP and that the container should take
50 * appropriate action to clean up the request.
51 * @throws IOException Thrown if an error occurred while writing the
52 * response for this page.
53 */
54 public void _jspService(HttpServletRequest request,
55 HttpServletResponse response) throws ServletException,
56 IOException;
57 }
|