Package org.apache.druid.server
Class ResponseContextConfig
java.lang.Object
org.apache.druid.server.ResponseContextConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe maximum length ofResponseContextserialized string that might be put into an HTTP response header -
Method Summary
Modifier and TypeMethodDescriptionstatic ResponseContextConfigforTest(boolean shouldFailOnTruncatedResponseContext, int maxResponseContextHeaderSize) intstatic ResponseContextConfignewConfig(boolean shouldFailOnTruncatedResponseContext) boolean
-
Field Details
-
DEFAULT_RESPONSE_CTX_HEADER_LEN_LIMIT
public static final int DEFAULT_RESPONSE_CTX_HEADER_LEN_LIMITThe maximum length ofResponseContextserialized string that might be put into an HTTP response header- See Also:
-
-
Method Details
-
newConfig
-
forTest
public static ResponseContextConfig forTest(boolean shouldFailOnTruncatedResponseContext, int maxResponseContextHeaderSize) -
shouldFailOnTruncatedResponseContext
public boolean shouldFailOnTruncatedResponseContext() -
getMaxResponseContextHeaderSize
public int getMaxResponseContextHeaderSize()
-