https://bz.apache.org/bugzilla/show_bug.cgi?id=61230

            Bug ID: 61230
           Summary: Java API for WebSocket JSR will define a standard API
                    for creating WebSocket applications.
           Product: Tomcat 9
           Version: 9.0.0.M22
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: WebSocket
          Assignee: dev@tomcat.apache.org
          Reporter: webmas...@angosso.net
  Target Milestone: -----

Created attachment 35084
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=35084&action=edit
localhost API

* jasper.jar (Jasper 2 Compiler and Runtime)
* servlet-api.jar (Servlet 2.5 API)
Editing
$CATALINA_HOME/conf/web.xml to uncomment the "/servlet/*" servlet-mapping
definition.
affected character sets see:
http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/webapps/examples/WEB-INF/classes/websocket/ExamplesConfig.java?view=log&pathrev=1800129
package websocket;

        import java.util.HashSet;
        import java.util.Set;

        import javax.websocket.Endpoint;
        import javax.websocket.server.ServerApplicationConfig;
        import javax.websocket.server.ServerEndpointConfig;

        import websocket.drawboard.DrawboardEndpoint;
        import websocket.echo.EchoEndpoint;

        public class ExamplesConfig implements ServerApplicationConfig {

            @Override
            public Set<ServerEndpointConfig> getEndpointConfigs(
                    Set<Class<? extends Endpoint>> scanned) {

                Set<ServerEndpointConfig> result = new
HashSet<ServerEndpointConfig>();

                if (scanned.contains(EchoEndpoint.class)) {
                    result.add(ServerEndpointConfig.Builder.create(
                            EchoEndpoint.class,
                            "/websocket/echoProgrammatic").build());
                }

                if (scanned.contains(DrawboardEndpoint.class)) {
                    result.add(ServerEndpointConfig.Builder.create(
                            DrawboardEndpoint.class,
                            "/websocket/drawboard").build());
                }

                return result;
            }
Revision:1800129
Wed jun 28 09:40:23 2017 UTC by Roger

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to