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

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

      
    
Rootfs path

      
    
Size
4097 (4.0 KB)
MD5
4b6599adbbe4e1d1acbdda570faaf9de
SHA1
697395414fb6c27e76fed225cf4f3b74ac97cd05
SHA256
45fab3721566e52b53fda7ad2c1b202a73765aa50fd86050b8c26e51d85f45fe
SHA512

      
    
SHA1_git
692157bdb862b0b25aecca11a1c103658339741a
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
ErrorData.java | 4.0 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; /** * Contains information about an error, for error pages. The information contained in this instance is meaningless if * not used in the context of an error page. To indicate a JSP is an error page, the page author must set the * isErrorPage attribute of the page directive to "true". * * @see PageContext#getErrorData * * @since JSP 2.0 */ public final class ErrorData { private final Throwable throwable; private final int statusCode; private final String method; private final String uri; private final String servletName; private final String queryString; /** * Creates a new ErrorData object. * * @param throwable The Throwable that is the cause of the error * @param statusCode The status code of the error * @param uri The request URI * @param servletName The name of the servlet invoked * * @deprecated Use {#link {@link ErrorData#ErrorData(Throwable, int, String, String, String, String)} */ @Deprecated(since = "4.0", forRemoval = true) public ErrorData(Throwable throwable, int statusCode, String uri, String servletName) { this(throwable, statusCode, null, uri, servletName, null); } /** * Creates a new ErrorData object. * * @param throwable The Throwable that is the cause of the error * @param statusCode The status code of the error * @param method The request method * @param uri The request URI * @param servletName The name of the servlet invoked * @param queryString The request query string * * @since JSP 4.0 */ public ErrorData(Throwable throwable, int statusCode, String method, String uri, String servletName, String queryString) { this.throwable = throwable; this.statusCode = statusCode; this.method = method; this.uri = uri; this.servletName = servletName; this.queryString = queryString; } /** * Returns the Throwable that caused the error. * * @return The Throwable that caused the error */ public Throwable getThrowable() { return this.throwable; } /** * Returns the status code of the error. * * @return The status code of the error */ public int getStatusCode() { return this.statusCode; } /** * Returns the request method. * * @return The request method */ public String getMethod() { return this.method; } /** * Returns the request URI. * * @return The request URI */ public String getRequestURI() { return this.uri; } /** * Returns the name of the servlet invoked. * * @return The name of the servlet invoked */ public String getServletName() { return this.servletName; } /** * Returns the request query string or {@code null} if the request had no query string. * * @return The request query string * * @since JSP 4.0 */ public String getQueryString() { return this.queryString; } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
25.0
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