<< Back to previous view

[WEBSOCKET_SPEC-144] Discrepancy between URIs of programmatic and annotated endpoint Created: 17/Feb/13  Updated: 21/Feb/13  Resolved: 21/Feb/13

Status: Resolved
Project: websocket-spec
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: arungupta Assignee: dannycoward
Resolution: Fixed Votes: 0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Tags: v013
Participants: arungupta and dannycoward

 Description   

There is a discrepancy between programmatic and annotated endpoint. The following two code work in GlassFish b76:

@WebSocketEndpoint(value="/websocket")
public class MyEndpoint {

AND

public class MyServerConfiguration extends DefaultServerConfiguration implements ServerEndpointConfiguration {

public MyServerConfiguration() { super(MyEndpoint.class, "websocket"); }

But annotated endpoint takes the URI as "/websocket" and the programmatic endpoint takes the URI as "websocket".

The spec requires annotated endpoint URI to start with / but could not find any such requirement in programmatic endpoint.



 Comments   
Comment by dannycoward [ 21/Feb/13 12:30 AM ]

yes I agree the programmatic config should require the leading / consistent with the annotation. So this is updated in v013 of the spec.

Generated at Wed Apr 16 20:57:22 UTC 2014 using JIRA 4.0.2#472.