|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- widest type an instance of this can encode.public interface Encoder<T>
Encodes an object into an HTTP request body. Like
javax.websocket.Encoder
.
Encoder
is used when a method parameter has no *Param
annotation. For example:
@POST @Path("/") void create(User user);
MethodMetadata.formParams()
, they will be
collected and passed to Encoder.Text<Map<String, ?>>
.
@POST @Path("/") Session login(@Named("username") String username, @Named("password") String password);
Nested Class Summary | |
---|---|
static interface |
Encoder.Text<T>
Converts objects to an appropriate text representation. |
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |