|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcorelib.services.web.webapplications.WebPage
public class WebPage
The most important class of the framework: this class represents the concept of web page.
| Field Summary | |
|---|---|
protected WebApplication |
application
|
protected boolean |
bIsValid
|
protected java.io.PrintWriter |
out
|
protected javax.servlet.http.HttpServletRequest |
request
|
protected javax.servlet.http.HttpServletResponse |
response
|
protected javax.servlet.http.HttpSession |
session
|
protected WebTraceLogger |
traceLogger
|
| Constructor Summary | |
|---|---|
WebPage()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getAliasForNamespace(java.lang.String namespace)
Returns the alias (the short name) associated to the considered namespace (ie java package in Ellipse Framework). |
WebApplication |
getApplication()
Return the Web Application object. |
WebComponentEventDispatcher |
getEventDispatcher()
Returns the EventDispatcher instance used by this web page. |
java.util.Locale |
getLocale()
|
java.lang.String |
getNextAutoIdentifier()
Generates a new unique identifier: each web component has an unique identifier produces by this method. |
java.io.PrintWriter |
getOut()
Returns the PrintWriter instance to use for inject text into the HTML page under generation. |
javax.servlet.http.HttpServletRequest |
getRequest()
Returns the request object associated to the actual HTML page generation. |
java.lang.String |
getRequestedURI()
|
javax.servlet.http.HttpServletResponse |
getResponse()
Returns the response object associated to the actual HTML page generation. |
javax.servlet.http.HttpSession |
getSession()
Returns the HTTP session associated by this web page. |
WebTraceLogger |
getTraceLogger()
Returns the web trace logger instance associated to the actual HTML page generation. |
java.util.List<Validator> |
getValidators()
Returns all validators present in this web page. |
WebComponent |
getWebComponent(java.lang.String identifier)
Returns the web component identified by the specified identifier. |
java.util.List<WebComponent> |
getWebComponents(java.lang.Class<?> metaClass)
Returns all web components (for this web page) that are compatible with the specified class (passed as parameter). |
boolean |
isValid()
|
void |
page_init(WebPageEvent webPageEvent)
This method is invoked to permit initialization the web page. |
void |
page_load(WebPageEvent webPageEvent)
This method when the page is fully load into the web server. |
void |
page_postRender(WebPageEvent webPageEvent)
This method is invoked after the HTML rendering process. |
void |
page_preRender(WebPageEvent webPageEvent)
This method is invoked before the HTML rendering process. |
void |
page_preRepeaterDuplications(WebPageEvent webPageEvent)
This method is invoked before repeated duplication process. |
void |
page_render(WebPageEvent webPageEvent)
This method starts the HTML rendering process. |
void |
redirect(java.lang.String newPage)
Sends a temporary redirect response to the client using the specified redirect location URL. |
void |
setLocale(java.util.Locale locale)
|
void |
setRequestedURI(java.lang.String requestedURI)
|
void |
setTraceLogger(WebTraceLogger traceLogger)
Inject into this web page, the WebTraceLogger instance to used for store produced web page logs. |
void |
setValid(boolean state)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected WebApplication application
protected javax.servlet.http.HttpSession session
protected javax.servlet.http.HttpServletRequest request
protected javax.servlet.http.HttpServletResponse response
protected java.io.PrintWriter out
protected WebTraceLogger traceLogger
protected boolean bIsValid
| Constructor Detail |
|---|
public WebPage()
| Method Detail |
|---|
public javax.servlet.http.HttpSession getSession()
public WebApplication getApplication()
public javax.servlet.http.HttpServletRequest getRequest()
public javax.servlet.http.HttpServletResponse getResponse()
public java.io.PrintWriter getOut()
PrintWriter instance to use for inject text into the HTML page under generation.
PrintWriter instance.public WebTraceLogger getTraceLogger()
WebTraceLogger instance. After the generation,
you can retrieve and display all logs with the WebTrace Ellipse service.
setTraceLogger( WebTraceLogger ),
WebTraceManagerpublic void setTraceLogger(WebTraceLogger traceLogger)
WebTraceLogger instance to used for store produced web page logs.
traceLogger - The new WebTraceLogger instance.getTraceLogger(),
WebTraceManagerpublic java.lang.String getRequestedURI()
public void setRequestedURI(java.lang.String requestedURI)
public boolean isValid()
public void setValid(boolean state)
public java.util.Locale getLocale()
public void setLocale(java.util.Locale locale)
public WebComponent getWebComponent(java.lang.String identifier)
identifier - The identifier of the component to search.
public java.util.List<WebComponent> getWebComponents(java.lang.Class<?> metaClass)
metaClass - Identify the base type of searched web components.
public java.util.List<Validator> getValidators()
public WebComponentEventDispatcher getEventDispatcher()
public void redirect(java.lang.String newPage)
newPage - The web page URL used for the redirection.public java.lang.String getAliasForNamespace(java.lang.String namespace)
namespace - The considered namespace (ie java package in Ellipse Framework).
public java.lang.String getNextAutoIdentifier()
public void page_preRepeaterDuplications(WebPageEvent webPageEvent)
webPageEvent - The current web page event.public void page_init(WebPageEvent webPageEvent)
webPageEvent - The current web page event.public void page_load(WebPageEvent webPageEvent)
webPageEvent - The current web page event.public void page_preRender(WebPageEvent webPageEvent)
webPageEvent - The current web page event.public void page_render(WebPageEvent webPageEvent)
webPageEvent - The current web page event.public void page_postRender(WebPageEvent webPageEvent)
webPageEvent - The current web page event.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||