Author: markt Date: Tue Jan 22 11:47:55 2013 New Revision: 1436843 URL: http://svn.apache.org/viewvc?rev=1436843&view=rev Log: Like the other send methods, these methods need to be able to indicate to the caller that the send failed. Deviation from the current specification draft http://java.net/jira/browse/WEBSOCKET_SPEC-121
Modified: tomcat/trunk/java/javax/websocket/RemoteEndpoint.java Modified: tomcat/trunk/java/javax/websocket/RemoteEndpoint.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/javax/websocket/RemoteEndpoint.java?rev=1436843&r1=1436842&r2=1436843&view=diff ============================================================================== --- tomcat/trunk/java/javax/websocket/RemoteEndpoint.java (original) +++ tomcat/trunk/java/javax/websocket/RemoteEndpoint.java Tue Jan 22 11:47:55 2013 @@ -47,7 +47,7 @@ public interface RemoteEndpoint { void sendPartialString(String fragment, boolean isLast) throws IOException; - void sendPartialBytes(ByteBuffer partialByte, boolean isLast) throws IOException; // or Iterable<byte[]> + void sendPartialBytes(ByteBuffer partialByte, boolean isLast) throws IOException; OutputStream getSendStream() throws IOException; @@ -67,8 +67,8 @@ public interface RemoteEndpoint { void sendObjectByCompletion(Object obj, SendHandler completion); - void sendPing(ByteBuffer applicationData); + void sendPing(ByteBuffer applicationData) throws IOException; - void sendPong(ByteBuffer applicationData); + void sendPong(ByteBuffer applicationData) throws IOException; } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org