()
| 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) { |
no test coverage detected