public final class WebOperationRequestPredicate extends Object
Constructor and Description |
---|
WebOperationRequestPredicate(String path,
WebEndpointHttpMethod httpMethod,
Collection<String> consumes,
Collection<String> produces)
Creates a new
OperationRequestPredicate . |
Modifier and Type | Method and 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() |
public WebOperationRequestPredicate(String path, WebEndpointHttpMethod httpMethod, Collection<String> consumes, Collection<String> produces)
OperationRequestPredicate
.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 consumespublic String getPath()
public WebEndpointHttpMethod getHttpMethod()
public Collection<String> getConsumes()
public Collection<String> getProduces()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.