Class MockMvcRequest
java.lang.Object
com.atlassian.oai.validator.mockmvc.MockMvcRequest
- All Implemented Interfaces:
Request
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.oai.validator.model.Request
Request.Method -
Constructor Summary
ConstructorsConstructorDescriptionMockMvcRequest(org.springframework.mock.web.MockHttpServletRequest originalRequest) Deprecated. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.oai.validator.model.Request
getContentType, getHeaderValue, getRequestBody
-
Constructor Details
-
MockMvcRequest
@Deprecated public MockMvcRequest(@Nonnull org.springframework.mock.web.MockHttpServletRequest originalRequest) Deprecated.
-
-
Method Details
-
getPath
-
getMethod
-
getBody
-
getQueryParameters
- Specified by:
getQueryParametersin interfaceRequest
-
getQueryParameterValues
- Specified by:
getQueryParameterValuesin interfaceRequest
-
getHeaders
- Specified by:
getHeadersin interfaceRequest
-
getHeaderValues
- Specified by:
getHeaderValuesin interfaceRequest
-
of
@Nonnull public static Request of(@Nonnull org.springframework.mock.web.MockHttpServletRequest originalRequest) Builds aRequestfor the OpenAPI validator out of the originalMockHttpServletRequest.- Parameters:
originalRequest- the originalMockHttpServletRequest
-
of(MockHttpServletRequest)