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

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

      
    
Rootfs path

      
    
Size
1925 (1.9 KB)
MD5
4ed1fe6d926e10ef5a5bcf630216c7d3
SHA1
92664d1dd9c25b6d09778c39ed9f0ca00d123dc2
SHA256
5c947cba1f973d2369862d78d3537b163b405ce026da3b33f753fec8e1b2f78a
SHA512

      
    
SHA1_git
c31bf45c8d767bb8c0bf865bb69d2ea7bb367a24
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
Setting.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.http2; enum Setting { HEADER_TABLE_SIZE(1), ENABLE_PUSH(2), MAX_CONCURRENT_STREAMS(3), INITIAL_WINDOW_SIZE(4), MAX_FRAME_SIZE(5), MAX_HEADER_LIST_SIZE(6), ENABLE_CONNECT_PROTOCOL(8), NO_RFC7540_PRIORITIES(9), TLS_RENEG_PERMITTED(10), UNKNOWN(Integer.MAX_VALUE); private final int id; Setting(int id) { this.id = id; } final int getId() { return id; } @Override public final String toString() { return Integer.toString(id); } static Setting valueOf(int i) { return switch (i) { case 1 -> HEADER_TABLE_SIZE; case 2 -> ENABLE_PUSH; case 3 -> MAX_CONCURRENT_STREAMS; case 4 -> INITIAL_WINDOW_SIZE; case 5 -> MAX_FRAME_SIZE; case 6 -> MAX_HEADER_LIST_SIZE; case 8 -> ENABLE_CONNECT_PROTOCOL; case 9 -> NO_RFC7540_PRIORITIES; case 10 -> TLS_RENEG_PERMITTED; default -> UNKNOWN; }; } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
48.57
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