List of usage examples for org.apache.http.nio NHttpServiceHandler getClass
@HotSpotIntrinsicCandidate public final native Class<?> getClass();
From source file:org.apache.axis2.transport.nhttp.LoggingNHttpServiceHandler.java
public LoggingNHttpServiceHandler(final NHttpServiceHandler handler) { super();//w ww . j a v a 2 s . c om if (handler == null) { throw new IllegalArgumentException("HTTP service 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.LoggingNHttpServiceHandler.java
public LoggingNHttpServiceHandler(final NHttpServiceHandler handler) { super();//from w w w . j a v a2 s. com if (handler == null) { throw new IllegalArgumentException("HTTP service 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 NHttpServiceHandler decorate(NHttpServiceHandler handler) { Log log = LogFactory.getLog(handler.getClass()); Log headerlog = LogFactory.getLog(HEADER_LOG_ID); if (log.isDebugEnabled() || headerlog.isDebugEnabled()) { handler = new LoggingNHttpServiceHandler(log, headerlog, handler); }//from w w w .ja v a 2 s.c o m return handler; }