Class WebOperationRequestPredicate
java.lang.Object
org.springframework.boot.actuate.endpoint.web.WebOperationRequestPredicate
A predicate for a request to an operation on a web endpoint.
- Since:
- 2.0.0
- Author:
- Andy Wilkinson
-
Constructor Summary
ConstructorDescriptionWebOperationRequestPredicate
(String path, WebEndpointHttpMethod httpMethod, Collection<String> consumes, Collection<String> produces) Creates a newOperationRequestPredicate
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the media types that the operation consumes.Returns the HTTP method for the operation.Returns the name of the variable used to catch all remaining path segmentsnull
.getPath()
Returns the path for the operation.Returns the media types that the operation produces.int
hashCode()
toString()
-
Constructor Details
-
WebOperationRequestPredicate
public WebOperationRequestPredicate(String path, WebEndpointHttpMethod httpMethod, Collection<String> consumes, Collection<String> produces) Creates a newOperationRequestPredicate
.- Parameters:
path
- the path for the operationhttpMethod
- the HTTP method that the operation supportsproduces
- the media types that the operation producesconsumes
- the media types that the operation consumes
-
-
Method Details
-
getPath
Returns the path for the operation.- Returns:
- the path
-
getMatchAllRemainingPathSegmentsVariable
Returns the name of the variable used to catch all remaining path segmentsnull
.- Returns:
- the variable name
- Since:
- 2.2.0
-
getHttpMethod
Returns the HTTP method for the operation.- Returns:
- the HTTP method
-
getConsumes
Returns the media types that the operation consumes.- Returns:
- the consumed media types
-
getProduces
Returns the media types that the operation produces.- Returns:
- the produced media types
-
equals
-
hashCode
public int hashCode() -
toString
-