public class ResourceHelper extends Object
| Constructor and Description |
|---|
ResourceHelper() |
| Modifier and Type | Method and Description |
|---|---|
static Resource |
applyViewTransformation(javax.servlet.http.HttpServletRequest request,
SecurityContext securityContext,
Resource finalResource,
Value<String> propertyView)
Apply view transformation on final resource, if any
|
static Resource |
optimizeNestedResourceChain(List<Resource> resourceChain,
PropertyKey defaultIdProperty)
Optimize the resource chain by trying to combine two resources to a new one
|
static List<Resource> |
parsePath(SecurityContext securityContext,
javax.servlet.http.HttpServletRequest request,
Map<Pattern,Class<? extends Resource>> resourceMap,
Value<String> propertyView,
PropertyKey defaultIdProperty)
Parse the request path and match with possible resource patterns
|
public static List<Resource> parsePath(SecurityContext securityContext, javax.servlet.http.HttpServletRequest request, Map<Pattern,Class<? extends Resource>> resourceMap, Value<String> propertyView, PropertyKey defaultIdProperty) throws FrameworkException
securityContext - request - resourceMap - propertyView - defaultIdProperty - FrameworkExceptionpublic static Resource optimizeNestedResourceChain(List<Resource> resourceChain, PropertyKey defaultIdProperty) throws FrameworkException
constraintChain - defaultIdProperty - FrameworkExceptionpublic static Resource applyViewTransformation(javax.servlet.http.HttpServletRequest request, SecurityContext securityContext, Resource finalResource, Value<String> propertyView) throws FrameworkException
request - securityContext - finalResource - propertyView - FrameworkExceptionCopyright © 2014. All rights reserved.