net.trajano.twiff.internal.servlet
Class ActionServletRequestAdapter
java.lang.Object
net.trajano.twiff.adapter.RequestAdapter
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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.