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

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

      
    
Rootfs path

      
    
Size
2588 (2.5 KB)
MD5
91495d41cf8895b3d951726998687d7d
SHA1
8dc2fd0d59d0d4325d2442b3eeff3ecfbda97c31
SHA256
20dc261224d3abcf3bba3e2bbc1a4a5e877818a81b9877d60a0800284b160753
SHA512

      
    
SHA1_git
516deb5e8da7db7ebf662f31ad7f174a562d9c4f
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
ServletContextAttributeEvent.java | 2.5 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 about changes to the attributes of the servlet context of a web * application. * * @see ServletContextAttributeListener * * @since Servlet 2.3 */ public class ServletContextAttributeEvent extends ServletContextEvent { @Serial private static final long serialVersionUID = 1L; /** * Attribute name. */ private final String name; /** * Attribute value. */ private final Object value; /** * Construct a ServletContextAttributeEvent from the given context for the given attribute name and attribute value. * * @param source The ServletContext associated with this attribute event * @param name The name of the servlet context attribute * @param value The value of the servlet context attribute */ public ServletContextAttributeEvent(ServletContext source, String name, Object value) { super(source); this.name = name; this.value = value; } /** * Return the name of the attribute that changed on the ServletContext. * * @return The name of the attribute that changed */ public String getName() { return this.name; } /** * Returns the value of the attribute that has been added, removed, or replaced. * * @return 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. */ public Object getValue() { return this.value; } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
38.02
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