MCPcopy Index your code
hub / github.com/apache/tomcat / action

Method action

java/org/apache/coyote/AbstractProcessor.java:406–687  ·  view source on GitHub ↗
(ActionCode actionCode, Object param)

Source from the content-addressed store, hash-verified

404
405
406 @Override
407 public final void action(ActionCode actionCode, Object param) {
408 switch (actionCode) {
409 // 'Normal' servlet support
410 case COMMIT: {
411 if (!response.isCommitted()) {
412 try {
413 // Validate and write response headers
414 prepareResponse();
415 } catch (IOException ioe) {
416 handleIOException(ioe);
417 }
418 }
419 break;
420 }
421 case CLOSE: {
422 action(ActionCode.COMMIT, null);
423 try {
424 finishResponse();
425 } catch (IOException ioe) {
426 handleIOException(ioe);
427 }
428 break;
429 }
430 case ACK: {
431 ack((ContinueResponseTiming) param);
432 break;
433 }
434 case EARLY_HINTS: {
435 try {
436 earlyHints();
437 } catch (IOException ioe) {
438 handleIOException(ioe);
439 }
440 break;
441 }
442 case CLIENT_FLUSH: {
443 action(ActionCode.COMMIT, null);
444 try {
445 flush();
446 } catch (IOException ioe) {
447 handleIOException(ioe);
448 response.setErrorException(ioe);
449 }
450 break;
451 }
452 case AVAILABLE: {
453 request.setAvailable(available(Boolean.TRUE.equals(param)));
454 break;
455 }
456 case REQ_SET_BODY_REPLAY: {
457 ByteChunk body = (ByteChunk) param;
458 setRequestBody(body);
459 break;
460 }
461
462 // Error handling
463 case IS_ERROR: {

Callers

nothing calls this directly

Calls 15

prepareResponseMethod · 0.95
handleIOExceptionMethod · 0.95
finishResponseMethod · 0.95
ackMethod · 0.95
earlyHintsMethod · 0.95
flushMethod · 0.95
availableMethod · 0.95
setRequestBodyMethod · 0.95
getErrorStateMethod · 0.95
setSwallowResponseMethod · 0.95
setErrorStateMethod · 0.95
disableSwallowRequestMethod · 0.95

Tested by

no test coverage detected