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

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

      
    
Rootfs path

      
    
Size
1804 (1.8 KB)
MD5
7a3c49323689ded081ae314486936cb4
SHA1
b0a2b1c3aaaf6eb4b22f3873d4ef7d3c2e3a503c
SHA256
a896db0fffac8ce5e3a9b8d316a786cee29ca2c839c5664d81a044f31a60b823
SHA512

      
    
SHA1_git
0b15b3da3bf622bc3d1d61e17f09d5f8eb7d58bd
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
WsWebSocketContainerBaseTest.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 org.apache.tomcat.websocket; import java.net.URI; import jakarta.websocket.ClientEndpointConfig; import jakarta.websocket.Endpoint; import jakarta.websocket.Session; import jakarta.websocket.WebSocketContainer; public class WsWebSocketContainerBaseTest extends WebSocketBaseTest { protected static final byte[] MESSAGE_BINARY_4K = new byte[4096]; protected static final long TIMEOUT_MS = 5 * 1000; protected static final long MARGIN = 500; /* * Make this possible to override so sub-class can more easily test proxy */ protected String getHostName() { return "localhost"; } protected Session connectToEchoServer(WebSocketContainer wsContainer, Endpoint endpoint, String path) throws Exception { return wsContainer.connectToServer(endpoint, ClientEndpointConfig.Builder.create().build(), new URI("ws://" + getHostName() + ":" + getPort() + path)); } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
55.61
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