public class DefaultGroupExtractor extends Object implements GroupExtractor
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTR_INCLUDE_PATH
The name of the attribute where the servlet path is stored when requestDispatcher.include is called.
|
static String |
PARAM_MINIMIZE
The name of the parameter used to decide if the group must be minimized.
|
| Constructor and Description |
|---|
DefaultGroupExtractor() |
| Modifier and Type | Method and Description |
|---|---|
String |
encodeGroupUrl(String groupName,
ResourceType resourceType,
boolean minimize)
This method is a opposite of the other 3 methods.
|
String |
getGroupName(javax.servlet.http.HttpServletRequest request)
Retrieves a set of group names from supplied uri.
|
ResourceType |
getResourceType(javax.servlet.http.HttpServletRequest request)
Extracts the resource type, by parsing the uri & finds the extension.
|
boolean |
isMinimized(javax.servlet.http.HttpServletRequest request)
The minimization is can be switched off only in debug mode.
|
public static final String ATTR_INCLUDE_PATH
public static final String PARAM_MINIMIZE
public String getGroupName(javax.servlet.http.HttpServletRequest request)
getGroupName in interface GroupExtractorrequest - to check.public ResourceType getResourceType(javax.servlet.http.HttpServletRequest request)
Valid examples of uri are: /context/somePath/test.js or /context/somePath/test.css
getResourceType in interface GroupExtractorrequest - to check.public String encodeGroupUrl(String groupName, ResourceType resourceType, boolean minimize)
encodeGroupUrl in interface GroupExtractorpublic boolean isMinimized(javax.servlet.http.HttpServletRequest request)
isMinimized in interface GroupExtractorrequest - HttpServletRequest object.PARAM_MINIMIZE with value false,
otherwise returns true.Copyright © 2008-2013. All Rights Reserved.