Package org.apache.druid.server
Class ResponseContextConfig
- java.lang.Object
-
- org.apache.druid.server.ResponseContextConfig
-
public class ResponseContextConfig extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_RESPONSE_CTX_HEADER_LEN_LIMITThe maximum length ofResponseContextserialized string that might be put into an HTTP response header
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResponseContextConfigforTest(boolean shouldFailOnTruncatedResponseContext, int maxResponseContextHeaderSize)intgetMaxResponseContextHeaderSize()static ResponseContextConfignewConfig(boolean shouldFailOnTruncatedResponseContext)booleanshouldFailOnTruncatedResponseContext()
-
-
-
Field Detail
-
DEFAULT_RESPONSE_CTX_HEADER_LEN_LIMIT
public static final int DEFAULT_RESPONSE_CTX_HEADER_LEN_LIMIT
The maximum length ofResponseContextserialized string that might be put into an HTTP response header- See Also:
- Constant Field Values
-
-
Method Detail
-
newConfig
public static ResponseContextConfig newConfig(boolean shouldFailOnTruncatedResponseContext)
-
forTest
public static ResponseContextConfig forTest(boolean shouldFailOnTruncatedResponseContext, int maxResponseContextHeaderSize)
-
shouldFailOnTruncatedResponseContext
public boolean shouldFailOnTruncatedResponseContext()
-
getMaxResponseContextHeaderSize
public int getMaxResponseContextHeaderSize()
-
-