Package io.muserver.murp
Class Slf4jResponseLogger
- java.lang.Object
-
- io.muserver.murp.Slf4jResponseLogger
-
- All Implemented Interfaces:
ProxyCompleteListener
public class Slf4jResponseLogger extends java.lang.Object implements ProxyCompleteListener
A listener that logs the results of proxying to slf4j which can be added withReverseProxyBuilder.addProxyCompleteListener(ProxyCompleteListener)- Version:
- 1.0
- Author:
- Daniel Flower
-
-
Constructor Summary
Constructors Constructor Description Slf4jResponseLogger()Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonComplete(io.muserver.MuRequest clientRequest, io.muserver.MuResponse clientResponse, java.net.URI targetUri, long durationMillis)Called after the response has been sent to the client, whether successful or not
-
-
-
Method Detail
-
onComplete
public void onComplete(io.muserver.MuRequest clientRequest, io.muserver.MuResponse clientResponse, java.net.URI targetUri, long durationMillis)Called after the response has been sent to the client, whether successful or not- Specified by:
onCompletein interfaceProxyCompleteListener- Parameters:
clientRequest- The original request from the clientclientResponse- The response sent to the clienttargetUri- The URI that this request was proxied todurationMillis- The time in millis from when the reverse proxy received the request until the client request was sent.
-
-