public static class ArgumentExtractors.BodyAsExtractor<T> extends Object implements ArgumentExtractor<T>
Constructor and Description |
---|
BodyAsExtractor(Class<T> bodyType) |
Modifier and Type | Method and Description |
---|---|
T |
extract(Context context)
Extract the argument from the context
|
Class<T> |
getExtractedType()
Get the type of the argument that is extracted
|
String |
getFieldName()
Get the field name that is being extracted, if this value is
extracted from a field
|
public T extract(Context context)
ArgumentExtractor
extract
in interface ArgumentExtractor<T>
context
- The argument to extractpublic Class<T> getExtractedType()
ArgumentExtractor
getExtractedType
in interface ArgumentExtractor<T>
public String getFieldName()
ArgumentExtractor
getFieldName
in interface ArgumentExtractor<T>
Copyright © 2019 ninjaframework. All rights reserved.