|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.custom.stylesheet.TextResourceFilter
public class TextResourceFilter
filters a stylesheet
This will replace any el expressing of the original stylesheet with its evaluated string form
Nested Class Summary | |
---|---|
static class |
TextResourceFilter.ResourceInfo
|
Constructor Summary | |
---|---|
protected |
TextResourceFilter()
|
Method Summary | |
---|---|
protected static TextResourceFilter |
create()
|
TextResourceFilter.ResourceInfo |
getFilteredResource(java.lang.String path)
gets the filtered content of the resource pointing to with path
This will not filter the resource if its not already done before. |
static TextResourceFilter |
getInstance(javax.faces.context.FacesContext context)
get the application stylesheet filter |
static TextResourceFilter |
getInstance(javax.servlet.ServletContext context)
get the application stylesheet filter |
TextResourceFilter.ResourceInfo |
getOrCreateFilteredResource(javax.faces.context.FacesContext context,
java.lang.String path)
filteres the resource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected TextResourceFilter()
Method Detail |
---|
protected static TextResourceFilter create()
public static TextResourceFilter getInstance(javax.servlet.ServletContext context)
public static TextResourceFilter getInstance(javax.faces.context.FacesContext context)
public TextResourceFilter.ResourceInfo getFilteredResource(java.lang.String path)
path
This will not filter the resource if its not already done before.
public TextResourceFilter.ResourceInfo getOrCreateFilteredResource(javax.faces.context.FacesContext context, java.lang.String path) throws java.io.IOException
filteres the resource
Notice: This method is not synchronized for performance reasons (the map is) the worst case is that we filter a resource twice the first time wich is not a problem
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |