ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/test/jakarta/servlet/jsp/TesterPageContext.java

Path
ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/test/jakarta/servlet/jsp/TesterPageContext.java
Status
scanned
Type
file
Name
TesterPageContext.java
Extension
.java
Programming language
Java
Mime type
text/plain
File type
ASCII text, with CRLF line terminators
Tag

      
    
Rootfs path

      
    
Size
4464 (4.4 KB)
MD5
fa3e245a01520301a17e2828211e52b8
SHA1
b44e5524b44d4fc6081048c879d439aaa2bdc38a
SHA256
50360f4f372c1ad889c36edd172efb243aa033fa087f38ca9e939375d0e2201e
SHA512

      
    
SHA1_git
8edbb15d7d9cc425505b60b6c819e27cd653ac2f
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
TesterPageContext.java | 4.4 KB |

/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package jakarta.servlet.jsp; import java.io.IOException; import java.util.Enumeration; import jakarta.el.ELContext; import jakarta.servlet.Servlet; import jakarta.servlet.ServletConfig; import jakarta.servlet.ServletContext; import jakarta.servlet.ServletException; import jakarta.servlet.ServletRequest; import jakarta.servlet.ServletResponse; import jakarta.servlet.http.HttpSession; public class TesterPageContext extends PageContext { private final ELContext elContext; public TesterPageContext() { this.elContext = null; } public TesterPageContext(ELContext elContext) { this.elContext = elContext; } @Override public void initialize(Servlet servlet, ServletRequest request, ServletResponse response, String errorPageURL, boolean needsSession, int bufferSize, boolean autoFlush) throws IOException, IllegalStateException, IllegalArgumentException { // NO-OP } @Override public void release() { // NO-OP } @Override public HttpSession getSession() { // NO-OP return null; } @Override public Object getPage() { // NO-OP return null; } @Override public ServletRequest getRequest() { // NO-OP return null; } @Override public ServletResponse getResponse() { // NO-OP return null; } @Override public Exception getException() { // NO-OP return null; } @Override public ServletConfig getServletConfig() { // NO-OP return null; } @Override public ServletContext getServletContext() { // NO-OP return null; } @Override public void forward(String relativeUrlPath) throws ServletException, IOException { // NO-OP } @Override public void include(String relativeUrlPath) throws ServletException, IOException { // NO-OP } @Override public void include(String relativeUrlPath, boolean flush) throws ServletException, IOException { // NO-OP } @Override public void handlePageException(Exception e) throws ServletException, IOException { // NO-OP } @Override public void handlePageException(Throwable t) throws ServletException, IOException { // NO-OP } @Override public void setAttribute(String name, Object value) { // NO-OP } @Override public void setAttribute(String name, Object value, int scope) { // NO-OP } @Override public Object getAttribute(String name) { // NO-OP return null; } @Override public Object getAttribute(String name, int scope) { // NO-OP return null; } @Override public Object findAttribute(String name) { // NO-OP return null; } @Override public void removeAttribute(String name) { // NO-OP } @Override public void removeAttribute(String name, int scope) { // NO-OP } @Override public int getAttributesScope(String name) { // NO-OP return 0; } @Override public Enumeration<String> getAttributeNamesInScope(int scope) { // NO-OP return null; } @Override public JspWriter getOut() { // NO-OP return null; } @Override public ELContext getELContext() { return elContext; } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
27.42
Copyrights

      
    
Holders

      
    
Authors

      
    
License detections License expression License expression SPDX
apache_2_0-4bde3f57-78aa-4201-96bf-531cba09e7de apache-2.0 Apache-2.0
URL Start line End line
http://www.apache.org/licenses/LICENSE-2.0 9 9