|
aerogear-controller 1.0.0.M1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Responder
A Responder is capable of responding to a specific MediaType.
| Method Summary | |
|---|---|
boolean |
accepts(String mediaType)
Determines whether this responder can respond to the passed-in @{code mediaType} |
void |
respond(Object entity,
RouteContext routeContext)
Responds to the current request in a why appropriate to the type of Responder (forward, return). |
| Method Detail |
|---|
boolean accepts(String mediaType)
mediaType - the mediaType that this responder supports.
void respond(Object entity,
RouteContext routeContext)
throws Exception
entity - the entity returned from a Route endpoint.routeContext - the current RouteContext.
Exception - if an error occurs while responding.
|
aerogear-controller 1.0.0.M1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||