rabbit.proxy
Class StandardOutTrafficLogger
java.lang.Object
rabbit.proxy.StandardOutTrafficLogger
- All Implemented Interfaces:
- ClientTrafficLogger
public class StandardOutTrafficLogger
- extends Object
- implements ClientTrafficLogger
A simple ClientTrafficLogger that just writes simple network usage to
standard out.
- Author:
- Robert Olofsson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StandardOutTrafficLogger
public StandardOutTrafficLogger()
logTraffic
public void logTraffic(String user,
HttpHeader request,
TrafficLogger client,
TrafficLogger network,
TrafficLogger cache,
TrafficLogger proxy)
- Description copied from interface:
ClientTrafficLogger
- Log the traffic usage for the given user and request.
- Specified by:
logTraffic
in interface ClientTrafficLogger
- Parameters:
user
- the authenticated user, may be null if user is not authenticatedrequest
- the actual http request headerclient
- the traffic between the client and the proxynetwork
- the traffic between the proxy and the networkcache
- the traffic between the proxy and the cacheproxy
- the traffic generated by the proxy
setup
public void setup(SProperties properties,
HttpProxy proxy)
- Description copied from interface:
ClientTrafficLogger
- Setup this logger
- Specified by:
setup
in interface ClientTrafficLogger
- Parameters:
properties
- the SProperties to get the settings from.proxy
- the HttpProxy that is using this logger