Index
All Classes and Interfaces|All Packages|Serialized Form
H
- handle(HTTPRequest) - Method in class com.ns.tcpframework.reqeustHandlers.MethodeBasedHandler
-
Handles an HTTP request by routing it to the appropriate method based on the HTTP method.
- handle(HTTPRequest) - Method in class com.ns.tcpframework.reqeustHandlers.RequestHandler
-
Processes an HTTP request and generates a response.
- handle(HTTPRequest) - Method in class com.ns.tcpframework.reqeustHandlers.RouteBasedHandler
-
Handles an HTTP request by routing it to the appropriate command.
- handle(HTTPRequest) - Method in class com.ns.tcpframework.reqeustHandlers.sse.SSEHandler
-
Not supported - SSE requires socket access.
- handle(HTTPRequest, Socket) - Method in class com.ns.tcpframework.reqeustHandlers.RequestHandler
-
Processes an HTTP request with access to the underlying socket connection.
- handle(HTTPRequest, Socket) - Method in class com.ns.tcpframework.reqeustHandlers.sse.SSEHandler
-
Handles an SSE connection request by establishing a persistent event stream.
- handle(Socket, ExecutorService) - Method in class com.ns.tcpframework.HTTPHandler
-
Handles an incoming socket connection by submitting it to a thread pool for processing.
- handleDeleteRequest(HTTPRequest) - Method in class com.ns.tcpframework.reqeustHandlers.MethodeBasedHandler
-
Handles HTTP DELETE requests.
- handleException(Socket, Exception) - Static method in class com.ns.tcpframework.HTTPErrorHandler
-
Handles an exception by mapping it to the appropriate HTTP error response.
- handleGetRequest(HTTPRequest) - Method in class com.ns.tcpframework.reqeustHandlers.MethodeBasedHandler
-
Handles HTTP GET requests.
- handleGetRequest(HTTPRequest) - Method in class com.ns.tcpframework.reqeustHandlers.StaticFileHandler
-
Handles HTTP GET requests by serving static files from the root directory.
- handleGetRequest(HTTPRequest) - Method in class com.ns.webserver.handlers.HelloWorldHandler
-
Handles HTTP GET requests by returning a simple "Hello, World!" HTML response.
- handleHeadRequest(HTTPRequest) - Method in class com.ns.tcpframework.reqeustHandlers.MethodeBasedHandler
-
Handles HTTP HEAD requests.
- handleHeadRequest(HTTPRequest) - Method in class com.ns.tcpframework.reqeustHandlers.StaticFileHandler
-
Handles HTTP HEAD requests by returning file metadata without the file contents.
- handlePostRequest(HTTPRequest) - Method in class com.ns.tcpframework.reqeustHandlers.MethodeBasedHandler
-
Handles HTTP POST requests.
- handlePutRequest(HTTPRequest) - Method in class com.ns.tcpframework.reqeustHandlers.MethodeBasedHandler
-
Handles HTTP PUT requests.
- HandlerFactory - Class in com.ns.tcpframework
-
Factory class for dynamically creating RequestHandler instances by name.
- HandlerFactory() - Constructor for class com.ns.tcpframework.HandlerFactory
- hasClients() - Method in class com.ns.tcpframework.reqeustHandlers.sse.SSEHandler
-
Checks if there are any active SSE client connections.
- hashCode() - Method in record class com.ns.webserver.models.ToDo
-
Returns a hash code value for this object.
- HEAD - Enum constant in enum class com.ns.tcpframework.HTTPMethode
-
HEAD method - Retrieves the headers for a resource without the response body.
- HEARTBEAT - Enum constant in enum class com.ns.tcpframework.reqeustHandlers.sse.SSEEvent
-
Heartbeat event - Used to keep the SSE connection alive.
- HelloWorldHandler - Class in com.ns.webserver.handlers
-
A simple example handler that returns a "Hello, World!" HTML response.
- HelloWorldHandler() - Constructor for class com.ns.webserver.handlers.HelloWorldHandler
- HTTPErrorHandler - Class in com.ns.tcpframework
-
Utility class for handling and sending HTTP error responses.
- HTTPErrorHandler() - Constructor for class com.ns.tcpframework.HTTPErrorHandler
- HTTPHandler - Class in com.ns.tcpframework
-
Handles incoming HTTP connections and delegates request processing to appropriate handlers.
- HTTPHandler(VirtualHostManager) - Constructor for class com.ns.tcpframework.HTTPHandler
-
Constructs an HTTPHandler with the specified virtual host manager.
- HTTPMethode - Enum Class in com.ns.tcpframework
-
Enumeration representing the HTTP request methods supported by the framework.
- HTTPRequest - Class in com.ns.tcpframework
-
Represents an HTTP request, encapsulating the HTTP method, path, version, headers, and body.
- HTTPRequest(HTTPMethode, String, String, Map, InputStream, String) - Constructor for class com.ns.tcpframework.HTTPRequest
-
Constructs an HTTPRequest object with the specified parameters.
- HTTPRequestParser - Class in com.ns.tcpframework
-
Utility class for parsing raw HTTP requests from socket input streams.
- HTTPRequestParser() - Constructor for class com.ns.tcpframework.HTTPRequestParser
- HTTPResponse - Class in com.ns.tcpframework
-
Represents an HTTP response, encapsulating the status code, status message, headers, and body.
- HTTPResponse(int, String) - Constructor for class com.ns.tcpframework.HTTPResponse
-
Constructs an HTTPResponse object with the specified status code and status message.
All Classes and Interfaces|All Packages|Serialized Form