List of usage examples for org.apache.http.nio NHttpServerIOTarget getClass
@HotSpotIntrinsicCandidate public final native Class<?> getClass();
From source file:org.apache.synapse.transport.nhttp.LoggingNHttpServerIOTarget.java
public LoggingNHttpServerIOTarget(final Log log, final Log headerlog, final NHttpServerIOTarget target) { if (target == null) { throw new IllegalArgumentException("IO target may not be null"); }/*w w w .ja v a2 s . c o m*/ 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 NHttpServerIOTarget decorate(NHttpServerIOTarget target) { Log log = LogFactory.getLog(target.getClass()); Log headerlog = LogFactory.getLog(HEADER_LOG_ID); if (log.isDebugEnabled() || headerlog.isDebugEnabled()) { target = new LoggingNHttpServerIOTarget(log, headerlog, target); }/*w ww . j ava2s . c o m*/ return target; }