All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.fmjsjx.libnetty.resp.AbstractContentRespMessage Maven / Gradle / Ivy

There is a newer version: 3.7.1
Show newest version
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) + "]";
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy