org.glassfish.tyrus.spi.grizzlyprovider
Class GrizzlyRemoteEndpoint

java.lang.Object
  extended by org.glassfish.tyrus.spi.grizzlyprovider.GrizzlyRemoteEndpoint
All Implemented Interfaces:
SPIRemoteEndpoint

public class GrizzlyRemoteEndpoint
extends Object
implements SPIRemoteEndpoint

Author:
dannycoward

Constructor Summary
GrizzlyRemoteEndpoint(org.glassfish.grizzly.websockets.WebSocket socket)
           
 
Method Summary
 void close(int code, String reason)
           
static GrizzlyRemoteEndpoint get(org.glassfish.grizzly.websockets.WebSocket socket)
           
 String getUri()
           
 boolean isConnected()
           
static void remove(org.glassfish.grizzly.websockets.WebSocket socket)
           
 void send(byte[] data)
           
 void send(String data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GrizzlyRemoteEndpoint

public GrizzlyRemoteEndpoint(org.glassfish.grizzly.websockets.WebSocket socket)
Method Detail

get

public static GrizzlyRemoteEndpoint get(org.glassfish.grizzly.websockets.WebSocket socket)

remove

public static void remove(org.glassfish.grizzly.websockets.WebSocket socket)

isConnected

public boolean isConnected()
Specified by:
isConnected in interface SPIRemoteEndpoint

send

public void send(String data)
          throws IOException
Specified by:
send in interface SPIRemoteEndpoint
Throws:
IOException

send

public void send(byte[] data)
          throws IOException
Specified by:
send in interface SPIRemoteEndpoint
Throws:
IOException

close

public void close(int code,
                  String reason)
           throws IOException
Specified by:
close in interface SPIRemoteEndpoint
Throws:
IOException

getUri

public String getUri()
Specified by:
getUri in interface SPIRemoteEndpoint


Copyright © 2012. All Rights Reserved.