org.atmosphere.config.managed
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
 T encode(U s)
          Encode the object of type U into an object of type T.
 

Method Detail

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.


Copyright © 2013. All Rights Reserved.