Java org.springframework.mock.web.test MockHttpServletRequest fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.mock.web.test MockHttpServletRequest fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.mock.web.test MockHttpServletRequest.

The text is from its open source code.

Constructor

MockHttpServletRequest()
Create a new MockHttpServletRequest with a default MockServletContext .

Method

voidaddHeader(String name, Object value)
Add an HTTP header entry for the given name.
voidaddParameter(String name, @Nullable String value)
Add a single value for the specified HTTP parameter.
voidaddParameter(String name, String... values)
Add an array of values for the specified HTTP parameter.
voidsetContentType(@Nullable String contentType)
voidsetMethod(@Nullable String method)