List of usage examples for org.apache.http.nio.testserver LoggingIOSession LoggingIOSession
public LoggingIOSession(final IOSession session, final String id, final Log log, final Log wirelog)
From source file:org.apache.http.nio.testserver.LoggingNHttpClientConnection.java
public LoggingNHttpClientConnection(final IOSession session) { super(session, 8 * 1024); this.log = LogFactory.getLog(getClass()); this.iolog = LogFactory.getLog(session.getClass()); this.headerlog = LogFactory.getLog("org.apache.http.headers"); this.wirelog = LogFactory.getLog("org.apache.http.wire"); this.id = "http-outgoing-" + COUNT.incrementAndGet(); if (this.iolog.isDebugEnabled() || this.wirelog.isDebugEnabled()) { this.session = new LoggingIOSession(session, this.id, this.iolog, this.wirelog); }//from w w w . j a v a 2 s. c om }
From source file:org.apache.http.nio.testserver.LoggingNHttpServerConnection.java
public LoggingNHttpServerConnection(final IOSession session) { super(session, 8 * 1024); this.log = LogFactory.getLog(getClass()); this.iolog = LogFactory.getLog(session.getClass()); this.headerlog = LogFactory.getLog("org.apache.http.headers"); this.wirelog = LogFactory.getLog("org.apache.http.wire"); this.id = "http-incoming-" + COUNT.incrementAndGet(); if (this.iolog.isDebugEnabled() || this.wirelog.isDebugEnabled()) { this.session = new LoggingIOSession(session, this.id, this.iolog, this.wirelog); }// ww w. ja v a2 s. co m }