|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectro.isdc.wro.model.group.DefaultGroupExtractor
public class DefaultGroupExtractor
Default implementation capable of extracting a single group from the request.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
DefaultGroupExtractor()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ATTR_INCLUDE_PATH
public static final String PARAM_MINIMIZE
| Constructor Detail |
|---|
public DefaultGroupExtractor()
| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||