Details

    • Sub-task
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 2.17.0.Final
    • 3.x Future
    • Java EE
    • None

    Description

      It would be good to be able to create a Websocket Message Decoder with the following command :

      websocket-new-decoder --named MyDecoder --encoderType TEXT --type MyMessage
      

      The generated code would look like

      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() {
      
          }
      }
      

      The encoderType parameter can be TEXT, TextStream, Binary, BinaryStream

      Attachments

        Activity

          People

            Unassigned Unassigned
            agoncal Antonio Goncalves (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: