org.equanda.reporting.servlet
Class DefaultMultipartDecoder

java.lang.Object
  extended by org.equanda.reporting.servlet.DefaultMultipartDecoder

public class DefaultMultipartDecoder
extends Object

File is based on the Tapestry3 original class.

Author:
Mircea Militaru (Mic)

Field Summary
static String PART_MAP_ATTRIBUTE_NAME
          Request attribute key used to store the part map for this request.
 
Constructor Summary
DefaultMultipartDecoder()
           
 
Method Summary
 void cleanup(javax.servlet.http.HttpServletRequest request)
           
 void decode(javax.servlet.http.HttpServletRequest request)
          Decodes the request, storing the part map (keyed on query parameter name, value is IPart into the request as an attribute.
 int getMaxSize()
           
 String getRepositoryPath()
           
static DefaultMultipartDecoder getSharedInstance()
           
 String getString(javax.servlet.http.HttpServletRequest request, String name)
           
 String[] getStringParameterNames(javax.servlet.http.HttpServletRequest httpServletRequest)
           
 String[] getStrings(javax.servlet.http.HttpServletRequest request, String name)
           
 int getThresholdSize()
           
static boolean isMultipartRequest(javax.servlet.http.HttpServletRequest request)
           
 void setMaxSize(int maxSize)
           
 void setRepositoryPath(String repositoryPath)
           
 void setThresholdSize(int thresholdSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PART_MAP_ATTRIBUTE_NAME

public static final String PART_MAP_ATTRIBUTE_NAME
Request attribute key used to store the part map for this request. The part map is created in decode(javax.servlet.http.HttpServletRequest). By storing the part map in the request instead of an instance variable, DefaultMultipartDecoder becomes threadsafe (no client-specific state in instance variables).

See Also:
Constant Field Values
Constructor Detail

DefaultMultipartDecoder

public DefaultMultipartDecoder()
Method Detail

getSharedInstance

public static DefaultMultipartDecoder getSharedInstance()

setMaxSize

public void setMaxSize(int maxSize)

getMaxSize

public int getMaxSize()

setThresholdSize

public void setThresholdSize(int thresholdSize)

getThresholdSize

public int getThresholdSize()

setRepositoryPath

public void setRepositoryPath(String repositoryPath)

getRepositoryPath

public String getRepositoryPath()

isMultipartRequest

public static boolean isMultipartRequest(javax.servlet.http.HttpServletRequest request)

cleanup

public void cleanup(javax.servlet.http.HttpServletRequest request)

decode

public void decode(javax.servlet.http.HttpServletRequest request)
Decodes the request, storing the part map (keyed on query parameter name, value is IPart into the request as an attribute.


getString

public String getString(javax.servlet.http.HttpServletRequest request,
                        String name)

getStrings

public String[] getStrings(javax.servlet.http.HttpServletRequest request,
                           String name)

getStringParameterNames

public String[] getStringParameterNames(javax.servlet.http.HttpServletRequest httpServletRequest)


Copyright © 2007-2009. All Rights Reserved.