net.trajano.twiff.internal.servlet
Class AttachmentActionPageLookup

java.lang.Object
  extended by net.trajano.twiff.internal.servlet.ViewPageLookup
      extended by net.trajano.twiff.internal.servlet.AttachmentActionPageLookup
All Implemented Interfaces:
ActionPageLookup, AttachmentPageLookup, PageLookup

public class AttachmentActionPageLookup
extends ViewPageLookup
implements ActionPageLookup, AttachmentPageLookup

Provides the logic to lookup data for action and attachements.

Author:
Archimedes Trajano

Constructor Summary
AttachmentActionPageLookup(ViewServletConfiguration configuration)
          Constructs the lookup.
 
Method Summary
 Method getActionMethod(HttpServletRequest request)
          This extracts the action method from the URL requested in the servlet request.
 String getActionMethodName(HttpServletRequest request)
          This extracts the action method 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.
 String getPropertyName(HttpServletRequest request)
          This extracts the property name from the URL requested in the servlet request.
 
Methods inherited from class net.trajano.twiff.internal.servlet.ViewPageLookup
getPageBeanClass, getPageBeanClassName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.trajano.twiff.PageLookup
getPageBeanClass, getPageBeanClassName
 
Methods inherited from interface net.trajano.twiff.PageLookup
getPageBeanClass, getPageBeanClassName
 

Constructor Detail

AttachmentActionPageLookup

public AttachmentActionPageLookup(ViewServletConfiguration configuration)
Constructs the lookup.

Parameters:
configuration - configuration.
Method Detail

getActionMethod

public Method getActionMethod(HttpServletRequest request)
                       throws NoSuchMethodException,
                              SecurityException,
                              ClassNotFoundException
Description copied from interface: ActionPageLookup
This extracts the action method from the URL requested in the servlet request.

Specified by:
getActionMethod in interface ActionPageLookup
Parameters:
request - the servlet request.
Returns:
the action method name.
Throws:
ClassNotFoundException
NoSuchMethodException - the page bean class method does not exist.
SecurityException - the page bean class method is not public.
See Also:
ActionPageLookup.getActionMethod(javax.servlet.http.HttpServletRequest)

getActionMethodName

public String getActionMethodName(HttpServletRequest request)
Description copied from interface: ActionPageLookup
This extracts the action method name from the URL requested in the servlet request.

Specified by:
getActionMethodName in interface ActionPageLookup
Parameters:
request - the servlet request.
Returns:
the action method name.
See Also:
ActionPageLookup.getActionMethodName(javax.servlet.http.HttpServletRequest)

getPageName

public String getPageName(HttpServletRequest request)
Description copied from interface: PageLookup
This extracts the page name from the URL requested in the servlet request.

Specified by:
getPageName in interface PageLookup
Overrides:
getPageName in class ViewPageLookup
Parameters:
request - the servlet request.
Returns:
the page name.
See Also:
ViewPageLookup.getPageName(javax.servlet.http.HttpServletRequest)

getPropertyName

public String getPropertyName(HttpServletRequest request)
Description copied from interface: AttachmentPageLookup
This extracts the property name from the URL requested in the servlet request.

Specified by:
getPropertyName in interface AttachmentPageLookup
Parameters:
request - the servlet request.
Returns:
the property name.
See Also:
AttachmentPageLookup.getPropertyName(javax.servlet.http.HttpServletRequest)


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