List of usage examples for org.apache.http.nio NHttpClientHandler getClass
@HotSpotIntrinsicCandidate public final native Class<?> getClass();
From source file:org.apache.axis2.transport.nhttp.LoggingNHttpClientHandler.java
public LoggingNHttpClientHandler(final NHttpClientHandler handler) { super();/*from w w w .ja va 2 s. co m*/ if (handler == null) { throw new IllegalArgumentException("HTTP client handler may not be null"); } this.handler = handler; this.log = LogFactory.getLog(handler.getClass()); this.headerlog = LogFactory.getLog("org.apache.axis2.transport.nhttp.headers"); }
From source file:org.apache.http.contrib.logging.LoggingNHttpClientHandler.java
public LoggingNHttpClientHandler(final NHttpClientHandler handler) { super();//from ww w . j a v a 2s. c om if (handler == null) { throw new IllegalArgumentException("HTTP client handler may not be null"); } this.handler = handler; this.log = LogFactory.getLog(handler.getClass()); this.headerlog = LogFactory.getLog("org.apache.http.headers"); }
From source file:org.apache.synapse.transport.nhttp.LoggingUtils.java
public static NHttpClientHandler decorate(NHttpClientHandler handler) { Log log = LogFactory.getLog(handler.getClass()); Log headerlog = LogFactory.getLog(HEADER_LOG_ID); if (log.isDebugEnabled() || headerlog.isDebugEnabled()) { handler = new LoggingNHttpClientHandler(log, headerlog, handler); }// w w w. ja v a 2s. c o m return handler; }