Index
All Classes and Interfaces|All Packages|Serialized Form
R
- read() - Method in class com.ns.tcpframework.FixedLengthInputStream
-
Reads the next byte of data from the stream.
- register(String, RequestHandler) - Method in class com.ns.tcpframework.RouterConfig
-
Registers a new route with its corresponding request handler.
- registerVirtualHost(VirtualHostConfig) - Method in class com.ns.tcpframework.VirtualHostManager
-
Registers a virtual host configuration with this manager.
- RequestHandler - Class in com.ns.tcpframework.reqeustHandlers
-
Abstract base class for handling HTTP requests.
- RequestHandler() - Constructor for class com.ns.tcpframework.reqeustHandlers.RequestHandler
- RouteBasedHandler - Class in com.ns.tcpframework.reqeustHandlers
-
A request handler that routes requests to specific commands based on URL paths.
- RouteBasedHandler() - Constructor for class com.ns.tcpframework.reqeustHandlers.RouteBasedHandler
- RouteCommand - Interface in com.ns.tcpframework
-
Functional interface representing a command to handle HTTP requests for a specific route.
- RouterConfig - Class in com.ns.tcpframework
-
Manages the routing configuration for HTTP request dispatching.
- RouterConfig(String) - Constructor for class com.ns.tcpframework.RouterConfig
-
Constructs a RouterConfig instance with a default static file handler.
- routes - Variable in class com.ns.tcpframework.reqeustHandlers.RouteBasedHandler
-
Map of URL paths to their corresponding route commands.
- run() - Method in class com.ns.tcpframework.logger.ServerLogger
-
Main processing loop for the logger thread.
- run() - Method in class com.ns.tcpframework.logger.Stats
-
Main execution loop for the stats collector thread.
- run() - Method in class com.ns.tcpframework.TCPServer
-
Starts the server and continuously listens for incoming client connections.
- run(HTTPRequest) - Method in interface com.ns.tcpframework.RouteCommand
-
Executes the route command to process an HTTP request and generate a response.
- runTask(Socket) - Method in class com.ns.tcpframework.HTTPHandler
-
Processes the HTTP request and delegates it to the appropriate request handler.
All Classes and Interfaces|All Packages|Serialized Form