|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlumis.portal.el.PortalFunctionMapper
lumis.portal.page.PageWebResourceFunctionMapper
public class PageWebResourceFunctionMapper
FunctionMapper
that resolves the functions in PageWebResource
context.
Field Summary | |
---|---|
protected static String |
BEFORE_WRITE_FUNCTION_NAME
Define the before write function name. |
Constructor Summary | |
---|---|
PageWebResourceFunctionMapper(PageWebResource pageWebResource,
HttpServletRequest request)
Creates a new instance with the given parameters. |
Method Summary | |
---|---|
void |
afterEvaluation()
Performs any needed operations after the evaluation happens. |
void |
beforeEvaluation()
Performs any initialization needed before the evaluation is performed. |
Method |
resolveFunction(String prefix,
String localName)
|
static String |
resolveURL(String url)
Resolves the given URL. The URL will only be resolved against the applied themes if the requested page was previously set within beforeEvaluation() . |
static String |
writeIfNotYetWritten(String fragment,
String key)
Returns the given fragment if the given key was not used yet. |
Methods inherited from class lumis.portal.el.PortalFunctionMapper |
---|
localize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String BEFORE_WRITE_FUNCTION_NAME
Constructor Detail |
---|
public PageWebResourceFunctionMapper(PageWebResource pageWebResource, HttpServletRequest request)
pageWebResource
- the page web resource.Method Detail |
---|
public void beforeEvaluation()
PortalFunctionMapper
beforeEvaluation
in class PortalFunctionMapper
public void afterEvaluation()
PortalFunctionMapper
finally
.
afterEvaluation
in class PortalFunctionMapper
public Method resolveFunction(String prefix, String localName)
resolveFunction
in interface FunctionMapper
resolveFunction
in class PortalFunctionMapper
public static String resolveURL(String url) throws PortalException
beforeEvaluation()
.
url
- the URL to be resolved.
PortalException
public static String writeIfNotYetWritten(String fragment, String key) throws IOException
null
.
fragment
- the fragment to be rendered in before writer.key
- the unique key to use.
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |