com.aaronbedra.web.headers.XDownloadOptions Maven / Gradle / Ivy
package com.aaronbedra.web.headers;
import com.aaronbedra.web.types.Header;
import com.aaronbedra.web.types.HeaderExpectedValue;
import com.aaronbedra.web.types.HeaderName;
import lombok.AllArgsConstructor;
import lombok.Value;
import static com.aaronbedra.web.types.HeaderExpectedValue.headerExpectedValue;
import static com.aaronbedra.web.types.HeaderName.headerName;
import static lombok.AccessLevel.PRIVATE;
@Value
@AllArgsConstructor(access = PRIVATE)
public class XDownloadOptions implements Header {
HeaderName name;
HeaderExpectedValue expectedValue;
public static XDownloadOptions xDownloadOptions(HeaderName name, HeaderExpectedValue expectedValue) {
return new XDownloadOptions(name, expectedValue);
}
public static XDownloadOptions xDownloadOptions() {
return xDownloadOptions(
headerName("X-Download-Options"),
headerExpectedValue("noopen"));
}
}