MCPcopy Create free account
hub / github.com/apache/tomcat / recycle

Method recycle

java/org/apache/tomcat/util/http/Parameters.java:139–150  ·  view source on GitHub ↗

Reset this object so it can be reused for a new request.

()

Source from the content-addressed store, hash-verified

137 * Reset this object so it can be reused for a new request.
138 */
139 public void recycle() {
140 parameterCount = 0;
141 paramHashValues.clear();
142 didQueryParameters = false;
143 charset = DEFAULT_BODY_CHARSET;
144 decodedQuery.recycle();
145 /*
146 * queryStringCharset cannot be recycled here as it needs to be set to Connector.getURICharset() which is not
147 * accessible from Parameters. queryStringCharset is therefore reset at the start of every request in
148 * CoyoteAdpater.service().
149 */
150 }
151
152
153 // -------------------- Data access --------------------

Callers

nothing calls this directly

Calls 2

clearMethod · 0.65
recycleMethod · 0.65

Tested by

no test coverage detected