Antonio Goncalves created FORGE-2433:
----------------------------------------
Summary: Being able to create new Websocket Encoder
Key: FORGE-2433
URL:
https://issues.jboss.org/browse/FORGE-2433
Project: Forge
Issue Type: Sub-task
Components: Java EE
Affects Versions: 2.17.0.Final
Reporter: Antonio Goncalves
Fix For: 2.x Future
It would be good to be able to create a Websocket Message Encoder with the following
command :
{code}
websocket-new-encoder --named MyEncoder --encoderType TEXT --type MyMessage
{code}
The generated code would look like
{code}
public class MyEncoder implements Encoder.Text<MyMessage> {
@Override
public void init(EndpointConfig endpointConfig) {
}
@Override
public void destroy() {
}
@Override
public String encode(MyMessage myMessage) throws EncodeException {
return null;
}
}
{code}
The {{encoderType}} parameter can be {{TEXT}}, {{TextStream}}, {{Binary}},
{{BinaryStream}}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)