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(HttpRequest request)
           
protected abstract  void writeContentResponse(HttpRequest request, io.netty.buffer.ByteBuf buffer)
           
 void writeToResponse(SessionContext context)
           
 
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(HttpRequest request,
                                             io.netty.buffer.ByteBuf buffer)

writeToResponse

public void writeToResponse(SessionContext context)

getContentType

protected java.lang.String getContentType(HttpRequest request)