public class ServeEvent
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static com.google.common.base.Predicate<ServeEvent> |
NOT_MATCHED |
static com.google.common.base.Function<ServeEvent,LoggedRequest> |
TO_LOGGED_REQUEST |
Constructor and Description |
---|
ServeEvent(LoggedRequest request,
StubMapping stubMapping,
ResponseDefinition responseDefinition) |
ServeEvent(java.util.UUID id,
LoggedRequest request,
StubMapping stubMapping,
ResponseDefinition responseDefinition,
LoggedResponse response,
boolean ignoredReadOnly,
Timing timing) |
public static final com.google.common.base.Function<ServeEvent,LoggedRequest> TO_LOGGED_REQUEST
public static final com.google.common.base.Predicate<ServeEvent> NOT_MATCHED
public ServeEvent(java.util.UUID id, LoggedRequest request, StubMapping stubMapping, ResponseDefinition responseDefinition, LoggedResponse response, boolean ignoredReadOnly, Timing timing)
public ServeEvent(LoggedRequest request, StubMapping stubMapping, ResponseDefinition responseDefinition)
public static ServeEvent forUnmatchedRequest(LoggedRequest request)
public static ServeEvent forBadRequest(LoggedRequest request, Errors errors)
public static ServeEvent forBadRequestEntity(LoggedRequest request, Errors errors)
public static ServeEvent forNotAllowedRequest(LoggedRequest request, Errors errors)
public static ServeEvent of(LoggedRequest request, ResponseDefinition responseDefinition)
public static ServeEvent of(LoggedRequest request, ResponseDefinition responseDefinition, StubMapping stubMapping)
public ServeEvent complete(Response response, int processTimeMillis, DataTruncationSettings dataTruncationSettings)
public void afterSend(int responseSendTimeMillis)
public boolean isNoExactMatch()
public java.util.UUID getId()
public LoggedRequest getRequest()
public ResponseDefinition getResponseDefinition()
public boolean getWasMatched()
public StubMapping getStubMapping()
public LoggedResponse getResponse()
public Timing getTiming()
public java.util.List<PostServeActionDefinition> getPostServeActions()