Package Behavioral.ChainOfResponsibility
Class ConcreteHandlerB
java.lang.Object
Behavioral.ChainOfResponsibility.AbstractHandler
Behavioral.ChainOfResponsibility.ConcreteHandlerB
- All Implemented Interfaces:
Handler
Another concrete handler that processes different requests.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleRequest(String request) Handles the request or forwards it to the next handler.Methods inherited from class Behavioral.ChainOfResponsibility.AbstractHandler
setNext
-
Constructor Details
-
ConcreteHandlerB
public ConcreteHandlerB()Default constructor for ConcreteHandlerB.
-
-
Method Details
-
handleRequest
Description copied from interface:HandlerHandles the request or forwards it to the next handler.- Specified by:
handleRequestin interfaceHandler- Overrides:
handleRequestin classAbstractHandler- Parameters:
request- The request to handle.
-