Example usage for Java org.springframework.mock.web MockMultipartHttpServletRequest fields, constructors, methods, implement or subclass
The text is from its open source code.
MockMultipartHttpServletRequest() Create a new MockMultipartHttpServletRequest with a default MockServletContext . |
void | addFile(MultipartFile file) Add a file to this request. |
void | addHeader(String name, Object value) Add an HTTP header entry for the given name. |
void | addParameter(String name, @Nullable String value) Add a single value for the specified HTTP parameter. |
MultipartFile | getFile(String name) |
Map | getFileMap() |
Iterator | getFileNames() |
HttpSession | getSession() |
void | setAttribute(String name, @Nullable Object value) |
void | setCharacterEncoding(@Nullable String characterEncoding) |
void | setContent(@Nullable byte[] content) Set the content of the request body as a byte array. |
void | setContentType(@Nullable String contentType) |
void | setMethod(@Nullable String method) |
void | setParameter(String name, String value) Set a single value for the specified HTTP parameter. |
void | setRemoteUser(@Nullable String remoteUser) |
void | setRequestURI(@Nullable String requestURI) |