Skip to content

Package: HttpJspPage

HttpJspPage

Coverage

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