public static class ControlAccessUsingHttpMethodsRule.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ControlAccessUsingHttpMethodsRule.Builder |
allowedMethods(List<String> allowedMethods)
The list of HTTP methods allowed for this listener.
|
ControlAccessUsingHttpMethodsRule |
build() |
ControlAccessUsingHttpMethodsRule.Builder |
copy(ControlAccessUsingHttpMethodsRule model) |
ControlAccessUsingHttpMethodsRule.Builder |
statusCode(Integer statusCode)
The HTTP status code to return when the requested HTTP method is not in the list of
allowed methods.
|
public ControlAccessUsingHttpMethodsRule.Builder allowedMethods(List<String> allowedMethods)
The list of HTTP methods allowed for this listener.
By default, you can specify only the standard HTTP methods defined in the [HTTP Method Registry](http://www.iana.org/assignments/http-methods/http-methods.xhtml). You can also see a list of supported standard HTTP methods in the Load Balancing service documentation at [Managing Rule Sets](https://docs.cloud.oracle.com/Content/Balance/Tasks/managingrulesets.htm).
Your backend application must be able to handle the methods specified in this list.
The list of HTTP methods is extensible. If you need to configure custom HTTP methods, contact [My Oracle Support](http://support.oracle.com/) to remove the restriction for your tenancy.
Example: ["GET", "PUT", "POST", "PROPFIND"]
allowedMethods
- the value to setpublic ControlAccessUsingHttpMethodsRule.Builder statusCode(Integer statusCode)
The HTTP status code to return when the requested HTTP method is not in the list of
allowed methods. The associated status line returned with the code is mapped from the
standard HTTP specification. The default value is 405 (Method Not Allowed)
.
Example: 403
statusCode
- the value to setpublic ControlAccessUsingHttpMethodsRule build()
public ControlAccessUsingHttpMethodsRule.Builder copy(ControlAccessUsingHttpMethodsRule model)
Copyright © 2016–2024. All rights reserved.