RequestMethods.
| Modifier and Type | Field and Description |
|---|---|
| private final Set | |
| private static final Map | requestMethodConditionCache
Per HTTP method cache to return ready instances from getMatchingCondition. |
| Access | Constructor and Description |
|---|---|
| public | RequestMethodsRequestCondition(RequestMethod...
0 or more HTTP request methods;
if, 0 the condition will match to every request requestMethods)Create a new instance with the given request methods. |
| private | RequestMethodsRequestCondition(Set<RequestMethod> methods)
Private constructor for internal use when combining conditions. |
| Modifier and Type | Method and Description |
|---|---|
| public RequestMethodsRequestCondition | combine(RequestMethodsRequestCondition
the condition to combine with. other)Implements org. Returns a new instance with a union of the HTTP request methods from "this" and the "other" instance. |
| public int | compareTo(RequestMethodsRequestCondition other, HttpServletRequest request)
Implements org. Returns:
|
| protected Collection | getContent()
Implements abstract org. Return the discrete items a request condition is composed of. |
| public RequestMethodsRequestCondition | Returns: the same instance if the condition is empty (unless the request method is HTTP OPTIONS), a new condition with the matched request method, ornull if there is no match or the condition is empty and the
request method is OPTIONS.the current request request)Implements org. Check if any of the HTTP request methods match the given request and return an instance that contains the matching HTTP request method only. |
| public Set | |
| protected String | getToStringInfix()
Implements abstract org. The notation to use when printing discrete items of content. |
| private RequestMethodsRequestCondition | matchPreFlight(HttpServletRequest request)
On a pre-flight request match to the would-be, actual request. |
| private RequestMethodsRequestCondition |
| methods | back to summary |
|---|---|
| private final Set<RequestMethod> methods | |
| requestMethodConditionCache | back to summary |
|---|---|
| private static final Map<String, RequestMethodsRequestCondition> requestMethodConditionCache Per HTTP method cache to return ready instances from getMatchingCondition. | |
| RequestMethodsRequestCondition | back to summary |
|---|---|
| public RequestMethodsRequestCondition(RequestMethod... requestMethods) Create a new instance with the given request methods.
| |
| RequestMethodsRequestCondition | back to summary |
|---|---|
| private RequestMethodsRequestCondition(Set<RequestMethod> methods) Private constructor for internal use when combining conditions. | |
| combine | back to summary |
|---|---|
| public RequestMethodsRequestCondition combine(RequestMethodsRequestCondition other) Implements org. Returns a new instance with a union of the HTTP request methods from "this" and the "other" instance.
| |
| compareTo | back to summary |
|---|---|
| public int compareTo(RequestMethodsRequestCondition other, HttpServletRequest request) Implements org. Returns:
It is assumed that both instances have been obtained via
| |
| getContent | back to summary |
|---|---|
| protected Collection Implements abstract org. Doc from org. Return the discrete items a request condition is composed of. For example URL patterns, HTTP request methods, param expressions, etc.
| |
| getMatchingCondition | back to summary |
|---|---|
| public RequestMethodsRequestCondition getMatchingCondition(HttpServletRequest request) Implements org. Check if any of the HTTP request methods match the given request and return an instance that contains the matching HTTP request method only.
| |
| getMethods | back to summary |
|---|---|
| public Set Returns all | |
| getToStringInfix | back to summary |
|---|---|
| protected String getToStringInfix() Implements abstract org. Doc from org. The notation to use when printing discrete items of content. For example
| |
| matchPreFlight | back to summary |
|---|---|
| private RequestMethodsRequestCondition matchPreFlight(HttpServletRequest request) On a pre-flight request match to the would-be, actual request. Hence empty conditions is a match, otherwise try to match to the HTTP method in the "Access-Control-Request-Method" header.
| |
| matchRequestMethod | back to summary |
|---|---|
private RequestMethodsRequestCondition matchRequestMethod(String httpMethodValue)
| |