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(java.lang.Object obj)
Handles the request.
|
Handler<T> |
setSuccessor(Handler<T> successor)
Sets the next Handler in the chain.
|
void handleRequest(java.lang.Object obj)
obj
- parameter for handling the requestT getDelegate()
java.util.Optional<Handler<T>> getSuccessor()