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

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

      
    
Rootfs path

      
    
Size
1704 (1.7 KB)
MD5
565a06bb032ff8b47f00e568995daa5a
SHA1
87eb51407061d3a31a1edcba27c4752fc197f4c5
SHA256
594593798de28a3fed210383969c7b4898d3d06124a1ef6a9d77fb8fcc674ac7
SHA512

      
    
SHA1_git
629db99086000ded0de835ed78dcec22acf5b147
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
Http2Error.java | 1.7 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 Http2Error { // @formatter:off NO_ERROR (0x00), PROTOCOL_ERROR (0x01), INTERNAL_ERROR (0x02), FLOW_CONTROL_ERROR (0x03), SETTINGS_TIMEOUT (0x04), STREAM_CLOSED (0x05), FRAME_SIZE_ERROR (0x06), REFUSED_STREAM (0x07), CANCEL (0x08), COMPRESSION_ERROR (0x09), CONNECT_ERROR (0x0a), ENHANCE_YOUR_CALM (0x0b), INADEQUATE_SECURITY (0x0c), HTTP_1_1_REQUIRED (0x0d); // @formatter:on private final long code; Http2Error(long code) { this.code = code; } long getCode() { return code; } byte[] getCodeBytes() { byte[] codeByte = new byte[4]; ByteUtil.setFourBytes(codeByte, 0, code); return codeByte; } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
58.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