com.github.dreamhead.moco.handler
Class AbstractContentResponseHandler
java.lang.Object
com.github.dreamhead.moco.handler.AbstractResponseHandler
com.github.dreamhead.moco.handler.AbstractContentResponseHandler
- All Implemented Interfaces:
- ConfigApplier<ResponseHandler>, ResponseHandler
- Direct Known Subclasses:
- ContentHandler, MountHandler
public abstract class AbstractContentResponseHandler
- extends AbstractResponseHandler
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractContentResponseHandler
public AbstractContentResponseHandler()
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)