Package io.javalin.mock.servlet
Class HttpServletRequestMock.RequestState
-
- All Implemented Interfaces:
public final class HttpServletRequestMock.RequestState
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description HttpServletRequestMock.RequestState(String protocol, String scheme, String serverName, Integer serverPort, String remoteAddr, String remoteHost, Boolean secure, Integer remotePort, String localName, String localAddr, Integer localPort, String realPath, String servletPath, String requestURL, String requestURI, String pathInfo, String pathTranslated, String contextPath, String queryString, Map<String, Array<String>> parameters, String method, Map<String, List<String>> headers, List<Cookie> cookies, Locale locale, String remoteUser, InputStream inputStream, Long contentLength, String contentType, String characterEncodingValue, List<Part> parts, Map<String, Object> attributes, DispatcherType dispatcherType, RequestDispatcher requestDispatcher, ServletContext servletContext, AsyncContext asyncContext, String authType, List<String> roles, Principal userPrincipal, String requestedSessionId, InMemoryHttpSession session)
-
Method Summary
Modifier and Type Method Description final HttpServletRequestMock.RequestStateaddHeader(String name, String values)final HttpServletRequestMock.RequestStateaddPart(String field, String file, ByteArray data, Consumer<InMemoryPart.PartState> partCfg)final HttpServletRequestMock.RequestStateaddPart(String field, String file, ByteArray data)-
-
Constructor Detail
-
HttpServletRequestMock.RequestState
HttpServletRequestMock.RequestState(String protocol, String scheme, String serverName, Integer serverPort, String remoteAddr, String remoteHost, Boolean secure, Integer remotePort, String localName, String localAddr, Integer localPort, String realPath, String servletPath, String requestURL, String requestURI, String pathInfo, String pathTranslated, String contextPath, String queryString, Map<String, Array<String>> parameters, String method, Map<String, List<String>> headers, List<Cookie> cookies, Locale locale, String remoteUser, InputStream inputStream, Long contentLength, String contentType, String characterEncodingValue, List<Part> parts, Map<String, Object> attributes, DispatcherType dispatcherType, RequestDispatcher requestDispatcher, ServletContext servletContext, AsyncContext asyncContext, String authType, List<String> roles, Principal userPrincipal, String requestedSessionId, InMemoryHttpSession session)
-
-
Method Detail
-
addHeader
final HttpServletRequestMock.RequestState addHeader(String name, String values)
-
addPart
@JvmOverloads() final HttpServletRequestMock.RequestState addPart(String field, String file, ByteArray data, Consumer<InMemoryPart.PartState> partCfg)
-
addPart
@JvmOverloads() final HttpServletRequestMock.RequestState addPart(String field, String file, ByteArray data)
-
-
-
-