ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/jakarta/websocket/server/HandshakeRequest.java

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

      
    
Rootfs path

      
    
Size
1857 (1.8 KB)
MD5
7e56d70498c3e8e46424e0dc701034ac
SHA1
2c1376072d8e8b0550995733d1ec1438a752123f
SHA256
00a6558745b4a62c68ae0a37115e75c16dc6dd2279e07de2bcc72fe14cba75db
SHA512

      
    
SHA1_git
5837b309d7c47b664f68ccfa598f61b06433ca07
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
HandshakeRequest.java | 1.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 jakarta.websocket.server; import java.net.URI; import java.security.Principal; import java.util.List; import java.util.Map; /** * Represents the HTTP request that asked to be upgraded to WebSocket. */ public interface HandshakeRequest { String SEC_WEBSOCKET_KEY = "Sec-WebSocket-Key"; String SEC_WEBSOCKET_PROTOCOL = "Sec-WebSocket-Protocol"; String SEC_WEBSOCKET_VERSION = "Sec-WebSocket-Version"; String SEC_WEBSOCKET_EXTENSIONS = "Sec-WebSocket-Extensions"; Map<String,List<String>> getHeaders(); Principal getUserPrincipal(); URI getRequestURI(); boolean isUserInRole(String role); /** * Get the HTTP Session object associated with this request. Object is used to avoid a direct dependency on the * Servlet API. * * @return The jakarta.servlet.http.HttpSession object associated with this request, if any. */ Object getHttpSession(); Map<String,List<String>> getParameterMap(); String getQueryString(); }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
50.42
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