-
- All Superinterfaces:
HttpHandler
- All Known Implementing Classes:
FileHandler,RedirectHandler,SSEHandler
public interface SimpleHttpHandler extends HttpHandler
A simplified implementation ofHttpHandler. It is used to processSimpleHttpExchanges. Each handler is its own thread and will not reveal any exceptions unless a try-catch within the handler is used.- Since:
- 02.00.00
- Version:
- 03.03.00
- Author:
- Ktt Development
- See Also:
HttpHandler,SimpleHttpExchange
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidhandle(SimpleHttpExchange exchange)Handlers the given request and generates a response if no exceptions occur.default voidhandle(HttpExchange exchange)Encapsulates thehandle(SimpleHttpExchange)for the authenticator.
-
-
-
Method Detail
-
handle
default void handle(HttpExchange exchange) throws IOException
Encapsulates thehandle(SimpleHttpExchange)for the authenticator. This method is reserved by the server; do not override this, it will break thehandle(SimpleHttpExchange)method.- Specified by:
handlein interfaceHttpHandler- Parameters:
exchange- client information- Throws:
IOException- internal failure- Since:
- 02.00.00
-
handle
void handle(SimpleHttpExchange exchange) throws IOException
Handlers the given request and generates a response if no exceptions occur.- Parameters:
exchange- client information- Throws:
IOException- internal failure- Since:
- 02.00.00
-
-