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

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

      
    
Rootfs path

      
    
Size
2334 (2.3 KB)
MD5
53b8d47f4f9ead2f4ae98cd5c57aec01
SHA1
4c837535ddb38690d4867abe9b8a8f48a9551253
SHA256
dfccb73c63e07e500931c762544794c50e619d59193bf5b824ff15ec19c2ce55
SHA512

      
    
SHA1_git
7cbb94990b07bc1d466e1e8d78bc5f2790e1610a
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
Http11NioProtocol.java | 2.3 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; import org.apache.juli.logging.Log; import org.apache.juli.logging.LogFactory; import org.apache.tomcat.util.net.NioChannel; import org.apache.tomcat.util.net.NioEndpoint; /** * HTTP/1.1 protocol implementation using NIO. */ public class Http11NioProtocol extends AbstractHttp11Protocol<NioChannel> { private static final Log log = LogFactory.getLog(Http11NioProtocol.class); public Http11NioProtocol() { this(new NioEndpoint()); } public Http11NioProtocol(NioEndpoint endpoint) { super(endpoint); } @Override protected Log getLog() { return log; } // -------------------- Pool setup -------------------- public void setSelectorTimeout(long timeout) { ((NioEndpoint) getEndpoint()).setSelectorTimeout(timeout); } public long getSelectorTimeout() { return ((NioEndpoint) getEndpoint()).getSelectorTimeout(); } public void setPollerThreadPriority(int threadPriority) { ((NioEndpoint) getEndpoint()).setPollerThreadPriority(threadPriority); } public int getPollerThreadPriority() { return ((NioEndpoint) getEndpoint()).getPollerThreadPriority(); } @Override protected String getNamePrefix() { if (isSSLEnabled()) { return "https-" + getSslImplementationShortName() + "-nio"; } else { return "http-nio"; } } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
50.64
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