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

com.github.netty.protocol.dubbo.packet.BodyResponse Maven / Gradle / Ivy

package com.github.netty.protocol.dubbo.packet;

import com.github.netty.protocol.dubbo.Body;

import java.util.Map;

public class BodyResponse extends Body {
    private final Object value;
    private final Object throwable;
    private final Map attachments;

    public BodyResponse(Object value, Object throwable, Map attachments) {
        this.value = value;
        this.throwable = throwable;
        this.attachments = attachments;
    }

    public Map getAttachments() {
        return attachments;
    }

    public Object getValue() {
        return value;
    }

    public Object getThrowable() {
        return throwable;
    }

    @Override
    public String toString() {
        return "BodyResponse{" +
                "\n\tvalue=" + value +
                ",\n\tthrowable=" + throwable +
                ",\n\tattachments=" + attachments +
                "\n}";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy