org.moremotion.page
Class Page

java.lang.Object
  extended by org.moremotion.page.Page
Direct Known Subclasses:
CurrentPage

public class Page
extends java.lang.Object

Version:
$Id: PageName.java 393 2009-06-29 11:28:40Z erkan $

Constructor Summary
Page(MoreMotionRequest request)
           
Page(MoreMotionRequest request, java.lang.String pageName)
           
 
Method Summary
 java.lang.String getCommandName()
           
 java.lang.String getContextRelativeURL()
          Returns the Part of the current URL relative to the Context URL.
 java.lang.String getEncoding()
          Returns the encoding of the current page
 java.lang.String getHostRelativeURL()
          Returns the Part of the current URL relative to the Context URL.
 java.lang.String getNextPage()
          Returns the names of the next pages if available
 java.lang.String getPageId()
           
 PageInfo getPageInfo()
          Returns the PageInfo object attached to the current page
 java.lang.String getPageName()
          Returns the name of the current page
 java.lang.String getPageName(boolean withVariant)
          Returns the name of the current page.
static PageTableEntry getPageTableEntry(java.lang.String id)
           
 java.lang.String getVariant()
          Returns the name of the variant if current page is a variant page, null otherwise.
static void setPageTable(java.util.HashMap table)
           
 java.lang.String toString()
           
static java.lang.String translate(java.lang.String pageName)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Page

public Page(MoreMotionRequest request)

Page

public Page(MoreMotionRequest request,
            java.lang.String pageName)
     throws PageGenerationException
Throws:
PageGenerationException
Method Detail

toString

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

translate

public static java.lang.String translate(java.lang.String pageName)

getPageName

public java.lang.String getPageName()
Returns the name of the current page


getPageId

public java.lang.String getPageId()

getNextPage

public java.lang.String getNextPage()
Returns the names of the next pages if available


getPageName

public java.lang.String getPageName(boolean withVariant)
                             throws PageGenerationException
Returns the name of the current page.

Parameters:
withVariant - True if the page name should include the variant
Throws:
PageGenerationException

getEncoding

public java.lang.String getEncoding()
                             throws ConfigParameterException
Returns the encoding of the current page

Throws:
ConfigParameterException

getVariant

public java.lang.String getVariant()
Returns the name of the variant if current page is a variant page, null otherwise.


getContextRelativeURL

public java.lang.String getContextRelativeURL()
Returns the Part of the current URL relative to the Context URL. i.e. if the URL is http://www.xyz.com/contextA/showlist.doms?id=12 then
showlist.doms?id=12 is returned


getHostRelativeURL

public java.lang.String getHostRelativeURL()
Returns the Part of the current URL relative to the Context URL. i.e. if the URL is http://www.xyz.com/contextA/showlist.doms?id=12 then
contextA/showlist.doms?id=12 is returned


getPageInfo

public PageInfo getPageInfo()
                     throws PageGenerationException
Returns the PageInfo object attached to the current page

Throws:
PageGenerationException

getCommandName

public java.lang.String getCommandName()

setPageTable

public static void setPageTable(java.util.HashMap table)

getPageTableEntry

public static PageTableEntry getPageTableEntry(java.lang.String id)


Copyright © 2002-2011 MOR YAZILIM. All Rights Reserved.