Top Description Fields Constructors Methods
org.apache.coyote

public final Enum ContinueResponseTiming

extends Enum<ContinueResponseTiming>
Class Inheritance
Imports
org.apache.tomcat.util.res.StringManager

Defines timing options for responding to requests that contain a '100-continue' expectations.

Field Summary

Modifier and TypeField and Description
public static final ContinueResponseTiming
ALWAYS

Internal use only.

private final String
public static final ContinueResponseTiming
IMMEDIATELY

Tomcat will automatically send the 100 intermediate response before sending the request to the servlet.

public static final ContinueResponseTiming
ON_REQUEST_BODY_READ

Send the 100 intermediate response only when the servlet attempts to read the request's body by either:

  • calling read on the InputStream returned by HttpServletRequest.getInputStream
  • calling read on the BufferedReader returned by HttpServletRequest.getReader
private static final StringManager

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ContinueResponseTiming
public String
toString()

Overrides java.lang.Enum.toString.

Returns the name of this enum constant, as contained in the declaration.

public static ContinueResponseTiming
public static ContinueResponseTiming[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinalvalueOf

Field Detail

ALWAYSback to summary
public static final ContinueResponseTiming ALWAYS

Internal use only. Used to indicate that the 100 intermediate response should be sent if possible regardless of the current configuration.

configValueback to summary
private final String configValue
IMMEDIATELYback to summary
public static final ContinueResponseTiming IMMEDIATELY

Tomcat will automatically send the 100 intermediate response before sending the request to the servlet.

ON_REQUEST_BODY_READback to summary
public static final ContinueResponseTiming ON_REQUEST_BODY_READ

Send the 100 intermediate response only when the servlet attempts to read the request's body by either:

  • calling read on the InputStream returned by HttpServletRequest.getInputStream
  • calling read on the BufferedReader returned by HttpServletRequest.getReader
This allows the servlet to process the request headers and possibly respond before reading the request body.
smback to summary
private static final StringManager sm

Constructor Detail

ContinueResponseTimingback to summary
private ContinueResponseTiming(String configValue)

Method Detail

fromStringback to summary
public static ContinueResponseTiming fromString(String value)
toStringback to summary
public String toString()

Overrides java.lang.Enum.toString.

Doc from java.lang.Enum.toString.

Returns the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum class should override this method when a more "programmer-friendly" string form exists.

Returns:String

the name of this enum constant

Annotations
@Override
valueOfback to summary
public static ContinueResponseTiming valueOf(String name)
valuesback to summary
public static ContinueResponseTiming[] values()