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

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

      
    
Rootfs path

      
    
Size
2749 (2.7 KB)
MD5
1634f9ee984454806a57e779d5aeef99
SHA1
84b40ba301be47e2c9e21750075248db4dadfcb1
SHA256
588ef8b858c12bb4515b335b2ea53286101e5dbad7ef44277c575afcf7c0f80b
SHA512

      
    
SHA1_git
10eb4d213e32fd4246f8275fc3c2cff7bc942e99
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
ServletRequestAttributeEvent.java | 2.7 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; import java.io.Serial; /** * This is the event class for notifications of changes to the attributes of the servlet request in an application. * * @see ServletRequestAttributeListener * * @since Servlet 2.4 */ public class ServletRequestAttributeEvent extends ServletRequestEvent { @Serial private static final long serialVersionUID = 1L; /** * Attribute name. */ private final String name; /** * Attribute value. */ private final Object value; /** * Construct a ServletRequestAttributeEvent giving the servlet context of this web application, the ServletRequest * whose attributes are changing and the name and value of the attribute. * * @param sc the ServletContext that is sending the event. * @param request the ServletRequest that is sending the event. * @param name the name of the request attribute. * @param value the value of the request attribute. */ public ServletRequestAttributeEvent(ServletContext sc, ServletRequest request, String name, Object value) { super(sc, request); this.name = name; this.value = value; } /** * Return the name of the attribute that changed on the ServletRequest. * * @return the name of the changed request attribute */ public String getName() { return this.name; } /** * Returns the value of the attribute that has been added, removed or replaced. If the attribute was added, this is * the value of the attribute. If the attribute was removed, this is the value of the removed attribute. If the * attribute was replaced, this is the old value of the attribute. * * @return the value of the changed request attribute */ public Object getValue() { return this.value; } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
35.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