Package org.simpleframework.transport.trace

Examples of org.simpleframework.transport.trace.Trace


    */
   private void accept() throws IOException {
      SocketChannel channel = listener.accept();
     
      while(channel != null) {     
         Trace trace = agent.attach(channel);
        
         configure(channel);

         if(context == null) {
            process(channel, trace, null);
View Full Code Here


    * @param channel this is the channel to associate with the trace
    *
    * @return this returns a trace associated with the channel
    */
   public Trace attach(SocketChannel channel) {
      Trace trace = null;
     
      if(agent != null) {
         trace = agent.attach(channel);
      }
      return new SocketTrace(trace);
View Full Code Here

   }
  
   private static class MockAgent implements Agent {

      public Trace attach(SocketChannel channel) {
         return new Trace() {
            public void trace(Object event) {
               trace(event, "");
            }
            public void trace(Object event, Object value) {
               if(value != null && !String.valueOf(value).isEmpty()) {
View Full Code Here

            throw new IllegalStateException("Can't attach twice");
         }
         final int counter = count.getAndIncrement();
         map.put(channel, counter);
        
         return new Trace() {
           
            public void trace(Object event) {
               trace(event, "");
            }
           
View Full Code Here

TOP

Related Classes of org.simpleframework.transport.trace.Trace

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.