java.lang.Object
org.glassfish.grizzly.http.util.Parameters
- Author:
- Costin Manolache
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddParameter(String key, String value) voidaddParameterValues(String key, String[] newValues) getParameter(String name) String[]getParameterValues(String name) voidProcess the query string into parametersDebug purposevoidpop()Discard the last child.voidprocessParameters(char[] chars, int start, int len) voidprocessParameters(String str) voidprocessParameters(org.glassfish.grizzly.Buffer buffer, int start, int len) voidprocessParameters(org.glassfish.grizzly.Buffer buffer, int start, int len, Charset enc) voidprocessParameters(DataChunk data) voidprocessParameters(DataChunk data, Charset encoding) voidpush()Create ( or reuse ) a child that will be used during a sub-request.voidrecycle()voidsetEncoding(Charset encoding) voidsetHeaders(MimeHeaders headers) voidsetLimit(int limit) voidvoidsetQueryStringEncoding(Charset queryStringEncoding)
-
Field Details
-
INITIAL_SIZE
public static final int INITIAL_SIZE- See Also:
-
DEFAULT_ENCODING
-
DEFAULT_CHARSET
-
-
Constructor Details
-
Parameters
public Parameters()
-
-
Method Details
-
setQuery
-
setHeaders
-
setLimit
public void setLimit(int limit) -
setEncoding
-
getEncoding
-
setQueryStringEncoding
-
getQueryStringEncoding
-
recycle
public void recycle() -
getCurrentSet
-
push
public void push()Create ( or reuse ) a child that will be used during a sub-request. All future changes ( setting query string, adding parameters ) will affect the child ( the parent request is never changed ). Both setters and getters will return the data from the deepest child, merged with data from parents. -
pop
public void pop()Discard the last child. This happens when we return from a sub-request and the parameters are locally modified. -
addParameterValues
-
getParameterValues
-
getParameterNames
-
getParameter
-
handleQueryParameters
public void handleQueryParameters()Process the query string into parameters -
addParameter
- Throws:
IllegalStateException
-
processParameters
public void processParameters(org.glassfish.grizzly.Buffer buffer, int start, int len) -
processParameters
-
processParameters
public void processParameters(char[] chars, int start, int len) -
processParameters
-
processParameters
-
paramsAsString
Debug purpose -
processParameters
-