|
aerogear-controller 1.0.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Consumer
A Consumer is capable of unmarshalling an Http Request Body into a Java Object representation.
| Method Summary | ||
|---|---|---|
String |
mediaType()
The media type that this consumer can handle. |
|
|
unmarshall(javax.servlet.http.HttpServletRequest request,
Class<T> type)
Will unmarshall the the HttpServletRequest into an instance of type T |
|
| Method Detail |
|---|
String mediaType()
String the media type that this consumer can handle.
<T> T unmarshall(javax.servlet.http.HttpServletRequest request,
Class<T> type)
request - the HttpServletRequest.type - the type that the request should be unmarshalled to.
T an instance of type T.
|
aerogear-controller 1.0.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||