Back to project page android_opengles.
The source code is released under:
MIT License
If you think the Android project android_opengles listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.java_websocket.server; /*from ww w . jav a2 s .co m*/ import java.net.Socket; import java.nio.channels.SelectionKey; import java.nio.channels.SocketChannel; import java.util.List; import org.java_websocket.WebSocketAdapter; import org.java_websocket.WebSocketImpl; import org.java_websocket.drafts.Draft; import org.java_websocket.server.WebSocketServer.WebSocketServerFactory; public class DefaultWebSocketServerFactory implements WebSocketServerFactory { @Override public WebSocketImpl createWebSocket( WebSocketAdapter a, Draft d, Socket s ) { return new WebSocketImpl( a, d ); } @Override public WebSocketImpl createWebSocket( WebSocketAdapter a, List<Draft> d, Socket s ) { return new WebSocketImpl( a, d ); } @Override public SocketChannel wrapChannel( SocketChannel channel, SelectionKey key ) { return (SocketChannel) channel; } }