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

io.github.mike10004.vhs.bmp.ImmutableHttpResponse Maven / Gradle / Ivy

There is a newer version: 0.32
Show newest version
package io.github.mike10004.vhs.bmp;

public class ImmutableHttpResponse extends ImmutableHttpMessage {

    public final int status;

    private ImmutableHttpResponse(Builder builder) {
        super(builder);
        status = builder.status;
    }

    @Override
    public String toString() {
        return toStringHelper().add("status", status).toString();
    }

    public static Builder builder(int status) {
        return new Builder(status);
    }

    public static final class Builder extends MessageBuilder {

        private final int status;

        private Builder(int status) {
            this.status = status;
        }

        public ImmutableHttpResponse build() {
            return new ImmutableHttpResponse(this);
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy