public class RequestValidationDispatcher extends AbstractHttpMockDispatcher
Decorator class that when used adds request validation to the dispatch. Request validation compares an open-api specification with the incoming request and tries to verify that the incoming request conforms to the schema. If it does not conform to the schema a 400 will be returned, otherwise the virt will continue with its regular dispatch.
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
APPLICATION_JSON |
|
static java.lang.String |
VIRT_REQUEST_VALIDATION_EXTENSION |
Constructor and description |
---|
RequestValidationDispatcher
(HttpMockDispatcher restMockDispatcher, WsdlMockRunContext mockRunContext, OpenAPI openApi, boolean isRequestValidationConfiguredToBeRunFromSpec) |
RequestValidationDispatcher
(HttpMockDispatcher restMockDispatcher, WsdlMockRunContext mockRunContext, Swagger swagger, boolean isRequestValidationConfiguredToBeRunFromSpec) |
Type Params | Return Type | Name and description |
---|---|---|
|
public MockResult |
dispatchCustomRequest(HttpServletRequest request, HttpServletResponse response, java.util.concurrent.Callable<MockResult> mockResultGetter) |
|
public MockResult |
dispatchRequest(MockRequest request, MockResponse response) |
|
public MockResult |
dispatchRequest(HttpServletRequest request, HttpServletResponse response) |
Methods inherited from class | Name |
---|---|
class AbstractHttpMockDispatcher |
dispatchDeleteRequest, dispatchGetRequest, dispatchHeadRequest, dispatchPatchRequest, dispatchPostRequest, dispatchPutRequest, dispatchRequest, getVirtTunnelServlet, setRequestRouter |
class HasMockResultsMockDispatcher |
clearResults, getMaxResults, getMockResultAt, getMockResultCount, setLogEnabled, setMaxResults |
ReadyAPI functional (soapui) SDK 3.56.0