Class WebOperationRequestPredicate
- java.lang.Object
- org.springframework.boot.actuate.endpoint.web.WebOperationRequestPredicate
public final class WebOperationRequestPredicate extends Object
A predicate for a request to an operation on a web endpoint.- Since:
- 2.0.0
Constructor Summary
Constructors Constructor Description WebOperationRequestPredicate(String path, WebEndpointHttpMethod httpMethod, Collection<String> consumes, Collection<String> produces)
Creates a newOperationRequestPredicate
.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Collection<String>
getConsumes()
Returns the media types that the operation consumes.WebEndpointHttpMethod
getHttpMethod()
Returns the HTTP method for the operation.String
getPath()
Returns the path for the operation.Collection<String>
getProduces()
Returns the media types that the operation produces.int
hashCode()
String
toString()
Constructor Detail
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 Detail
getHttpMethod
public WebEndpointHttpMethod getHttpMethod()
Returns the HTTP method for the operation.- Returns:
- the HTTP method
getConsumes
public Collection<String> getConsumes()
Returns the media types that the operation consumes.- Returns:
- the consumed media types
getProduces
public Collection<String> getProduces()
Returns the media types that the operation produces.- Returns:
- the produced media types