Class CollectingNetworkTrafficListener
- java.lang.Object
-
- com.github.tomakehurst.wiremock.http.trafficlistener.CollectingNetworkTrafficListener
-
- All Implemented Interfaces:
WiremockNetworkTrafficListener
public class CollectingNetworkTrafficListener extends java.lang.Object implements WiremockNetworkTrafficListener
-
-
Constructor Summary
Constructors Constructor Description CollectingNetworkTrafficListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
closed(java.net.Socket socket)
java.lang.String
getAllRequests()
java.lang.String
getAllResponses()
void
incoming(java.net.Socket socket, java.nio.ByteBuffer bytes)
void
opened(java.net.Socket socket)
void
outgoing(java.net.Socket socket, java.nio.ByteBuffer bytes)
-
-
-
Method Detail
-
opened
public void opened(java.net.Socket socket)
- Specified by:
opened
in interfaceWiremockNetworkTrafficListener
-
incoming
public void incoming(java.net.Socket socket, java.nio.ByteBuffer bytes)
- Specified by:
incoming
in interfaceWiremockNetworkTrafficListener
-
outgoing
public void outgoing(java.net.Socket socket, java.nio.ByteBuffer bytes)
- Specified by:
outgoing
in interfaceWiremockNetworkTrafficListener
-
closed
public void closed(java.net.Socket socket)
- Specified by:
closed
in interfaceWiremockNetworkTrafficListener
-
getAllRequests
public java.lang.String getAllRequests()
-
getAllResponses
public java.lang.String getAllResponses()
-
-