public interface Responder
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(String mediaType)
Determines whether this responder can respond to the passed-in @{code mediaType}
|
MediaType |
getMediaType()
The media type that this Responder can handle.
|
void |
respond(Object entity,
RouteContext routeContext)
Responds to the current request in a why appropriate to the type of Responder (forward, return).
|
MediaType getMediaType()
MediaType the media type.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.Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.