org.glassfish.tyrus.platform
Class EndpointAdapter
java.lang.Object
org.glassfish.tyrus.platform.EndpointAdapter
- All Implemented Interfaces:
- SPIEndpoint
public class EndpointAdapter
- extends Object
- implements SPIEndpoint
Adapter to make the implementation easy for developers.
- Author:
- Stepan Kopriva (stepan.kopriva at oracle.com)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EndpointAdapter
public EndpointAdapter()
checkHandshake
public boolean checkHandshake(SPIHandshakeRequest hr)
- Specified by:
checkHandshake in interface SPIEndpoint
onConnect
public void onConnect(SPIRemoteEndpoint gs)
- Specified by:
onConnect in interface SPIEndpoint
onMessage
public void onMessage(SPIRemoteEndpoint gs,
String messageString)
- Specified by:
onMessage in interface SPIEndpoint
onMessage
public void onMessage(SPIRemoteEndpoint gs,
byte[] messageBytes)
- Specified by:
onMessage in interface SPIEndpoint
onClose
public void onClose(SPIRemoteEndpoint gs)
- Specified by:
onClose in interface SPIEndpoint
getSupportedProtocols
public List<String> getSupportedProtocols(List<String> subProtocols)
- Specified by:
getSupportedProtocols in interface SPIEndpoint
remove
public void remove()
- Specified by:
remove in interface SPIEndpoint
Copyright © 2012. All Rights Reserved.