public class MethodActionExecutor extends AbstractActionExecutor
If the method has an additional last parameter of type
RemoteClientInfo
, the details
of the control point client will be provided to the action method. You can use this
to get the client's address and request headers, and to provide extra response headers.
Modifier and Type | Field and Description |
---|---|
protected Method |
method |
outputArgumentAccessors
Constructor and Description |
---|
MethodActionExecutor(Map<ActionArgument<LocalService>,StateVariableAccessor> outputArgumentAccessors,
Method method) |
MethodActionExecutor(Method method) |
Modifier and Type | Method and Description |
---|---|
protected Object[] |
createInputArgumentValues(ActionInvocation<LocalService> actionInvocation,
Method method) |
protected void |
execute(ActionInvocation<LocalService> actionInvocation,
Object serviceImpl) |
Method |
getMethod() |
protected boolean |
isUseOutputArgumentAccessors(ActionInvocation<LocalService> actionInvocation) |
execute, getOutputArgumentAccessors, readOutputArgumentValues, setOutputArgumentValue
protected Method method
public MethodActionExecutor(Method method)
public MethodActionExecutor(Map<ActionArgument<LocalService>,StateVariableAccessor> outputArgumentAccessors, Method method)
public Method getMethod()
protected void execute(ActionInvocation<LocalService> actionInvocation, Object serviceImpl) throws Exception
execute
in class AbstractActionExecutor
Exception
protected boolean isUseOutputArgumentAccessors(ActionInvocation<LocalService> actionInvocation)
protected Object[] createInputArgumentValues(ActionInvocation<LocalService> actionInvocation, Method method) throws ActionException
ActionException
Copyright © 2016 4th Line GmbH, Switzerland. All rights reserved.