public class BodyParserEngineXml extends Object implements BodyParserEngine
BodyParserEngine
Constructor and Description |
---|
BodyParserEngineXml(com.fasterxml.jackson.dataformat.xml.XmlMapper xmlMapper) |
Modifier and Type | Method and Description |
---|---|
String |
getContentType()
The content type this BodyParserEngine can handle
MUST BE THREAD SAFE TO CALL!
|
<T> T |
invoke(Context context,
Class<T> classOfT)
Invoke the parser and get back a Java object populated
with the content of this request.
|
@Inject public BodyParserEngineXml(com.fasterxml.jackson.dataformat.xml.XmlMapper xmlMapper)
public <T> T invoke(Context context, Class<T> classOfT)
BodyParserEngine
invoke
in interface BodyParserEngine
context
- The contextclassOfT
- The class we expectpublic String getContentType()
BodyParserEngine
getContentType
in interface BodyParserEngine
Copyright © 2019 ninjaframework. All rights reserved.