public class ResponseContextConfig extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_RESPONSE_CTX_HEADER_LEN_LIMIT
The maximum length of
ResponseContext serialized string that might be put into an HTTP response header |
| Modifier and Type | Method and Description |
|---|---|
static ResponseContextConfig |
forTest(boolean shouldFailOnTruncatedResponseContext,
int maxResponseContextHeaderSize) |
int |
getMaxResponseContextHeaderSize() |
static ResponseContextConfig |
newConfig(boolean shouldFailOnTruncatedResponseContext) |
boolean |
shouldFailOnTruncatedResponseContext() |
public static final int DEFAULT_RESPONSE_CTX_HEADER_LEN_LIMIT
ResponseContext serialized string that might be put into an HTTP response headerpublic static ResponseContextConfig newConfig(boolean shouldFailOnTruncatedResponseContext)
public static ResponseContextConfig forTest(boolean shouldFailOnTruncatedResponseContext, int maxResponseContextHeaderSize)
public boolean shouldFailOnTruncatedResponseContext()
public int getMaxResponseContextHeaderSize()
Copyright © 2011–2021 The Apache Software Foundation. All rights reserved.