Skip to main content

[websocket-spec issues] [JIRA] Updated: (WEBSOCKET_SPEC-103) DefaultServerConfiguration used in @WebSocketEndpoint

  • From: "dannycoward (JIRA)" < >
  • To:
  • Subject: [websocket-spec issues] [JIRA] Updated: (WEBSOCKET_SPEC-103) DefaultServerConfiguration used in @WebSocketEndpoint
  • Date: Sat, 2 Feb 2013 02:29:53 +0000 (GMT+00:00)
  • Auto-submitted: auto-generated


     [ 
http://java.net/jira/browse/WEBSOCKET_SPEC-103?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

dannycoward updated WEBSOCKET_SPEC-103:
---------------------------------------

    Due Date: 08/Feb/13  (was: 01/Feb/13)

> DefaultServerConfiguration used in @WebSocketEndpoint
> -----------------------------------------------------
>
>                 Key: WEBSOCKET_SPEC-103
>                 URL: http://java.net/jira/browse/WEBSOCKET_SPEC-103
>             Project: websocket-spec
>          Issue Type: Bug
>            Reporter: Pavel Bucek
>
> @WebSocketEndpoint javadoc:
> {code}    /**
>      * The custom configuration class that the developer would like to use
>      * to configure new instances of this endpoint.
>      *
>      * @return the custom configuration class.
>      */
>     public Class<? extends DefaultServerConfiguration> 
> configuration();{code}
> How should I implement my custom DefaultServerConfiguration? Seems like I 
> have to call constructor (no-arg is private):
> {code}    public static class MyDefaultServerConfiguration extends 
> DefaultServerConfiguration {
>         public MyDefaultServerConfiguration(Class<? extends Endpoint> 
> endpointClass, String path) {
>             super(endpointClass, path);
>         }
>     }{code} 
> what should be present in path argument? Why should I put it there if its 
> available from @WebSocketEndpoint anotation? (value is path and annotated 
> class is endpointClass). Is this supposed to be application wide 
> configuration? It needs to be clear in javadoc.
> Additionally, if its per endpoint, shouldn't that be 
> DefaultServerEndpointConfiguration?
> And last but not least - why is Default implementation forced here? User 
> might want to provide its own - just and interface would look better for me.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[websocket-spec issues] [JIRA] Updated: (WEBSOCKET_SPEC-103) DefaultServerConfiguration used in @WebSocketEndpoint

dannycoward (JIRA) 02/02/2013
 
 
Close
loading
Please Confirm
Close