com.byoutline.mockserver.internal.ResponseParams Maven / Gradle / Ivy
package com.byoutline.mockserver.internal;
import com.byoutline.mockserver.DefaultValues;
import com.google.auto.value.AutoValue;
import javax.annotation.Nonnull;
import java.util.Map;
@AutoValue
public abstract class ResponseParams {
public static ResponseParams create(@Nonnull String message, boolean staticFile, @Nonnull Map headers) {
return create(DefaultValues.RESPONSE_CODE, message, staticFile, headers);
}
public static ResponseParams create(int responseCode, @Nonnull String message, boolean staticFile, @Nonnull Map headers) {
return new AutoValue_ResponseParams(responseCode, message, staticFile, headers);
}
public abstract int getResponseCode();
@Nonnull
public abstract String getMessage();
public abstract boolean isStaticFile();
@Nonnull
public abstract Map getHeaders();
}