ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/catalina/SessionEvent.java

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

      
    
Rootfs path

      
    
Size
2419 (2.4 KB)
MD5
de223742015990a598d1b107d23bda6a
SHA1
9be51ba5b17e1aae200a24b4339c332513d79ce8
SHA256
3b9cf6b1a670d5d95c5daadc1e4ffd3516ced6fdb692c5c3b74e17d3f868cc75
SHA512

      
    
SHA1_git
9a584cfb5e2d9816b92aaeb3ec74eacc13a6d90e
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
SessionEvent.java | 2.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 org.apache.catalina; import java.io.Serial; import java.util.EventObject; /** * General event for notifying listeners of significant changes on a Session. */ public final class SessionEvent extends EventObject { @Serial private static final long serialVersionUID = 1L; /** * The event data associated with this event. */ private final Object data; /** * The Session on which this event occurred. */ private final Session session; /** * The event type this instance represents. */ private final String type; /** * Construct a new SessionEvent with the specified parameters. * * @param session Session on which this event occurred * @param type Event type * @param data Event data */ public SessionEvent(Session session, String type, Object data) { super(session); this.session = session; this.type = type; this.data = data; } /** * @return the event data of this event. */ public Object getData() { return this.data; } /** * @return the Session on which this event occurred. */ public Session getSession() { return this.session; } /** * @return the event type of this event. */ public String getType() { return this.type; } @Override public String toString() { return "SessionEvent['" + getSession() + "','" + getType() + "']"; } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
43.27
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