ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/coyote/UpgradeToken.java

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

      
    
Rootfs path

      
    
Size
1946 (1.9 KB)
MD5
13272f8005b5a4efc23a69fdbd1f8c3b
SHA1
2fb467bd9f056bc1b22722e4634afd82aa7e4ee4
SHA256
d5e160b03956249c7974e20f15b197db203c682b6f83b71f0a7eb550822cdcb4
SHA512

      
    
SHA1_git
26f3f43a7eed3285eeab12f6d715a9dbeeb884ce
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
UpgradeToken.java | 1.9 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.coyote; import jakarta.servlet.http.HttpUpgradeHandler; import org.apache.tomcat.ContextBind; import org.apache.tomcat.InstanceManager; /** * Token used during the upgrade process. * * @param httpUpgradeHandler The handler for the HTTP upgrade * @param contextBind The object to use to bind/unbind the current thread to/from the web application class * loader * @param instanceManager The instance manager to use to create new Servlets, Filters, Listeners etc * @param protocol The desired protocol to upgrade to */ public record UpgradeToken(HttpUpgradeHandler httpUpgradeHandler, ContextBind contextBind, InstanceManager instanceManager, String protocol) { public ContextBind getContextBind() { return contextBind; } public HttpUpgradeHandler getHttpUpgradeHandler() { return httpUpgradeHandler; } public InstanceManager getInstanceManager() { return instanceManager; } public String getProtocol() { return protocol; } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
53.36
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