net.trajano.twiff.internal.servlet
Class ActionServletRequestAdapter

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

public class ActionServletRequestAdapter
extends RequestAdapter

This adapts a request so ActionServlet can use it in a more type safe manner.

Author:
Archimedes Trajano

Constructor Summary
ActionServletRequestAdapter(HttpServletRequest request, String tokenFieldName)
          Constructs the adapter and initializes all its data.
 
Method Summary
 Map<String,Object[]> getPostData()
           
 String getSessionId()
           
 String getTokenId()
           
 
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

ActionServletRequestAdapter

public ActionServletRequestAdapter(HttpServletRequest request,
                                   String tokenFieldName)
                            throws org.apache.commons.fileupload.FileUploadException
Constructs the adapter and initializes all its data.

Parameters:
request - the servlet request.
tokenFieldName - the name of the field that contains the token ID.
Throws:
org.apache.commons.fileupload.FileUploadException
MissingSessionException - thrown when there is no session data in the request.
MissingTokenException - thrown when there is no token id in the request.
Method Detail

getPostData

public final Map<String,Object[]> getPostData()
Returns:
Returns the postData.

getSessionId

public final String getSessionId()
Returns:
Returns the sessionId.

getTokenId

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


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