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 TypeMethodDescriptionint
getCompatibilityScore
(Request request) org.wicketstuff.restutils.http.HttpMethod
mapRequest
(Request request) Methods inherited from class org.apache.wicket.core.request.mapper.ResourceMapper
addCachingDecoration, buildUrl, getCachingStrategy, mapHandler, pageMustHaveBeenCreatedBookmarkable, parseRequest, removeCachingDecoration
Methods 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, urlStartsWithMountedSegments
Methods inherited from class org.apache.wicket.core.request.mapper.AbstractComponentMapper
cleanClassName, encodePageComponentInfo, getContext, getPageClass, getPageComponentInfo, removeMetaParameter
Methods 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:
getCompatibilityScore
in interfaceIRequestMapper
- Overrides:
getCompatibilityScore
in classResourceMapper
-
mapRequest
- Specified by:
mapRequest
in interfaceIRequestMapper
- Overrides:
mapRequest
in classResourceMapper
-
getHttpMethod
public org.wicketstuff.restutils.http.HttpMethod getHttpMethod()
-