public final class JaxrsMappingUtils extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
extractDefaultValue(Param parameter)
Extracts the default value from given
MethodParam which may be annotated by the JAX-RS annotation DefaultValue. |
static Optional<esa.restlight.server.route.Mapping> |
extractMapping(Class<?> userType,
Method method) |
static Optional<esa.restlight.server.route.Mapping> |
extractMapping(Class<?> userType,
Method method,
String contextPath)
Extracts an instance of
Mapping from given Method which may be annotated by the JAX-RS
annotations such as GET, POST, Consumes, Produces and so on... |
public static String extractDefaultValue(Param parameter)
MethodParam which may be annotated by the JAX-RS annotation DefaultValue.parameter - parameterpublic static Optional<esa.restlight.server.route.Mapping> extractMapping(Class<?> userType, Method method)
public static Optional<esa.restlight.server.route.Mapping> extractMapping(Class<?> userType, Method method, String contextPath)
Mapping from given Method which may be annotated by the JAX-RS
annotations such as GET, POST, Consumes, Produces and so on...userType - type of target method's declaring class.method - target methodcontextPath - context pathMappingCopyright © 2021. All rights reserved.