public interface ParserService
| Modifier and Type | Field and Description |
|---|---|
static boolean |
AUTOMATIC_DEFAULT
The default value of 'automaticUpload' property
(
false). |
static String |
AUTOMATIC_KEY
Parse file upload items automatically
|
static int |
DEFAULT_MAX_IDLE
The default value of 'maxIdle' property in 'pool'
(
2). |
static int |
DEFAULT_POOL_CAPACITY
The default value of 'maxTotal' property in 'pool'
(
1024). |
static boolean |
FULCRUM_POOL_DEFAULT
fulcrum pool by default false
|
static String |
FULCRUM_POOL_KEY
fulcrum pool activation parameter
|
static String |
PARAMETER_ENCODING_DEFAULT
Default Encoding for Parameter Parser
|
static String |
PARAMETER_ENCODING_KEY
Key for the Parameter Parser Encoding
|
static String |
POOL_KEY
commons pool2 parameters
|
static String |
ROLE
Avalon Identifier
|
static String |
URL_CASE_FOLDING_KEY
Property for setting the URL folding value
|
| Modifier and Type | Method and Description |
|---|---|
String |
convert(String value)
Trims the string data and applies the conversion specified in
the property given by URL_CASE_FOLDING.
|
String |
convertAndTrim(String value)
Convert a String value according to the url-case-folding property.
|
String |
convertAndTrim(String value,
ValueParser.URLCaseFolding fold)
A convert method, which trims the string data and applies the
conversion specified in the parameter given.
|
boolean |
getAutomaticUpload()
Gets the automaticUpload value from the configuration
|
String |
getParameterEncoding()
Get the parameter encoding that has been configured as default for
the ParserService.
|
<P extends ValueParser> |
getParser(Class<P> ppClass)
Get a
ValueParser instance from the service. |
ValueParser.URLCaseFolding |
getUrlFolding()
Gets the folding value from the configuration
|
List<Part> |
parseUpload(HttpServletRequest request)
Parse the given request for uploaded files
|
void |
putParser(ValueParser parser)
Put the parser into service
|
static final String ROLE
static final String PARAMETER_ENCODING_DEFAULT
static final String PARAMETER_ENCODING_KEY
static final String URL_CASE_FOLDING_KEY
static final String AUTOMATIC_KEY
static final boolean FULCRUM_POOL_DEFAULT
static final String FULCRUM_POOL_KEY
static final String POOL_KEY
static final boolean AUTOMATIC_DEFAULT
The default value of 'automaticUpload' property
(false). If set to true, parsing the
multipart request will be performed automatically by ParameterParser. Otherwise, an
org.apache.turbine.modules.Action may decide to parse the
request by calling parseRequest manually.
static final int DEFAULT_POOL_CAPACITY
The default value of 'maxTotal' property in 'pool'
(1024). The default pool capacity.
static final int DEFAULT_MAX_IDLE
The default value of 'maxIdle' property in 'pool'
(2). The default maximum idle object.
String getParameterEncoding()
String convert(String value)
value - A String to be processed.String convertAndTrim(String value)
value - the String to convertString convertAndTrim(String value, ValueParser.URLCaseFolding fold)
value - A String to be processed.fold - The parameter folding to be applied
(see ParserService)ValueParser.URLCaseFolding getUrlFolding()
boolean getAutomaticUpload()
List<Part> parseUpload(HttpServletRequest request) throws org.apache.avalon.framework.service.ServiceException
request - the HttpServletRequest objectPartsorg.apache.avalon.framework.service.ServiceException - if parsing fails<P extends ValueParser> P getParser(Class<P> ppClass) throws InstantiationException
ValueParser instance from the service. Use the
default implementation.P - The ValueParser we are usingppClass - parameter parser classInstantiationException - if the instance could not be createdvoid putParser(ValueParser parser)
parser - The value parser to be usedCopyright © 2005–2019 The Apache Software Foundation. All rights reserved.