Package org.apache.tomcat.util.http
Class Parameters
java.lang.Object
org.apache.tomcat.util.http.Parameters
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Deprecated.This will be removed in Tomcat 9.0.x -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addParameter
(String key, String value) Deprecated.This method will be removed in Tomcat 9.0.xgetParameter
(String name) String[]
getParameterValues
(String name) void
Process the query string into parametersboolean
void
processParameters
(byte[] bytes, int start, int len) void
processParameters
(MessageBytes data, String encoding) Deprecated.This method will be removed in Tomcat 9.0.xvoid
processParameters
(MessageBytes data, Charset charset) void
recycle()
void
setCharset
(Charset charset) void
Deprecated.This method will be removed in Tomcat 9.0.xvoid
setLimit
(int limit) void
setParseFailedReason
(Parameters.FailReason failReason) void
setQuery
(MessageBytes queryMB) void
setQueryStringCharset
(Charset queryStringCharset) void
Deprecated.This method will be removed in Tomcat 9void
int
size()
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
-