ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/coyote/http11/upgrade/UpgradeProcessorBase.java

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

      
    
Rootfs path

      
    
Size
2828 (2.8 KB)
MD5
5079d4d0b54a57edad5c6cd9fa7263ed
SHA1
eebe0280fd50cd40894e2c13b47c61d425abc82b
SHA256
b75e66c051ed6caaf757660a0538ee1a247d07b1174dad0d36577a0ebf8ef0d4
SHA512

      
    
SHA1_git
32dfa69f735c00f5090210c480dd5128655783b4
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
UpgradeProcessorBase.java | 2.8 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.http11.upgrade; import java.io.IOException; import java.nio.ByteBuffer; import jakarta.servlet.http.WebConnection; import org.apache.coyote.AbstractProcessorLight; import org.apache.coyote.Request; import org.apache.coyote.UpgradeToken; import org.apache.tomcat.util.net.AbstractEndpoint.Handler.SocketState; import org.apache.tomcat.util.net.SocketWrapperBase; public abstract class UpgradeProcessorBase extends AbstractProcessorLight implements WebConnection { protected static final int INFINITE_TIMEOUT = -1; private final UpgradeToken upgradeToken; public UpgradeProcessorBase(UpgradeToken upgradeToken) { this.upgradeToken = upgradeToken; } // ------------------------------------------- Implemented Processor methods @Override public final boolean isUpgrade() { return true; } @Override public UpgradeToken getUpgradeToken() { return upgradeToken; } @Override public final void recycle() { // Currently a NO-OP as upgrade processors are not recycled. } // ---------------------------- Processor methods that are NO-OP for upgrade @Override public final SocketState service(SocketWrapperBase<?> socketWrapper) throws IOException { return null; } @Override public final SocketState asyncPostProcess() { return null; } @Override public final boolean isAsync() { return false; } @Override public final Request getRequest() { return null; } @Override public ByteBuffer getLeftoverInput() { return null; } @Override public boolean checkAsyncTimeoutGeneration() { return false; } // ----------------- Processor methods that are NO-OP by default for upgrade @Override public void timeoutAsync(long now) { // NO-OP } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
40.48
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