ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/tomcat/websocket/WsIOException.java

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

      
    
Rootfs path

      
    
Size
1501 (1.5 KB)
MD5
c38b4369bd874a5e50cb8e7d510d8d2a
SHA1
e543d5fa4d44e1d572c33d290eb92acf55ef4793
SHA256
10b029dc6e980db2afb6316ad83980d4b1b1017db1cc8bc1c3e3c7fc3c438c73
SHA512

      
    
SHA1_git
3e40aff25df7cd8a26698035bbf1c85ee3fa1df0
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
WsIOException.java | 1.5 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.tomcat.websocket; import java.io.IOException; import java.io.Serial; import jakarta.websocket.CloseReason; /** * Allows the WebSocket implementation to throw an {@link IOException} that includes a {@link CloseReason} specific to * the error that can be passed back to the client. */ public class WsIOException extends IOException { @Serial private static final long serialVersionUID = 1L; private final CloseReason closeReason; public WsIOException(CloseReason closeReason) { this.closeReason = closeReason; } public CloseReason getCloseReason() { return closeReason; } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
63.3
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