|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.fulcrum.parser.DefaultParserService
public class DefaultParserService
The DefaultParserService provides the efault implementation
of a ParserService
.
Field Summary |
---|
Fields inherited from interface org.apache.fulcrum.parser.ParserService |
---|
AUTOMATIC_DEFAULT, AUTOMATIC_KEY, PARAMETER_ENCODING_DEFAULT, PARAMETER_ENCODING_KEY, ROLE, URL_CASE_FOLDING_KEY, URL_CASE_FOLDING_LOWER, URL_CASE_FOLDING_LOWER_VALUE, URL_CASE_FOLDING_NONE, URL_CASE_FOLDING_NONE_VALUE, URL_CASE_FOLDING_UNSET, URL_CASE_FOLDING_UPPER, URL_CASE_FOLDING_UPPER_VALUE |
Constructor Summary | |
---|---|
DefaultParserService()
|
Method Summary | |
---|---|
void |
configure(org.apache.avalon.framework.configuration.Configuration conf)
Avalon component lifecycle method |
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,
int fold)
A static version of the convert method, which trims the string data and applies the conversion specified in the property given by URL_CASE_FOLDING. |
boolean |
getAutomaticUpload()
Gets the automaticUpload value from the configuration |
String |
getParameterEncoding()
Get the character encoding that will be used by this ValueParser. |
ValueParser |
getParser(Class ppClass)
Get a ValueParser instance from the service. |
int |
getUrlFolding()
Gets the folding value from the configuration |
List |
parseUpload(javax.servlet.http.HttpServletRequest request)
Use the UploadService if available to parse the given request for uploaded files |
void |
putParser(ValueParser parser)
Return a used Parser to the service. |
void |
service(org.apache.avalon.framework.service.ServiceManager manager)
Avalon component lifecycle method |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultParserService()
Method Detail |
---|
public String getParameterEncoding()
getParameterEncoding
in interface ParserService
public String convert(String value)
convert
in interface ParserService
value
- A String to be processed.
public String convertAndTrim(String value)
convertAndTrim
in interface ParserService
value
- the String to convert
public String convertAndTrim(String value, int fold)
convertAndTrim
in interface ParserService
value
- A String to be processed.fold
- The parameter folding to be applied
(see ParserService
)
public int getUrlFolding()
getUrlFolding
in interface ParserService
public boolean getAutomaticUpload()
getAutomaticUpload
in interface ParserService
public List parseUpload(javax.servlet.http.HttpServletRequest request) throws org.apache.avalon.framework.service.ServiceException
parseUpload
in interface ParserService
org.apache.commons.upload.FileItem
s
org.apache.avalon.framework.service.ServiceException
- if parsing fails or the UploadService
is not availablepublic ValueParser getParser(Class ppClass) throws InstantiationException
ValueParser
instance from the service. Use the
given Class to create the object.
getParser
in interface ParserService
InstantiationException
- if the instance could not be createdpublic void putParser(ValueParser parser)
putParser
in interface ParserService
parser
- public void configure(org.apache.avalon.framework.configuration.Configuration conf) throws org.apache.avalon.framework.configuration.ConfigurationException
configure
in interface org.apache.avalon.framework.configuration.Configurable
org.apache.avalon.framework.configuration.ConfigurationException
public void service(org.apache.avalon.framework.service.ServiceManager manager) throws org.apache.avalon.framework.service.ServiceException
service
in interface org.apache.avalon.framework.service.Serviceable
org.apache.avalon.framework.service.ServiceException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |