Index

B C D E F G H I L M N O P R S T V W 
All Classes and Interfaces|All Packages|Serialized Form

S

send(Socket) - Method in class com.ns.tcpframework.HTTPResponse
Sends the HTTP response to the client through the provided socket.
send(Socket, String) - Method in class com.ns.tcpframework.reqeustHandlers.sse.SSEHandler
Sends a message to a specific client socket.
sendBadRequest(Socket) - Static method in class com.ns.tcpframework.HTTPErrorHandler
Sends a 400 Bad Request HTTP error response.
sendInternalError(Socket) - Static method in class com.ns.tcpframework.HTTPErrorHandler
Sends a 500 Internal Server Error HTTP error response.
sendMethodNotAllowed(Socket) - Static method in class com.ns.tcpframework.HTTPErrorHandler
Sends a 405 Method Not Allowed HTTP error response.
sendNotFound(Socket) - Static method in class com.ns.tcpframework.HTTPErrorHandler
Sends a 404 Not Found HTTP error response.
sendNotImplemented(Socket) - Static method in class com.ns.tcpframework.HTTPErrorHandler
Sends a 501 Not Implemented HTTP error response.
SERVER - Enum constant in enum class com.ns.tcpframework.logger.LogDestination
Indicates that the log message should be sent to the server-side logging system.
ServerConfig - Class in com.ns.tcpframework
Configuration container for HTTP server settings and virtual host management.
ServerConfig(String, int, Loglevel, VirtualHostConfig, Map) - Constructor for class com.ns.tcpframework.ServerConfig
Constructs a ServerConfig instance with all configuration parameters.
ServerLogger - Class in com.ns.tcpframework.logger
A singleton logger implementation that processes log messages asynchronously.
setActiveConnections(AtomicLong) - Method in class com.ns.tcpframework.logger.Stats
Sets the active connections counter to a new value.
setBody(byte[], String) - Method in class com.ns.tcpframework.HTTPResponse
Sets the body of the HTTP response and automatically updates the Content-Length and Content-Type headers.
setEnvironment(String) - Method in class com.ns.tcpframework.ServerConfig
Sets the deployment environment name.
setHeader(String, String) - Method in class com.ns.tcpframework.HTTPResponse
Sets a header for the HTTP response.
setHosts(Map) - Method in class com.ns.tcpframework.ServerConfig
Sets the map of virtual host configurations.
setLoglevel(Loglevel) - Method in class com.ns.tcpframework.ServerConfig
Sets the minimum log level for server logging.
setLogLevel(Loglevel) - Method in class com.ns.tcpframework.logger.ServerLogger
Updates the minimum log level for server console output.
setPort(int) - Method in class com.ns.tcpframework.ServerConfig
Sets the TCP port number for the server.
setSseHandler(SSEHandler) - Method in class com.ns.tcpframework.logger.ServerLogger
Sets or updates the SSE handler for broadcasting logs to clients.
shutdown() - Method in class com.ns.tcpframework.logger.ServerLogger
Gracefully shuts down the logger by stopping the processing loop.
SSEEvent - Enum Class in com.ns.tcpframework.reqeustHandlers.sse
Enumeration representing different types of Server-Sent Events (SSE) that can be broadcast to clients.
SSEHandler - Class in com.ns.tcpframework.reqeustHandlers.sse
Handler for Server-Sent Events (SSE) connections.
SSEHandler() - Constructor for class com.ns.tcpframework.reqeustHandlers.sse.SSEHandler
 
StaticFileHandler - Class in com.ns.tcpframework.reqeustHandlers
A request handler for serving static files from a specified root directory.
StaticFileHandler(String) - Constructor for class com.ns.tcpframework.reqeustHandlers.StaticFileHandler
Constructs a StaticFileHandler with the specified root directory.
Stats - Class in com.ns.tcpframework.logger
A singleton statistics collector that tracks server performance metrics.
Stats() - Constructor for class com.ns.tcpframework.logger.Stats
 
STATS - Enum constant in enum class com.ns.tcpframework.reqeustHandlers.sse.SSEEvent
Stats event - Used to send server statistics and performance metrics to clients.
stopServer() - Method in class com.ns.tcpframework.TCPServer
Initiates graceful shutdown of the server.
B C D E F G H I L M N O P R S T V W 
All Classes and Interfaces|All Packages|Serialized Form