com.bea.struts.adapter.action
Class ScopedMultipartRequestHandler

java.lang.Object
  extended by org.apache.struts.upload.CommonsMultipartRequestHandler
      extended by com.bea.struts.adapter.action.ScopedMultipartRequestHandler
All Implemented Interfaces
MultipartRequestHandler

public class ScopedMultipartRequestHandler
extends CommonsMultipartRequestHandler

Custom Struts multipart handler class. This implementation is WLPortal scoped request aware. It strips off Portlet ID prefix information in request parameter names if called as part of a Portlet wrapping a Struts flow and using multipart encoding.


Field Summary
 
Fields inherited from class org.apache.struts.upload.CommonsMultipartRequestHandler
DEFAULT_SIZE_MAX, DEFAULT_SIZE_THRESHOLD, log
 
Fields inherited from interface org.apache.struts.upload.MultipartRequestHandler
ATTRIBUTE_MAX_LENGTH_EXCEEDED
 
Constructor Summary
ScopedMultipartRequestHandler()
           
 
Method Summary
 Hashtable getAllElements()
           
 void handleRequest(javax.servlet.http.HttpServletRequest request)
           
 
Methods inherited from class org.apache.struts.upload.CommonsMultipartRequestHandler
addFileParameter, addTextParameter, convertSizeToBytes, finish, getFileElements, getMapping, getRepositoryPath, getServlet, getSizeMax, getSizeThreshold, getTextElements, rollback, setMapping, setServlet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScopedMultipartRequestHandler

public ScopedMultipartRequestHandler()
Method Detail

handleRequest

public void handleRequest(javax.servlet.http.HttpServletRequest request)
                   throws javax.servlet.ServletException
Specified by:
handleRequest in interface MultipartRequestHandler
Overrides:
handleRequest in class CommonsMultipartRequestHandler
Throws
javax.servlet.ServletException

getAllElements

public Hashtable getAllElements()
Specified by:
getAllElements in interface MultipartRequestHandler
Overrides:
getAllElements in class CommonsMultipartRequestHandler


Copyright © 2011, Oracle. All rights reserved.