Class MockMvcResponse
java.lang.Object
com.atlassian.oai.validator.mockmvc.MockMvcResponse
- All Implemented Interfaces:
Response
-
Constructor Summary
ConstructorsConstructorDescriptionMockMvcResponse(org.springframework.mock.web.MockHttpServletResponse originalResponse) 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.Response
getContentType, getHeaderValue, getResponseBody
-
Constructor Details
-
MockMvcResponse
@Deprecated public MockMvcResponse(@Nonnull org.springframework.mock.web.MockHttpServletResponse originalResponse) Deprecated.
-
-
Method Details
-
getStatus
public int getStatus() -
getBody
-
getHeaderValues
- Specified by:
getHeaderValuesin interfaceResponse
-
of
@Nonnull public static Response of(@Nonnull org.springframework.mock.web.MockHttpServletResponse originalResponse) Builds aResponsefor the OpenAPI validator out of the originalMockHttpServletResponse.- Parameters:
originalResponse- the originalMockHttpServletResponse
-
MockMvcRequest.of(MockHttpServletRequest)