Search in sources :

Example 1 with AbstractDecoder

use of org.springframework.core.codec.AbstractDecoder in project spring-framework by spring-projects.

the class DecoderHttpMessageReader method initLogger.

private static void initLogger(Decoder<?> decoder) {
    if (decoder instanceof AbstractDecoder && decoder.getClass().getName().startsWith("org.springframework.core.codec")) {
        Log logger = HttpLogging.forLog(((AbstractDecoder<?>) decoder).getLogger());
        ((AbstractDecoder<?>) decoder).setLogger(logger);
    }
}
Also used : Log(org.apache.commons.logging.Log) AbstractDecoder(org.springframework.core.codec.AbstractDecoder)

Aggregations

Log (org.apache.commons.logging.Log)1 AbstractDecoder (org.springframework.core.codec.AbstractDecoder)1