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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
constructApiInvocation
(ChenileExchange exchange) populates the apiInvocation for use by the invokeApi() call aboveprivate static Object
void
execute
(ChenileExchange chenileExchange) private static MultipartFile
extractMultipart
(String name, ChenileExchange exchange) private void
invokeApi
(ChenileExchange exchange) private void
private ErrorNumException
-
Field Details
-
LOG
private static final org.slf4j.Logger LOG
-
-
Constructor Details
-
ServiceInvoker
public ServiceInvoker()
-
-
Method Details
-
execute
- Specified by:
execute
in interfaceCommand<ChenileExchange>
-
logError
-
surroundExceptionIfRequired
-
invokeApi
private void invokeApi(ChenileExchange exchange) throws IllegalAccessException, InvocationTargetException -
constructApiInvocation
populates the apiInvocation for use by the invokeApi() call above- Parameters:
exchange
- - the chenile exchange that is passed around
-
convert
-
extractMultipart
-