[forge-issues] [JBoss JIRA] (FORGE-2434) Being able to create new Websocket Decoder
Antonio Goncalves (JIRA)
issues at jboss.org
Thu Aug 13 09:49:03 EDT 2015
Antonio Goncalves created FORGE-2434:
----------------------------------------
Summary: Being able to create new Websocket Decoder
Key: FORGE-2434
URL: https://issues.jboss.org/browse/FORGE-2434
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 Decoder with the following command :
{code}
websocket-new-decoder --named MyDecoder --encoderType TEXT --type MyMessage
{code}
The generated code would look like
{code}
public class MessageDecoder implements Decoder.Text<MyMessage> {
@Override
public MyMessage decode(String s) throws DecodeException {
return null;
}
@Override
public boolean willDecode(String s) {
return false;
}
@Override
public void init(EndpointConfig endpointConfig) {
}
@Override
public void destroy() {
}
}
{code}
The {{encoderType}} parameter can be {{TEXT}}, {{TextStream}}, {{Binary}}, {{BinaryStream}}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
More information about the forge-issues
mailing list