List of usage examples for org.apache.http.nio NHttpClientIOTarget getClass
@HotSpotIntrinsicCandidate public final native Class<?> getClass();
From source file:org.apache.synapse.transport.nhttp.LoggingNHttpClientIOTarget.java
public LoggingNHttpClientIOTarget(final Log log, final Log headerlog, final NHttpClientIOTarget target) { super();//w ww .j a va2 s.co m if (target == null) { throw new IllegalArgumentException("IO target may not be null"); } this.target = target; if (log != null) { this.log = log; } else { this.log = LogFactory.getLog(target.getClass()); } if (log != null) { this.headerlog = headerlog; } else { this.headerlog = LogFactory.getLog(LoggingUtils.HEADER_LOG_ID); } }
From source file:org.apache.synapse.transport.nhttp.LoggingUtils.java
public static NHttpClientIOTarget decorate(NHttpClientIOTarget target) { Log log = LogFactory.getLog(target.getClass()); Log headerlog = LogFactory.getLog(HEADER_LOG_ID); if (log.isDebugEnabled() || headerlog.isDebugEnabled()) { target = new LoggingNHttpClientIOTarget(log, headerlog, target); }/* w w w. j a va 2 s. com*/ return target; }