com.github.dreamhead.moco.handler
Class AbstractContentResponseHandler

java.lang.Object
  extended by com.github.dreamhead.moco.handler.AbstractResponseHandler
      extended by com.github.dreamhead.moco.handler.AbstractContentResponseHandler
All Implemented Interfaces:
ConfigApplier<ResponseHandler>, ResponseHandler
Direct Known Subclasses:
ContentHandler, MountHandler

public abstract class AbstractContentResponseHandler
extends AbstractResponseHandler


Constructor Summary
AbstractContentResponseHandler()
           
 
Method Summary
protected  java.lang.String getContentType(io.netty.handler.codec.http.FullHttpRequest request)
           
protected abstract  void writeContentResponse(io.netty.handler.codec.http.FullHttpRequest request, io.netty.buffer.ByteBuf buffer)
           
 void writeToResponse(io.netty.handler.codec.http.FullHttpRequest request, io.netty.handler.codec.http.FullHttpResponse response)
           
 
Methods inherited from class com.github.dreamhead.moco.handler.AbstractResponseHandler
apply
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractContentResponseHandler

public AbstractContentResponseHandler()
Method Detail

writeContentResponse

protected abstract void writeContentResponse(io.netty.handler.codec.http.FullHttpRequest request,
                                             io.netty.buffer.ByteBuf buffer)

writeToResponse

public void writeToResponse(io.netty.handler.codec.http.FullHttpRequest request,
                            io.netty.handler.codec.http.FullHttpResponse response)

getContentType

protected java.lang.String getContentType(io.netty.handler.codec.http.FullHttpRequest request)