agonism.dovetail.site
Class Page

java.lang.Object
  |
  +--agonism.dovetail.site.DovetailInstance
        |
        +--agonism.dovetail.site.Page
All Implemented Interfaces:
ILocation

public class Page
extends DovetailInstance
implements ILocation


Fields inherited from class agonism.dovetail.site.DovetailInstance
m_context
 
Constructor Summary
protected Page(IRequestContext context, QPage page)
           
 
Method Summary
 void addOwnedPage(Page page)
          By calling this method, page will be freed when this page is freed.
protected  void finalize()
           
 void free()
           
 java.sql.Connection getConnection()
           
 Form getForm(java.lang.String name)
           
 Link getLink(java.lang.String name)
           
 java.lang.String getName()
          Get the name of the location.
 java.lang.String getPageURL()
           
 Parameter getParameter(java.lang.String name)
           
 ILocation getParent()
          Get the parent location of the current location.
 Query getQuery(java.lang.String name)
           
 boolean hasBeenRedirected()
           
 void process()
          Processes the page in response to a POST or GET.
 java.lang.String toString()
           
 
Methods inherited from class agonism.dovetail.site.DovetailInstance
findObject, findPageName, getContext, getFactory, getName, getPage, getPeer, getSite
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Page

protected Page(IRequestContext context,
               QPage page)
Method Detail

getName

public java.lang.String getName()
Description copied from interface: ILocation
Get the name of the location.
Specified by:
getName in interface ILocation

getConnection

public java.sql.Connection getConnection()

free

public void free()

addOwnedPage

public void addOwnedPage(Page page)
By calling this method, page will be freed when this page is freed.

getParent

public ILocation getParent()
Description copied from interface: ILocation
Get the parent location of the current location.
Specified by:
getParent in interface ILocation

getQuery

public Query getQuery(java.lang.String name)

getForm

public Form getForm(java.lang.String name)

getParameter

public Parameter getParameter(java.lang.String name)

getLink

public Link getLink(java.lang.String name)

getPageURL

public java.lang.String getPageURL()

process

public void process()
Processes the page in response to a POST or GET. The Form object named by the Constants.FORM_NAME_INPUT_NAME request parameter is responsible for carrying out the bulk of the processing. This method should be called at the beginning of each page which contains a form.

If no form has been posted, this method is a no-op.


hasBeenRedirected

public boolean hasBeenRedirected()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object