T - the type of the delegate objectpublic interface Handler<T>
| Modifier and Type | Method and Description |
|---|---|
T |
getDelegate()
Get the delegate: the object contained within the handler implementation.
|
java.util.Optional<Handler<T>> |
getSuccessor()
Gets the successor in the chain.
|
void |
handleRequest()
Handle the request.
|
Handler<T> |
setSuccessor(Handler<T> successor)
Sets the next Handler in the chain.
|
void handleRequest()
T getDelegate()
java.util.Optional<Handler<T>> getSuccessor()