public class BodyParserRequestHandler extends AbstractApiRequestHandler implements ApiRequestHandler
| Constructor and Description |
|---|
BodyParserRequestHandler() |
| Modifier and Type | Method and Description |
|---|---|
Set<Class<?>> |
getAllowedTypes() |
JsonMapper |
getJsonMarshaller() |
protected Object |
getObject(ApiRequest request) |
void |
handle(ApiRequest request) |
void |
init() |
protected boolean |
isAllowedType(Object obj) |
protected Object |
merge(Object body,
ApiRequest request) |
protected Map<String,Object> |
mergeMap(Map<String,Object> overlay,
ApiRequest request) |
void |
setAllowedTypes(Set<Class<?>> allowedTypes) |
void |
setJsonMarshaller(JsonMapper jsonMarshaller) |
handleExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleExceptionpublic void handle(ApiRequest request) throws IOException
handle in interface ApiRequestHandlerIOExceptionprotected Object getObject(ApiRequest request) throws IOException
IOExceptionprotected boolean isAllowedType(Object obj)
protected Object merge(Object body, ApiRequest request)
@PostConstruct public void init()
public JsonMapper getJsonMarshaller()
@Inject public void setJsonMarshaller(JsonMapper jsonMarshaller)
Copyright © 2014. All rights reserved.