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

Type Parameters:
U - Any object.
T - An instance of String, InputStream and Reader

public interface Encoder<U,T>

Encode the request's body (or transform) of type U into an object of type T. Encoder can be chained, e.g the result of one Encoder can be passed to the next Encoder.

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. The list of supported encoded object are String, InputStream and Reader


Copyright © 2014. All Rights Reserved.