Implementation of WebSocket extension.
| 25 | * Implementation of WebSocket extension. |
| 26 | */ |
| 27 | public class WsExtension implements Extension { |
| 28 | |
| 29 | private final String name; |
| 30 | private final List<Parameter> parameters = new ArrayList<>(); |
| 31 | |
| 32 | WsExtension(String name) { |
| 33 | this.name = name; |
| 34 | } |
| 35 | |
| 36 | void addParameter(Parameter parameter) { |
| 37 | parameters.add(parameter); |
| 38 | } |
| 39 | |
| 40 | @Override |
| 41 | public String getName() { |
| 42 | return name; |
| 43 | } |
| 44 | |
| 45 | @Override |
| 46 | public List<Parameter> getParameters() { |
| 47 | return parameters; |
| 48 | } |
| 49 | } |
nothing calls this directly
no outgoing calls
no test coverage detected