Class ActionCommand
java.lang.Object
com.iohao.net.framework.core.ActionCommand
ActionCommand command object, also known as action.
When the business framework handles business processes, that is, during the processing phase,
it can obtain various desired information through the action.
- Author:
- 渔民小镇
- date:
- 2021-12-12
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainAnnotation(Class<? extends Annotation> annotationClass) Whether the action method contains the relevant annotation.Get the name of the action method.<T extends Annotation>
TgetAnnotation(Class<T> annotationClass) Get the relevant annotation for the action method.booleanCheck if this action method has a data parameter (request body).
-
Constructor Details
-
ActionCommand
public ActionCommand()
-
-
Method Details
-
hasDataParameter
public boolean hasDataParameter()Check if this action method has a data parameter (request body).- Returns:
trueif a data parameter is present
-
getActionMethodName
-
containAnnotation
Whether the action method contains the relevant annotation.- Parameters:
annotationClass- The relevant annotation- Returns:
- true if it does
- Since:
- 21.10
-
getAnnotation
Get the relevant annotation for the action method.- Type Parameters:
T- t- Parameters:
annotationClass- The relevant annotation- Returns:
- The relevant annotation
- Since:
- 21.10
-