Search in sources :

Example 1 with AbstractEncoder

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

the class EncoderHttpMessageWriter method initLogger.

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

Aggregations

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