Class HttpConnectionHandlerImpl
java.lang.Object
com.github.toolarium.network.server.handler.impl.AbstractConnectionHandler
com.github.toolarium.network.server.handler.impl.HttpConnectionHandlerImpl
- All Implemented Interfaces:
IHttpConnectionHandler,Runnable
Implements a server http connection handler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IHttpRequestbuildHttpRequest(BufferedReader reader) Build the http requestvoidinit(Socket socket, IHttpService httpService, IHttpServerInformation httpServerInformation, IHttpServerLogger httpServerLogger, IHttpAccessLogger httpAccessLogger) Initialise the connection handlervoidrun()Methods inherited from class com.github.toolarium.network.server.handler.impl.AbstractConnectionHandler
createHttpResponse, getBodyAsByteArray, getStatusLineAndHeaders, readInBody, readInFirstLine
-
Constructor Details
-
HttpConnectionHandlerImpl
public HttpConnectionHandlerImpl()
-
-
Method Details
-
init
public void init(Socket socket, IHttpService httpService, IHttpServerInformation httpServerInformation, IHttpServerLogger httpServerLogger, IHttpAccessLogger httpAccessLogger) Description copied from interface:IHttpConnectionHandlerInitialise the connection handler- Parameters:
socket- the sockethttpService- the http servicehttpServerInformation- the http server informationhttpServerLogger- the http server loggerhttpAccessLogger- the http access logger- See Also:
-
run
public void run()- See Also:
-
buildHttpRequest
Build the http request- Parameters:
reader- the reader- Returns:
- the http request
- Throws:
IOException- In case of an I/O error
-