XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Unresolved
    • Icon: Major Major
    • 3.x Future
    • 2.17.0.Final
    • Java EE
    • None

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

      websocket-new-encoder --named MyEncoder --encoderType TEXT --type MyMessage
      

      The generated code would look like

      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;
          }
      }
      

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

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

                Created:
                Updated: