Class DefaultRoute
java.lang.Object
de.craftsblock.craftsnet.api.http.builtin.DefaultRoute
- All Implemented Interfaces:
Handler,RequestHandler
Represents a default route handler implementation.
This class provides a default route for handling GET requests.
- Since:
- 3.0.3-SNAPSHOT
-
Method Summary
Modifier and TypeMethodDescriptionstatic DefaultRouteReturns the singleton instance ofDefaultRoute.voidhandleDefault(Exchange exchange) Handles the default GET request.
-
Method Details
-
handleDefault
Handles the default GET request.- Parameters:
exchange- The exchange object representing the HTTP request and response.- Throws:
IOException- If an I/O error occurs while handling the request.Exception
-
getInstance
Returns the singleton instance ofDefaultRoute.- Returns:
- The single instance of
DefaultRoute. - Since:
- 3.3.3-SNAPSHOT
-