public class Acceptable extends Object implements Renderable
| Modifier and Type | Class and Description |
|---|---|
static interface |
Acceptable.Creator |
static class |
Acceptable.Creators |
| Modifier and Type | Field and Description |
|---|---|
protected static Map<String,Acceptable.Creator> |
DEFAULT_MEDIA_TYPE_MAP |
| Modifier | Constructor and Description |
|---|---|
protected |
Acceptable(Object obj) |
| Modifier and Type | Method and Description |
|---|---|
static Acceptable |
as(Object obj) |
protected Map<String,Acceptable.Creator> |
getMediaTypeMap() |
protected Object |
getSource() |
Acceptable |
map(Renderable matches,
String... mediaTypesStartWith) |
Acceptable |
mapToAny(Renderable matchesAny) |
protected void |
putToMediaTypeMap(String mediaType,
Acceptable.Creator c) |
Response |
render(RequestContext context,
ResponseContext response)
Render invocation result to response.
|
Renderable |
selectAcceptableOne(RequestContext context) |
protected static final Map<String,Acceptable.Creator> DEFAULT_MEDIA_TYPE_MAP
protected Acceptable(Object obj)
public static Acceptable as(Object obj)
public Response render(RequestContext context, ResponseContext response) throws IOException, WebApplicationException
Renderablerender in interface Renderablecontext - RequestContextresponse - ResponseContextIOException - I/O error.WebApplicationException - other exception.public Acceptable mapToAny(Renderable matchesAny)
public Acceptable map(Renderable matches, String... mediaTypesStartWith)
public Renderable selectAcceptableOne(RequestContext context)
protected Object getSource()
protected Map<String,Acceptable.Creator> getMediaTypeMap()
protected void putToMediaTypeMap(String mediaType, Acceptable.Creator c)
Copyright © 2011-2017 Analog Web Framework Development Team. All Rights Reserved.