org.atmosphere.wasync
Interface Encoder<U,T>

Type Parameters:
U -
T -

public interface Encoder<U,T>

Encode the request's body (or transform) of type U into an object of type T.

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 - a request's body that has already been encoded or not
Returns:
an encoded object.


Copyright © 2012. All Rights Reserved.