Class WebHandler
java.lang.Object
de.craftsblock.craftsnet.api.http.WebHandler
- All Implemented Interfaces:
HttpHandler
Handles HTTP requests and routes them to the appropriate handlers based on the registered routes.
- Since:
- 3.0.1-SNAPSHOT
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(HttpExchange httpExchange) Handles incoming HTTP requests and delegates them to the appropriate handlers.
-
Constructor Details
-
WebHandler
Constructs a new instance of the WebHandler- Parameters:
craftsNet- The CraftsNet instance which instantiates this web handler.
-
-
Method Details
-
handle
Handles incoming HTTP requests and delegates them to the appropriate handlers.- Specified by:
handlein interfaceHttpHandler- Parameters:
httpExchange- The HTTP exchange object representing the incoming request and outgoing response.- Throws:
IOException- If an I/O error occurs during request processing.
-