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

Method logInvalidHeader

java/org/apache/tomcat/util/http/parser/Cookie.java:241–257  ·  view source on GitHub ↗
(int start, ByteBuffer bb)

Source from the content-addressed store, hash-verified

239
240
241 private static void logInvalidHeader(int start, ByteBuffer bb) {
242 UserDataHelper.Mode logMode = invalidCookieLog.getNextMode();
243 if (logMode != null) {
244 String headerValue = new String(bb.array(), start, bb.position() - start, StandardCharsets.UTF_8);
245 String message = sm.getString("cookie.invalidCookieValue", headerValue);
246 switch (logMode) {
247 case INFO_THEN_DEBUG:
248 message += sm.getString("cookie.fallToDebug");
249 //$FALL-THROUGH$
250 case INFO:
251 log.info(message);
252 break;
253 case DEBUG:
254 log.debug(message);
255 }
256 }
257 }
258
259
260 /**

Callers 1

parseCookieMethod · 0.95

Calls 6

getNextModeMethod · 0.80
arrayMethod · 0.80
positionMethod · 0.80
getStringMethod · 0.65
infoMethod · 0.65
debugMethod · 0.65

Tested by

no test coverage detected