public class MockRequestMatcher extends Object
| Constructor and Description |
|---|
MockRequestMatcher(MockResponseProvider response) |
public MockRequestMatcher(MockResponseProvider response)
public MockResponseProvider respond()
public MockRequestMatcher from(String from)
public MockRequestMatcher method(String... methods)
public MockRequestMatcher pathInfo(String pathInfo)
public MockRequestMatcher requestURI(String requestURI)
public MockRequestMatcher requestUrl(String requestUrl)
public MockRequestMatcher header(String name, String value)
public MockRequestMatcher header(String name, org.hamcrest.Matcher matcher)
public MockRequestMatcher cookie(javax.servlet.http.Cookie cookie)
public MockRequestMatcher attribute(String name, Object value)
public MockRequestMatcher queryParam(String name, String value)
public MockRequestMatcher formParam(String name, String... values)
public MockRequestMatcher content(String string, Charset charset)
public MockRequestMatcher content(byte[] entity)
public MockRequestMatcher content(URL url) throws IOException
IOExceptionpublic MockRequestMatcher content(InputStream stream) throws IOException
IOExceptionpublic MockRequestMatcher contentType(String contentType)
public MockRequestMatcher contentLength(int length)
public MockRequestMatcher characterEncoding(String charset)
public void match(javax.servlet.http.HttpServletRequest request)
throws IOException
IOExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.