net.trajano.twiff
Interface PageLookup

All Known Subinterfaces:
ActionPageLookup, AttachmentPageLookup
All Known Implementing Classes:
AttachmentActionPageLookup, ViewPageLookup

public interface PageLookup

This interface gets the page data that is used for all the servlets.

Author:
Archimedes Trajano

Method Summary
 Class<? extends Serializable> getPageBeanClass(HttpServletRequest request)
          This extracts the page bean class from the URL requested in the servlet request.
 String getPageBeanClassName(HttpServletRequest request)
          This extracts the page bean class name from the URL requested in the servlet request.
 String getPageName(HttpServletRequest request)
          This extracts the page name from the URL requested in the servlet request.
 

Method Detail

getPageName

String getPageName(HttpServletRequest request)
This extracts the page name from the URL requested in the servlet request.

Parameters:
request - the servlet request.
Returns:
the page name.

getPageBeanClassName

String getPageBeanClassName(HttpServletRequest request)
This extracts the page bean class name from the URL requested in the servlet request.

Parameters:
request - the servlet request.
Returns:
the page bean class name.

getPageBeanClass

Class<? extends Serializable> getPageBeanClass(HttpServletRequest request)
                                               throws ClassNotFoundException
This extracts the page bean class from the URL requested in the servlet request. The returned class must implement Serializable to ensure that the bean can be persisted if necessary.

Parameters:
request - the servlet request.
Returns:
the page bean class.
Throws:
ClassNotFoundException - class is not found.


Copyright © 2004-2005 trajano.net. All Rights Reserved.