org.springframework.core.codec.AbstractEncoder Java Examples

The following examples show how to use org.springframework.core.codec.AbstractEncoder. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: EncoderHttpMessageWriter.java    From spring-analysis-note with MIT License 5 votes vote down vote up
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);
	}
}
 
Example #2
Source File: EncoderHttpMessageWriter.java    From java-technology-stack with MIT License 5 votes vote down vote up
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);
	}
}