com.github.dreamhead.moco.monitor
Class LogMonitor

java.lang.Object
  extended by com.github.dreamhead.moco.monitor.LogMonitor
All Implemented Interfaces:
MocoMonitor

public class LogMonitor
extends java.lang.Object
implements MocoMonitor


Constructor Summary
LogMonitor(LogFormatter formatter, LogWriter writer)
           
 
Method Summary
 void onException(java.lang.Exception e)
           
 void onMessageArrived(HttpRequest request)
           
 void onMessageLeave(io.netty.handler.codec.http.FullHttpResponse response)
           
 void onUnexpectedMessage(HttpRequest request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogMonitor

public LogMonitor(LogFormatter formatter,
                  LogWriter writer)
Method Detail

onMessageArrived

public void onMessageArrived(HttpRequest request)
Specified by:
onMessageArrived in interface MocoMonitor

onException

public void onException(java.lang.Exception e)
Specified by:
onException in interface MocoMonitor

onMessageLeave

public void onMessageLeave(io.netty.handler.codec.http.FullHttpResponse response)
Specified by:
onMessageLeave in interface MocoMonitor

onUnexpectedMessage

public void onUnexpectedMessage(HttpRequest request)
Specified by:
onUnexpectedMessage in interface MocoMonitor