Interface Encoder<U,T>


public interface Encoder<U,T>
Encode a message returned by a method annotated with Message or a ManagedService annotated class. The encoded object will be written back to the client. For example

     public final static class StringBufferEncoder implements Encoder>StringBuffer, String<  {
Author:
Jeanfrancois Arcand
  • Method Summary

    Modifier and Type
    Method
    Description
    encode(U s)
    Encode the object of type U into an object of type T.
  • Method Details

    • encode

      T encode(U s)
      Encode the object of type U into an object of type T.
      Parameters:
      s - an object that has already been encoded or returned from an @Message annotated class.
      Returns:
      an encoded object.