Class ConsoleHttpAccessLogger
- java.lang.Object
-
- com.github.toolarium.network.server.logger.impl.ConsoleHttpAccessLogger
-
- All Implemented Interfaces:
IHttpAccessLogger
public class ConsoleHttpAccessLogger extends java.lang.Object implements IHttpAccessLogger
Implements the http access logger
-
-
Constructor Summary
Constructors Constructor Description ConsoleHttpAccessLogger()Constructor for ConsoleHttpAccessLogger
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrequestReceived(IHttpServerInformation serverInformation, IHttpRequest request)Request received notificationvoidresponseSent(IHttpServerInformation serverInformation, IHttpRequest request, IHttpResponse response)Response sent notificationvoidstart()Notification to start the http access loggervoidstop()Notification to stop the http access logger
-
-
-
Method Detail
-
start
public void start()
Description copied from interface:IHttpAccessLoggerNotification to start the http access logger- Specified by:
startin interfaceIHttpAccessLogger- See Also:
IHttpAccessLogger.start()
-
stop
public void stop()
Description copied from interface:IHttpAccessLoggerNotification to stop the http access logger- Specified by:
stopin interfaceIHttpAccessLogger- See Also:
IHttpAccessLogger.stop()
-
requestReceived
public void requestReceived(IHttpServerInformation serverInformation, IHttpRequest request)
Description copied from interface:IHttpAccessLoggerRequest received notification- Specified by:
requestReceivedin interfaceIHttpAccessLogger- Parameters:
serverInformation- the server informationrequest- the request- See Also:
IHttpAccessLogger.requestReceived(com.github.toolarium.network.server.dto.IHttpServerInformation, com.github.toolarium.network.server.dto.IHttpRequest)
-
responseSent
public void responseSent(IHttpServerInformation serverInformation, IHttpRequest request, IHttpResponse response)
Description copied from interface:IHttpAccessLoggerResponse sent notification- Specified by:
responseSentin interfaceIHttpAccessLogger- Parameters:
serverInformation- the server informationrequest- the requestresponse- the response- See Also:
IHttpAccessLogger.responseSent(com.github.toolarium.network.server.dto.IHttpServerInformation, com.github.toolarium.network.server.dto.IHttpRequest, com.github.toolarium.network.server.dto.IHttpResponse)
-
-