Package org.apache.tomcat.util.http
Class Parameters
java.lang.Object
org.apache.tomcat.util.http.Parameters
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.This will be removed in Tomcat 9.0.x -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddParameter(String key, String value) Deprecated.This method will be removed in Tomcat 9.0.xgetParameter(String name) String[]getParameterValues(String name) voidProcess the query string into parametersbooleanvoidprocessParameters(byte[] bytes, int start, int len) voidprocessParameters(MessageBytes data, String encoding) Deprecated.This method will be removed in Tomcat 9.0.xvoidprocessParameters(MessageBytes data, Charset charset) voidrecycle()voidsetCharset(Charset charset) voidDeprecated.This method will be removed in Tomcat 9.0.xvoidsetLimit(int limit) voidsetParseFailedReason(Parameters.FailReason failReason) voidsetQuery(MessageBytes queryMB) voidsetQueryStringCharset(Charset queryStringCharset) voidDeprecated.This method will be removed in Tomcat 9voidintsize()toString()Debug purpose
-
Field Details
-
DEFAULT_ENCODING
Deprecated.This will be removed in Tomcat 9.0.x- See Also:
-
-
Constructor Details
-
Parameters
public Parameters()
-
-
Method Details
-
setQuery
-
setLimit
public void setLimit(int limit) -
getEncoding
Deprecated.This method will be removed in Tomcat 9.0.x- Returns:
- The current encoding
-
getCharset
-
setEncoding
Deprecated.This method will be removed in Tomcat 9.0.x- Parameters:
s- The new encoding
-
setCharset
-
setQueryStringEncoding
Deprecated.This method will be removed in Tomcat 9- Parameters:
s- The new query string encoding
-
setQueryStringCharset
-
isParseFailed
public boolean isParseFailed() -
getParseFailedReason
-
setParseFailedReason
-
size
public int size() -
recycle
public void recycle() -
getParameterValues
-
getParameterNames
-
getParameter
-
handleQueryParameters
public void handleQueryParameters()Process the query string into parameters -
addParameter
- Throws:
IllegalStateException
-
setURLDecoder
-
processParameters
public void processParameters(byte[] bytes, int start, int len) -
processParameters
Deprecated.This method will be removed in Tomcat 9.0.x- Parameters:
data- Parameter dataencoding- Encoding to use for encoded bytes
-
processParameters
-
toString
Debug purpose
-