/*
 *  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 websocket.echo;

import javax.websocket.WebSocketEndpoint;
import javax.websocket.WebSocketMessage;

@WebSocketEndpoint("/websocket/echoAnnotation")
public class EchoAnnotation {

    @WebSocketMessage
    public String printMessage(String msg) {
        return msg;
    }
}

@@ -832,16 +832,45 @@
 .echo;%0A%0A
+import java.nio.ByteBuffer;%0A%0A
 import j
@@ -1068,12 +1068,15 @@
 ing 
-prin
+echoTex
 tMes
@@ -1119,11 +1119,116 @@
 g;%0A    %7D
+%0A%0A    @WebSocketMessage%0A    public ByteBuffer echoBinaryMessage(ByteBuffer bb) %7B%0A        return bb;%0A    %7D
 %0A%7D%0A

Echo binary messages as well as text messages.