Class ResponseContextConfig


  • public class ResponseContextConfig
    extends Object
    • Field Detail

      • DEFAULT_RESPONSE_CTX_HEADER_LEN_LIMIT

        public static final int DEFAULT_RESPONSE_CTX_HEADER_LEN_LIMIT
        The maximum length of ResponseContext serialized 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()