MCPcopy Index your code
hub / github.com/zaproxy/zaproxy / setFragment

Method setFragment

zap/src/main/java/org/apache/commons/httpclient/URI.java:3394–3402  ·  view source on GitHub ↗

Set the fragment. @param fragment the fragment string. @throws URIException If an error occurs.

(String fragment)

Source from the content-addressed store, hash-verified

3392 * @throws URIException If an error occurs.
3393 */
3394 public void setFragment(String fragment) throws URIException {
3395 if (fragment == null || fragment.length() == 0) {
3396 _fragment = (fragment == null) ? null : fragment.toCharArray();
3397 hash = 0;
3398 return;
3399 }
3400 _fragment = encode(fragment, allowed_fragment, getProtocolCharset());
3401 hash = 0;
3402 }
3403
3404
3405 /**

Callers

nothing calls this directly

Calls 3

encodeMethod · 0.95
getProtocolCharsetMethod · 0.95
lengthMethod · 0.45

Tested by

no test coverage detected