Package org.wicketstuff.rest.resource
Class MethodMappingInfo
java.lang.Object
org.wicketstuff.rest.resource.MethodMappingInfo
- All Implemented Interfaces:
IMimeTypeResolver
This class contains the informations of a resource mapped method (i.e. a method annotated with
MethodMapping
). These informations are used at runtime to select the most suited method
to serve the current request.- Author:
- andrea del bene
-
Constructor Summary
ConstructorDescriptionMethodMappingInfo
(MethodMapping methodMapped, Method method, Supplier<Locale> localeSupplier) Class constructor. -
Method Summary
Modifier and TypeMethodDescriptionMap<Class<? extends Annotation>,
List<MethodParameter<?>>> Gets the method parameters stored by annotation.org.wicketstuff.restutils.http.HttpMethod
Gets the HTTP method.Gets the mime input format.Gets the Supplier used to retrieve the LocaleGets the relative class method.List<MethodParameter<?>>
Gets the method parameters.Gets the mime output format.getRoles()
Gets the optional authorization roles for this method.Gets the segments of the mapped URL.int
Gets the segments count.
-
Constructor Details
-
MethodMappingInfo
public MethodMappingInfo(MethodMapping methodMapped, Method method, Supplier<Locale> localeSupplier) Class constructor.- Parameters:
methodMapped
- the method mappedmethod
- the resource's method mapped.
-
-
Method Details
-
getSegments
Gets the segments of the mapped URL.- Returns:
- the segments
-
getSegmentsCount
public int getSegmentsCount()Gets the segments count.- Returns:
- the segments count
-
getHttpMethod
public org.wicketstuff.restutils.http.HttpMethod getHttpMethod()Gets the HTTP method.- Returns:
- the HTTP method
-
getMethod
Gets the relative class method.- Returns:
- the class method
-
getRoles
Gets the optional authorization roles for this method.- Returns:
- the roles
-
getInputFormat
Gets the mime input format.- Specified by:
getInputFormat
in interfaceIMimeTypeResolver
- Returns:
- the mime input format
-
getOutputFormat
Gets the mime output format.- Specified by:
getOutputFormat
in interfaceIMimeTypeResolver
- Returns:
- the mime output format
-
getMethodParameters
Gets the method parameters.- Returns:
- the method parameters
-
getAnnotatedMethodParameters
Gets the method parameters stored by annotation.- Returns:
- the method parameters
-
getLocaleSupplier
Gets the Supplier used to retrieve the Locale- Returns:
- the Supplier used to retrieve the Locale
-