org.glassfish.tyrus.platform
Class EndpointAdapter

java.lang.Object
  extended by org.glassfish.tyrus.platform.EndpointAdapter
All Implemented Interfaces:
SPIEndpoint

public class EndpointAdapter
extends java.lang.Object
implements SPIEndpoint

Adapter to make the implementation easy for developers.

Author:
Stepan Kopriva (stepan.kopriva at oracle.com)

Constructor Summary
EndpointAdapter()
           
 
Method Summary
 boolean checkHandshake(SPIHandshakeRequest hr)
           
 java.util.List<java.lang.String> getSupportedProtocols(java.util.List<java.lang.String> subProtocols)
           
 void onClose(SPIRemoteEndpoint gs)
           
 void onConnect(SPIRemoteEndpoint gs)
           
 void onMessage(SPIRemoteEndpoint gs, byte[] messageBytes)
           
 void onMessage(SPIRemoteEndpoint gs, java.lang.String messageString)
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EndpointAdapter

public EndpointAdapter()
Method Detail

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,
                      java.lang.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 java.util.List<java.lang.String> getSupportedProtocols(java.util.List<java.lang.String> subProtocols)
Specified by:
getSupportedProtocols in interface SPIEndpoint

remove

public void remove()
Specified by:
remove in interface SPIEndpoint


Copyright © 2012. All Rights Reserved.