com.github.fmjsjx.libnetty.resp.AbstractContentRespMessage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of libnetty-resp Show documentation
Show all versions of libnetty-resp Show documentation
A set of some useful libraries based on netty4.1.x.
package com.github.fmjsjx.libnetty.resp;
import io.netty.buffer.ByteBuf;
/**
* The abstract implementation of the {@link RespMessage}, combines the
* {@link RespMessage} and {@link RespContent}.
*
* @param the type of the Super Class
*
* @since 1.0
*
* @author MJ Fang
*/
public abstract class AbstractContentRespMessage extends AbstractRespContent
implements RespMessage {
protected AbstractContentRespMessage(ByteBuf content) {
super(content);
}
protected AbstractContentRespMessage() {
super();
}
@Override
public String toString() {
return getClass().getSimpleName() + "[" + type() + RespCodecUtil.toString(data) + "]";
}
}