Package Behavioral.ChainOfResponsibility
Class ConcreteHandlerA
java.lang.Object
Behavioral.ChainOfResponsibility.AbstractHandler
Behavioral.ChainOfResponsibility.ConcreteHandlerA
- All Implemented Interfaces:
Handler
A concrete handler that processes specific 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
-
ConcreteHandlerA
public ConcreteHandlerA()Default constructor for ConcreteHandlerA.
-
-
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.
-