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

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

      
    
Rootfs path

      
    
Size
2207 (2.2 KB)
MD5
9dbedbbeca062701121dd580c1cf0635
SHA1
3bad91d109b1b7ea6f7103d58e095624c69b3172
SHA256
5064dbdc7bca0e73098f40b3a68b0335d12701be99f140c1a4a3736470be5a50
SHA512

      
    
SHA1_git
3cfa4ebf2a5fc726880cd7ab6cda6ac39bb9af63
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
WsRemoteEndpointBasic.java | 2.2 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.OutputStream; import java.io.Writer; import java.nio.ByteBuffer; import jakarta.websocket.EncodeException; import jakarta.websocket.RemoteEndpoint; public class WsRemoteEndpointBasic extends WsRemoteEndpointBase implements RemoteEndpoint.Basic { WsRemoteEndpointBasic(WsRemoteEndpointImplBase base) { super(base); } @Override public void sendText(String text) throws IOException { base.sendString(text); } @Override public void sendBinary(ByteBuffer data) throws IOException { base.sendBytes(data); } @Override public void sendText(String fragment, boolean isLast) throws IOException { base.sendPartialString(fragment, isLast); } @Override public void sendBinary(ByteBuffer partialByte, boolean isLast) throws IOException { base.sendPartialBytes(partialByte, isLast); } @Override public OutputStream getSendStream() throws IOException { return base.getSendStream(); } @Override public Writer getSendWriter() throws IOException { return base.getSendWriter(); } @Override public void sendObject(Object o) throws IOException, EncodeException { base.sendObject(o); } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
49.58
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