List of usage examples for org.apache.http.nio NHttpServerEventHandler getClass
@HotSpotIntrinsicCandidate public final native Class<?> getClass();
From source file:org.siddhiesb.transport.http.conn.LoggingUtils.java
public static NHttpServerEventHandler decorate(NHttpServerEventHandler handler) { Log log = LogFactory.getLog(handler.getClass()); if (log.isDebugEnabled()) { handler = new LoggingNHttpServiceHandler(log, handler); }//w ww .j ava2 s .c o m return handler; }
From source file:org.siddhiesb.transport.http.conn.LoggingNHttpServiceHandler.java
public LoggingNHttpServiceHandler(final Log log, final NHttpServerEventHandler handler) { super();//from w w w. ja v a 2s .c om if (handler == null) { throw new IllegalArgumentException("HTTP service handler may not be null"); } this.handler = handler; this.log = LogFactory.getLog(handler.getClass()); }
From source file:org.apache.synapse.transport.utils.logging.LoggingServerEventHandler.java
/** * Create a new instance of the decorator. * * @param handler The instance of NHttpServerEventHandler to be decorated (wrapped) *//*from w w w. j a va 2s . c o m*/ public LoggingServerEventHandler(final NHttpServerEventHandler handler) { super(); if (handler == null) { throw new IllegalArgumentException("HTTP service handler must not be null"); } this.handler = handler; this.log = LogFactory.getLog(handler.getClass()); }
From source file:org.apache.synapse.transport.utils.logging.LoggingUtils.java
private static NHttpServerEventHandler decorate(NHttpServerEventHandler handler) { Log log = LogFactory.getLog(handler.getClass()); if (log.isDebugEnabled()) { handler = new LoggingServerEventHandler(handler); }/*from ww w . j a v a2s . c om*/ return handler; }