net.trajano.twiff.internal.servlet
Class ViewServletRequestAdapter

java.lang.Object
  extended by net.trajano.twiff.adapter.RequestAdapter
      extended by net.trajano.twiff.internal.servlet.ViewServletRequestAdapter

public class ViewServletRequestAdapter
extends RequestAdapter

This adapts a request so ViewServlet and AttachmentServlet can use it in a more type safe manner.

Author:
Archimedes Trajano

Constructor Summary
ViewServletRequestAdapter(HttpServletRequest request, String tokenFieldName)
          Constructs the adapter.
 
Method Summary
 String getTokenId()
           
 boolean isTokenExist()
           
 void registerComponentImplementation(Class pageBeanClass)
          Registeres the class into the PicoContainer stored in the request.
 
Methods inherited from class net.trajano.twiff.adapter.RequestAdapter
getContainer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewServletRequestAdapter

public ViewServletRequestAdapter(HttpServletRequest request,
                                 String tokenFieldName)
Constructs the adapter.

Parameters:
request - servlet request.
tokenFieldName - the name of the field that contains the token ID.
Method Detail

isTokenExist

public final boolean isTokenExist()
Returns:
Returns the tokenExist.

getTokenId

public final String getTokenId()
Returns:
Returns the tokenId.

registerComponentImplementation

public void registerComponentImplementation(Class pageBeanClass)
                                     throws ServletException
Registeres the class into the PicoContainer stored in the request.

Parameters:
pageBeanClass - the page bean class.
Throws:
ServletException


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