接口 CodecConfigurer.DefaultCodecs

    • 方法详细资料

      • jaxb2Decoder

        void jaxb2Decoder​(Decoder<?> decoder)
        Override the default JAXB2 Decoder.

        Note that maxInMemorySize(int), if configured, will be applied to the given decoder.

        参数:
        decoder - the decoder instance to use
        从以下版本开始:
        5.1.3
        另请参阅:
        Jaxb2XmlDecoder
      • jaxb2Encoder

        void jaxb2Encoder​(Encoder<?> encoder)
        Override the default JABX2 Encoder.
        参数:
        encoder - the encoder instance to use
        从以下版本开始:
        5.1.3
        另请参阅:
        Jaxb2XmlEncoder
      • maxInMemorySize

        void maxInMemorySize​(int byteCount)
        Configure a limit on the number of bytes that can be buffered whenever the input stream needs to be aggregated. This can be a result of decoding to a single DataBuffer, ByteBuffer, byte[], Resource, String, etc. It can also occur when splitting the input stream, e.g. delimited text, in which case the limit applies to data buffered between delimiters.

        By default this is not set, in which case individual codec defaults apply. All codecs are limited to 256K by default.

        参数:
        byteCount - the max number of bytes to buffer, or -1 for unlimited
        从以下版本开始:
        5.1.11
      • enableLoggingRequestDetails

        void enableLoggingRequestDetails​(boolean enable)
        Whether to log form data at DEBUG level, and headers at TRACE level. Both may contain sensitive information.

        By default set to false so that request details are not shown.

        参数:
        enable - whether to enable or not
        从以下版本开始:
        5.1