Package org.chenile.core.interceptors
Class ServiceInvoker
java.lang.Object
org.chenile.core.interceptors.ServiceInvoker
- All Implemented Interfaces:
- Command<ChenileExchange>
This command invokes a service gathering inputs from 
ChenileExchange.
 Inserted at the end of the interception chain.- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate voidconstructApiInvocation(ChenileExchange exchange) populates the apiInvocation for use by the invokeApi() call aboveprivate static Objectvoidexecute(ChenileExchange chenileExchange) private static MultipartFileextractMultipart(String name, ChenileExchange exchange) private voidinvokeApi(ChenileExchange exchange) private voidprivate ErrorNumException
- 
Field Details- 
LOGprivate static final org.slf4j.Logger LOG
 
- 
- 
Constructor Details- 
ServiceInvokerpublic ServiceInvoker()
 
- 
- 
Method Details- 
execute- Specified by:
- executein interface- Command<ChenileExchange>
 
- 
logError
- 
surroundExceptionIfRequired
- 
invokeApiprivate void invokeApi(ChenileExchange exchange) throws IllegalAccessException, InvocationTargetException 
- 
constructApiInvocationpopulates the apiInvocation for use by the invokeApi() call above- Parameters:
- exchange- - the chenile exchange that is passed around
 
- 
convert
- 
extractMultipart
 
-