|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjodd.lagarto.adapter.htmlstapler.BundleAction
public class BundleAction
Bundle action used during page parsing and resources collection.
| Field Summary | |
|---|---|
protected java.lang.String |
actionPath
|
protected java.lang.String |
bundleId
|
protected char[] |
bundleIdMark
|
protected java.lang.String |
bundleName
|
protected HtmlStaplerBundlesManager |
bundlesManager
|
protected java.lang.String |
contextPath
|
protected boolean |
firstScriptTag
|
protected boolean |
newAction
|
protected java.util.List<java.lang.String> |
sources
|
protected HtmlStaplerBundlesManager.Strategy |
strategy
|
| Constructor Summary | |
|---|---|
BundleAction(HtmlStaplerBundlesManager bundlesManager,
javax.servlet.http.HttpServletRequest request,
java.lang.String bundleName)
Creates new bundle action. |
|
| Method Summary | |
|---|---|
boolean |
acceptLink(java.lang.String src)
Returns true if resource link should be collected into the bundle. |
void |
end()
Called on end of parsing. |
java.lang.String |
processLink(java.lang.String src)
Process links. |
char[] |
replaceBundleId(char[] content)
Replaces bundle marker with calculated bundle id. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final HtmlStaplerBundlesManager bundlesManager
protected final java.lang.String bundleName
protected final boolean newAction
protected final java.lang.String actionPath
protected final java.lang.String contextPath
protected final HtmlStaplerBundlesManager.Strategy strategy
protected java.lang.String bundleId
protected char[] bundleIdMark
protected java.util.List<java.lang.String> sources
protected boolean firstScriptTag
| Constructor Detail |
|---|
public BundleAction(HtmlStaplerBundlesManager bundlesManager,
javax.servlet.http.HttpServletRequest request,
java.lang.String bundleName)
| Method Detail |
|---|
public boolean acceptLink(java.lang.String src)
true if resource link should be collected into the bundle. Returns
false for resources that has to ignored or when no link existed (null).
By default, ignores resource links that contains "jodd.unstaple" (usually set as dummy parameter name).
public java.lang.String processLink(java.lang.String src)
null indicating
that collection is going on and the original link should be removed.
public void end()
public char[] replaceBundleId(char[] content)
RESOURCE_ONLY strategy.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||