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

Method parseCookies

java/org/apache/catalina/connector/Request.java:2903–2913  ·  view source on GitHub ↗

Parse cookies. This only parses the cookies into the memory efficient ServerCookies structure. It does not populate the Cookie objects.

()

Source from the content-addressed store, hash-verified

2901 * populate the Cookie objects.
2902 */
2903 protected void parseCookies() {
2904 if (cookiesParsed) {
2905 return;
2906 }
2907
2908 cookiesParsed = true;
2909
2910 ServerCookies serverCookies = coyoteRequest.getCookies();
2911 serverCookies.setLimit(connector.getMaxCookieCount());
2912 getCookieProcessor().parseCookieHeader(coyoteRequest.getMimeHeaders(), serverCookies);
2913 }
2914
2915 /**
2916 * Converts the parsed cookies (parsing the Cookie headers first if they have not been parsed) into Cookie objects.

Callers 2

getServerCookiesMethod · 0.95
convertCookiesMethod · 0.95

Calls 6

setLimitMethod · 0.95
getCookieProcessorMethod · 0.95
getMaxCookieCountMethod · 0.80
getCookiesMethod · 0.65
parseCookieHeaderMethod · 0.65
getMimeHeadersMethod · 0.45

Tested by

no test coverage detected