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

Method getParts

java/org/apache/catalina/connector/Request.java:2521–2542  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2519
2520
2521 @Override
2522 public Collection<Part> getParts() throws IOException, IllegalStateException, ServletException {
2523
2524 parseParts(true);
2525
2526 if (partsParseException != null) {
2527 Context context = getContext();
2528 if (context != null && context.getLogger().isDebugEnabled()) {
2529 context.getLogger()
2530 .debug(sm.getString("coyoteRequest.partsParseException", partsParseException.getMessage()));
2531 }
2532 if (partsParseException instanceof IOException) {
2533 throw (IOException) partsParseException;
2534 } else if (partsParseException instanceof IllegalStateException) {
2535 throw (IllegalStateException) partsParseException;
2536 } else if (partsParseException instanceof ServletException) {
2537 throw (ServletException) partsParseException;
2538 }
2539 }
2540
2541 return parts;
2542 }
2543
2544
2545 private void parseParts(boolean explicit) {

Callers 1

getPartMethod · 0.95

Calls 7

parsePartsMethod · 0.95
getContextMethod · 0.95
isDebugEnabledMethod · 0.65
getLoggerMethod · 0.65
debugMethod · 0.65
getStringMethod · 0.65
getMessageMethod · 0.65

Tested by

no test coverage detected