public abstract class AbstractViewResponder extends Object implements Responder
View.ViewResolver| Constructor and Description |
|---|
AbstractViewResponder() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(String mediaType)
Determines whether this responder can respond to the passed-in @{code mediaType}
|
abstract ViewResolver |
getViewResolver() |
void |
respond(Object entity,
RouteContext routeContext)
Responds to the current request in a why appropriate to the type of Responder (forward, return).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMediaTypepublic abstract ViewResolver getViewResolver()
public boolean accepts(String mediaType)
Responderpublic void respond(Object entity, RouteContext routeContext) throws Exception
Responderrespond in interface Responderentity - 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.