public class WebOperation extends Operation
| Constructor and Description |
|---|
WebOperation(OperationType type,
OperationInvoker operationInvoker,
boolean blocking,
OperationRequestPredicate requestPredicate,
String id)
Creates a new
WebEndpointOperation with the given type. |
| Modifier and Type | Method and Description |
|---|---|
String |
getId()
Returns the ID of the operation that uniquely identifies it within its endpoint.
|
OperationRequestPredicate |
getRequestPredicate()
Returns the predicate for requests that can be handled by this operation.
|
String |
toString() |
getInvoker, getType, isBlockingpublic WebOperation(OperationType type, OperationInvoker operationInvoker, boolean blocking, OperationRequestPredicate requestPredicate, String id)
WebEndpointOperation with the given type. The
operation can be performed using the given operationInvoker. The operation
can handle requests that match the given requestPredicate.type - the type of the operationoperationInvoker - used to perform the operationblocking - whether or not this is a blocking operationrequestPredicate - the predicate for requests that can be handled by theid - the id of the operation, unique within its endpoint operationpublic OperationRequestPredicate getRequestPredicate()
public String getId()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.