package io.netty.handler.codec.stomp;

import g.a.a.a.a;
import io.netty.handler.codec.DecoderResult;
import java.util.Objects;
import kotlinx.serialization.json.internal.AbstractJsonLexerKt;

/* JADX INFO: loaded from: classes.dex */
public class DefaultStompHeadersSubframe implements StompHeadersSubframe {
    public final StompCommand command;
    public DecoderResult decoderResult;
    public final DefaultStompHeaders headers;

    public DefaultStompHeadersSubframe(StompCommand stompCommand) {
        this(stompCommand, null);
    }

    public DefaultStompHeadersSubframe(StompCommand stompCommand, DefaultStompHeaders defaultStompHeaders) {
        this.decoderResult = DecoderResult.SUCCESS;
        Objects.requireNonNull(stompCommand, "command");
        this.command = stompCommand;
        this.headers = defaultStompHeaders == null ? new DefaultStompHeaders() : defaultStompHeaders;
    }

    @Override // io.netty.handler.codec.stomp.StompHeadersSubframe
    public StompCommand command() {
        return this.command;
    }

    @Override // io.netty.handler.codec.DecoderResultProvider
    public DecoderResult decoderResult() {
        return this.decoderResult;
    }

    @Override // io.netty.handler.codec.stomp.StompHeadersSubframe
    public StompHeaders headers() {
        return this.headers;
    }

    @Override // io.netty.handler.codec.DecoderResultProvider
    public void setDecoderResult(DecoderResult decoderResult) {
        this.decoderResult = decoderResult;
    }

    public String toString() {
        StringBuilder sbF = a.F("StompFrame{command=");
        sbF.append(this.command);
        sbF.append(", headers=");
        sbF.append(this.headers);
        sbF.append(AbstractJsonLexerKt.END_OBJ);
        return sbF.toString();
    }
}
