public static class CorsAssertion.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CorsAssertion.Builder |
allowCredentials()
Set expectation of value for the HTTP Header to .
|
CorsAssertion.Builder |
allowCredentials(boolean allowCredentials)
Set expectation of value for the HTTP Header to .
|
CorsAssertion.Builder |
allowCredentials(String accessControlAllowCredentials) |
CorsAssertion.Builder |
allowMethods(HttpMethod method) |
CorsAssertion.Builder |
allowOrigin(String origin) |
CorsAssertion |
build() |
CorsAssertion.Builder |
maxAge(String maxAge) |
CorsAssertion.Builder |
vary(String varyValue) |
public CorsAssertion.Builder vary(String varyValue)
varyValue
- The expected value for the HTTP Header .public CorsAssertion.Builder allowCredentials(String accessControlAllowCredentials)
accessControlAllowCredentials
- The expected value for the HTTP Header .public CorsAssertion.Builder allowCredentials()
public CorsAssertion.Builder allowCredentials(boolean allowCredentials)
allowCredentials
- Set expectation of value for the HTTP Header public CorsAssertion.Builder allowOrigin(String origin)
origin
- The expected value for the HTTP Header .public CorsAssertion.Builder allowMethods(HttpMethod method)
method
- The expected value for the HTTP Header .public CorsAssertion.Builder maxAge(String maxAge)
maxAge
- The expected value for the HTTP Header .public CorsAssertion build()