Example usage for org.apache.http.nio.reactor IOSession getClass

List of usage examples for org.apache.http.nio.reactor IOSession getClass

Introduction

In this page you can find the example usage for org.apache.http.nio.reactor IOSession getClass.

Prototype

@HotSpotIntrinsicCandidate
public final native Class<?> getClass();

Source Link

Document

Returns the runtime class of this Object .

Usage

From source file:org.siddhiesb.transport.http.conn.LoggingNHttpClientConnection.java

public LoggingNHttpClientConnection(final IOSession session, final HttpResponseFactory responseFactory,
        final ByteBufferAllocator allocator, final HttpParams params) {
    super(session, responseFactory, allocator, params);
    this.log = LogFactory.getLog(getClass());
    this.iolog = LogFactory.getLog(session.getClass());
    this.headerlog = LogFactory.getLog(org.siddhiesb.transport.http.conn.LoggingUtils.HEADER_LOG_ID);
    this.wirelog = LogFactory.getLog(org.siddhiesb.transport.http.conn.LoggingUtils.WIRE_LOG_ID);
    this.accesslog = LogFactory.getLog(LoggingUtils.ACCESS_LOG_ID);
    this.id = "http-outgoing-" + COUNT.incrementAndGet();
    this.original = session;
    if (this.iolog.isDebugEnabled() || this.wirelog.isDebugEnabled()) {
        super.bind(new org.siddhiesb.transport.http.conn.LoggingIOSession(session, this.id, this.iolog,
                this.wirelog));
    }/*from  w  w  w . j a va2  s  .co m*/
}

From source file:org.siddhiesb.transport.http.conn.LoggingNHttpServerConnection.java

public LoggingNHttpServerConnection(final IOSession session, final HttpRequestFactory requestFactory,
        final ByteBufferAllocator allocator, final HttpParams params) {
    super(session, requestFactory, allocator, params);
    this.log = LogFactory.getLog(getClass());
    this.iolog = LogFactory.getLog(session.getClass());
    this.headerlog = LogFactory.getLog(org.siddhiesb.transport.http.conn.LoggingUtils.HEADER_LOG_ID);
    this.wirelog = LogFactory.getLog(org.siddhiesb.transport.http.conn.LoggingUtils.WIRE_LOG_ID);
    this.accesslog = LogFactory.getLog(LoggingUtils.ACCESS_LOG_ID);
    this.id = "http-incoming-" + COUNT.incrementAndGet();
    this.original = session;
    if (this.iolog.isDebugEnabled() || this.wirelog.isDebugEnabled()) {
        super.bind(new org.siddhiesb.transport.http.conn.LoggingIOSession(session, this.id, this.iolog,
                this.wirelog));
    }//w  w w .j av  a  2 s.  c o m
}

From source file:org.apache.axis2.transport.nhttp.LoggingIOSession.java

public LoggingIOSession(final IOSession session) {
    super();//w ww  . ja v  a 2 s .c  om
    if (session == null) {
        throw new IllegalArgumentException("I/O session may not be null");
    }
    this.session = session;
    this.channel = new LoggingByteChannel();
    this.id = ++COUNT;
    this.log = LogFactory.getLog(session.getClass());
}

From source file:org.siddhiesb.transport.http.conn.LoggingIOSession.java

public LoggingIOSession(final IOSession session, final String id, final Log log, final Log wirelog) {
    super();/*from  ww  w  .j  a  v  a 2  s.com*/
    if (session == null) {
        throw new IllegalArgumentException("I/O session may not be null");
    }
    this.session = session;
    this.channel = new LoggingByteChannel();
    this.id = id + "-" + COUNT.incrementAndGet();
    this.log = LogFactory.getLog(session.getClass());
    this.wirelog = new org.siddhiesb.transport.http.conn.Wire(wirelog);
}

From source file:org.apache.http.contrib.logging.LoggingIOSession.java

public LoggingIOSession(final IOSession session, final String id) {
    super();/*from w ww.java2s  .  co m*/
    if (session == null) {
        throw new IllegalArgumentException("I/O session may not be null");
    }
    this.session = session;
    this.channel = new LoggingByteChannel();
    this.id = id + "-" + COUNT.incrementAndGet();
    this.log = LogFactory.getLog(session.getClass());
    this.wirelog = new Wire(LogFactory.getLog("org.apache.http.wire"));
}

From source file:org.apache.http.impl.nio.conn.DefaultClientAsyncConnection.java

public DefaultClientAsyncConnection(final String id, final IOSession iosession,
        final HttpResponseFactory responseFactory, final ByteBufferAllocator allocator,
        final HttpParams params) {
    super(iosession, responseFactory, allocator, params);
    this.id = id;
    this.original = iosession;
    this.log = LogFactory.getLog(iosession.getClass());
    if (this.log.isDebugEnabled() || this.wirelog.isDebugEnabled()) {
        bind(new LoggingIOSession(iosession, this.id, this.log, this.wirelog));
    }/*from  w  w  w .  j  a  va2 s  .  c o m*/
}

From source file:org.apache.http.impl.nio.conn.DefaultClientConnection.java

public DefaultClientConnection(final IOSession iosession, final HttpResponseFactory responseFactory,
        final ByteBufferAllocator allocator, final HttpParams params) {
    super(iosession, responseFactory, allocator, params);
    this.log = LogFactory.getLog(iosession.getClass());
    if (this.log.isDebugEnabled() || this.wirelog.isDebugEnabled()) {
        this.session = new LoggingIOSession(iosession, this.log, this.wirelog);
    }//w w w.  ja  v  a 2 s.  co  m
    if (iosession instanceof SSLIOSession) {
        this.ssliosession = (SSLIOSession) iosession;
    } else {
        this.ssliosession = null;
    }
}

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  ww  . j a  va2s.  c  o m*/
}

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);
    }//from   w  ww. j a  v a2 s .c  o m
}

From source file:org.apache.synapse.transport.http.conn.LoggingIOSession.java

public LoggingIOSession(final IOSession session, final String id, final Log log, final Log wirelog) {
    super();// w ww.  j  av  a2 s. c  o  m
    if (session == null) {
        throw new IllegalArgumentException("I/O session may not be null");
    }
    this.session = session;
    this.channel = new LoggingByteChannel();
    this.id = id + "-" + COUNT.incrementAndGet();
    this.log = LogFactory.getLog(session.getClass());
    this.wirelog = new Wire(wirelog);
}