Class RestResourceMapper
java.lang.Object
org.apache.wicket.request.mapper.AbstractMapper
org.apache.wicket.core.request.mapper.AbstractComponentMapper
org.apache.wicket.core.request.mapper.AbstractBookmarkableMapper
org.apache.wicket.core.request.mapper.ResourceMapper
org.wicketstuff.rest.lambda.request.mapper.RestResourceMapper
- All Implemented Interfaces:
IRequestMapper
Specialization of
ResourceMapper to mount REST resources.- Author:
- andrea
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.wicket.core.request.mapper.AbstractBookmarkableMapper
AbstractBookmarkableMapper.MountPathSegment, AbstractBookmarkableMapper.UrlInfo -
Field Summary
Fields inherited from class org.apache.wicket.core.request.mapper.AbstractBookmarkableMapper
pageParametersEncoder, pathSegments -
Constructor Summary
ConstructorsConstructorDescriptionRestResourceMapper(String path, ResourceReference resourceReference, org.wicketstuff.restutils.http.HttpMethod httpMethod) Constructor for the mapper -
Method Summary
Modifier and TypeMethodDescriptionintgetCompatibilityScore(Request request) org.wicketstuff.restutils.http.HttpMethodmapRequest(Request request) Methods inherited from class org.apache.wicket.core.request.mapper.ResourceMapper
addCachingDecoration, buildUrl, getCachingStrategy, mapHandler, pageMustHaveBeenCreatedBookmarkable, parseRequest, removeCachingDecorationMethods inherited from class org.apache.wicket.core.request.mapper.AbstractBookmarkableMapper
checkPageClass, checkPageInstance, extractPageParameters, getMatchedSegmentSizes, getPageInfo, getPathSegments, isCaseSensitiveMatch, isFixedSegment, newPageParameters, processBookmarkable, processHybrid, processListener, resolveUserLocale, segmentsMatch, setCaseSensitiveMatch, setPlaceholders, urlStartsWithMountedSegmentsMethods inherited from class org.apache.wicket.core.request.mapper.AbstractComponentMapper
cleanClassName, encodePageComponentInfo, getContext, getPageClass, getPageComponentInfo, removeMetaParameterMethods inherited from class org.apache.wicket.request.mapper.AbstractMapper
encodePageParameters, extractPageParameters, getMountSegments, getOptionalPlaceholder, getPlaceholder, getPlaceholder, resolveLocale, safeSegmentGetter, urlStartsWith
-
Constructor Details
-
RestResourceMapper
public RestResourceMapper(String path, ResourceReference resourceReference, org.wicketstuff.restutils.http.HttpMethod httpMethod) Constructor for the mapper- Parameters:
path- mount path for the resourceresourceReference- resource reference that should be linked to the mount pathhttpMethod- the HTTP method used by the resource
-
-
Method Details
-
getCompatibilityScore
- Specified by:
getCompatibilityScorein interfaceIRequestMapper- Overrides:
getCompatibilityScorein classResourceMapper
-
mapRequest
- Specified by:
mapRequestin interfaceIRequestMapper- Overrides:
mapRequestin classResourceMapper
-
getHttpMethod
public org.wicketstuff.restutils.http.HttpMethod getHttpMethod()
-