|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectpl.aislib.fm.PageInfo
This class describes servlet page attributes. Those attributes are: key assigned to page identyfying particular page, Java class implementing page behaviour, HTML template name used by this page, HTML template container (frame of this HTML page), HTML template slot inside of container, content type and content disposition for browser, triggers defined inside of this page.
| Tomasz Pik, AIS.PL |
| Michal Jastak, AIS.PL |
| Constructor Summary | |
PageInfo(java.lang.String actionKey)
Initializes PageInfo with actionKey. |
|
| Method Summary | |
void |
addMessageInclude(java.lang.String name,
int messageCode)
Adds message to include in output of the page. |
void |
addTemplateInclude(java.lang.String name,
java.lang.String templateName)
Adds template to include in output of the page. |
boolean |
equals(java.lang.Object object)
Checks 'equality' of two PageInfo objects. |
java.lang.String |
getActionKey()
Gets action key for the page. |
java.lang.Class |
getClazz()
Returns Class for the page. |
java.lang.String |
getContainerSlot()
Gets name of the slot in the template container for the page. |
java.lang.String |
getContainerTemplateName()
Gets name of the template container for the page. |
java.util.Map |
getMessageIncludes()
Gets Map of message codes and keys. |
protected boolean |
getSessionExpiration()
Returns session expiration behaviour. |
java.util.Map |
getTemplateIncludes()
Gets Map of template names and keys. |
java.lang.String |
getTemplateName()
Gets name of template defined for page represented by this PageInfo. |
int |
hashCode()
|
void |
setContainer(java.lang.String containerTemplateName,
java.lang.String containerSlot)
Sets template container for the page. |
protected void |
setProperties(java.util.Map properties)
Sets properties of the page. |
protected void |
setSessionExpiration(boolean _sessionExpiration)
Sets session expiration beahviour. |
protected void |
setTemplateName(java.lang.String templateName)
Method called by Workflow class when reading XML configuration. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PageInfo(java.lang.String actionKey)
actionKey - action key that identifies this page.| Method Detail |
public void addTemplateInclude(java.lang.String name,
java.lang.String templateName)
name - key in master template.templateName - name of template to include.
public void addMessageInclude(java.lang.String name,
int messageCode)
name - key in master template.messageCode - identification code for a message.public java.util.Map getTemplateIncludes()
Map of template names and keys.
Returns Map of template names and keys for inclusion
into response from the page.
Map of template names and keys.public java.util.Map getMessageIncludes()
Map of message codes and keys.
Returns Map of message codes and keys for inclusion
into response from the page.
Map of message codes and keys.public java.lang.String getTemplateName()
PageInfo.
public java.lang.String getContainerTemplateName()
public java.lang.String getContainerSlot()
PageInfo
represents page defined as a part of template container.
public void setContainer(java.lang.String containerTemplateName,
java.lang.String containerSlot)
containerTemplateName - name of the container.containerSlot - slot in template defined in the container.protected void setProperties(java.util.Map properties)
properties - properties of the page.public java.lang.String getActionKey()
public java.lang.Class getClazz()
Class for the page.
Class for the page.public boolean equals(java.lang.Object object)
actionKeys.
You may use this method with following argument types:
PageInfo object to compare with this oneactionKey for PageInfo object to compare
object - PageInfo object or actionKey String to check.
Object.equals(java.lang.Object)public int hashCode()
Object.hashCode()protected void setTemplateName(java.lang.String templateName)
templateName - name of main template for the page.protected void setSessionExpiration(boolean _sessionExpiration)
beahviour.
Method called by Workflow class when reading XML configuration.
- Parameters:
_sessionExpiration - session expiration behaviour.
protected boolean getSessionExpiration()
true if page should be checked
agains expiration of session, false otherwise.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||