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

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

      
    
Rootfs path

      
    
Size
4115 (4.0 KB)
MD5
469224d7ba4daae1f1305c464ba886af
SHA1
07d390931aa8d5ef3ae87e5995101b2f11babcaa
SHA256
24b302aeaa5e7da76b365b5413b111bfa25c4b4efcedd99ffc34bb3328710410
SHA512

      
    
SHA1_git
78076cbf9ea884cc285efef9dc19e2e551c66d07
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
AsyncEvent.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; /** * Used to pass data to the methods of {@link AsyncListener}. * * @since Servlet 3.0 */ public class AsyncEvent { private final AsyncContext context; private final ServletRequest request; private final ServletResponse response; private final Throwable throwable; /** * Creates an instance using the provide parameters. * * @param context The asynchronous context associated with the event */ public AsyncEvent(AsyncContext context) { this.context = context; this.request = null; this.response = null; this.throwable = null; } /** * Creates an instance using the provide parameters. * * @param context The asynchronous context associated with the event * @param request The request associated with the event * @param response The response associated with the event */ public AsyncEvent(AsyncContext context, ServletRequest request, ServletResponse response) { this.context = context; this.request = request; this.response = response; this.throwable = null; } /** * Creates an instance using the provide parameters. * * @param context The asynchronous context associated with the event * @param throwable The throwable associated with the event */ public AsyncEvent(AsyncContext context, Throwable throwable) { this.context = context; this.throwable = throwable; this.request = null; this.response = null; } /** * Creates an instance using the provide parameters. * * @param context The asynchronous context associated with the event * @param request The request associated with the event * @param response The response associated with the event * @param throwable The throwable associated with the event */ public AsyncEvent(AsyncContext context, ServletRequest request, ServletResponse response, Throwable throwable) { this.context = context; this.request = request; this.response = response; this.throwable = throwable; } /** * Obtain the asynchronous context associated with the event. * * @return The asynchronous context associated with the event or {@code null} if one was not specified */ public AsyncContext getAsyncContext() { return context; } /** * Obtain the request associated with the event. * * @return The request associated with the event or {@code null} if one was not specified */ public ServletRequest getSuppliedRequest() { return request; } /** * Obtain the response associated with the event. * * @return The response associated with the event or {@code null} if one was not specified */ public ServletResponse getSuppliedResponse() { return response; } /** * Obtain the throwable associated with the event. * * @return The throwable associated with the event or {@code null} if one was not specified */ public Throwable getThrowable() { return throwable; } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
26.33
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