Class MockMultipartHttpServletRequestImpl

java.lang.Object
org.springframework.mock.web.MockHttpServletRequest
org.javalite.activeweb.MockMultipartHttpServletRequestImpl
All Implemented Interfaces:
javax.servlet.http.HttpServletRequest, javax.servlet.ServletRequest

public class MockMultipartHttpServletRequestImpl extends org.springframework.mock.web.MockHttpServletRequest
Author:
Igor Polevoy
  • Field Summary

    Fields inherited from class org.springframework.mock.web.MockHttpServletRequest

    DEFAULT_PROTOCOL, DEFAULT_REMOTE_ADDR, DEFAULT_REMOTE_HOST, DEFAULT_SCHEME, DEFAULT_SERVER_ADDR, DEFAULT_SERVER_NAME, DEFAULT_SERVER_PORT

    Fields inherited from interface javax.servlet.http.HttpServletRequest

    BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    javax.servlet.AsyncContext
     
    javax.servlet.DispatcherType
     
     
     
    javax.servlet.http.Part
     
    Collection<javax.servlet.http.Part>
     
    boolean
     
    boolean
     
    javax.servlet.AsyncContext
     
    javax.servlet.AsyncContext
    startAsync​(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse)
     

    Methods inherited from class org.springframework.mock.web.MockHttpServletRequest

    addHeader, addParameter, addParameter, addParameters, addPart, addPreferredLocale, addUserRole, authenticate, changeSessionId, checkActive, clearAttributes, close, getAttribute, getAttributeNames, getAuthType, getCharacterEncoding, getContentAsByteArray, getContentAsString, getContentLength, getContentLengthLong, getContentType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getInputStream, getIntHeader, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getMethod, getParameter, getParameterMap, getParameterNames, getParameterValues, getPathInfo, getPathTranslated, getProtocol, getQueryString, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRemoteUser, getRequestDispatcher, getRequestedSessionId, getRequestURI, getRequestURL, getScheme, getServerName, getServerPort, getServletContext, getServletPath, getSession, getSession, getUserPrincipal, invalidate, isActive, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isSecure, isUserInRole, login, logout, removeAllParameters, removeAttribute, removeHeader, removeParameter, setAsyncContext, setAsyncStarted, setAsyncSupported, setAttribute, setAuthType, setCharacterEncoding, setContent, setContentType, setContextPath, setCookies, setDispatcherType, setLocalAddr, setLocalName, setLocalPort, setMethod, setParameter, setParameter, setParameters, setPathInfo, setPreferredLocales, setProtocol, setQueryString, setRemoteAddr, setRemoteHost, setRemotePort, setRemoteUser, setRequestedSessionId, setRequestedSessionIdFromCookie, setRequestedSessionIdFromURL, setRequestedSessionIdValid, setRequestURI, setScheme, setSecure, setServerName, setServerPort, setServletPath, setSession, setUserPrincipal, upgrade

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface javax.servlet.http.HttpServletRequest

    authenticate, changeSessionId, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getHttpServletMapping, getIntHeader, getMethod, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getTrailerFields, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isTrailerFieldsReady, isUserInRole, login, logout, newPushBuilder, upgrade

    Methods inherited from interface javax.servlet.ServletRequest

    getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isSecure, removeAttribute, setAttribute, setCharacterEncoding
  • Constructor Details

    • MockMultipartHttpServletRequestImpl

      public MockMultipartHttpServletRequestImpl()
  • Method Details

    • addFormItem

      public void addFormItem(FormItem item)
    • getFormItemIterator

      public Iterator<FormItem> getFormItemIterator()
    • getFormItems

      public List<FormItem> getFormItems()
    • getParts

      public Collection<javax.servlet.http.Part> getParts() throws IOException, javax.servlet.ServletException
      Specified by:
      getParts in interface javax.servlet.http.HttpServletRequest
      Overrides:
      getParts in class org.springframework.mock.web.MockHttpServletRequest
      Throws:
      IOException
      javax.servlet.ServletException
    • getPart

      public javax.servlet.http.Part getPart(String s) throws IOException, javax.servlet.ServletException
      Specified by:
      getPart in interface javax.servlet.http.HttpServletRequest
      Overrides:
      getPart in class org.springframework.mock.web.MockHttpServletRequest
      Throws:
      IOException
      javax.servlet.ServletException
    • startAsync

      public javax.servlet.AsyncContext startAsync() throws IllegalStateException
      Specified by:
      startAsync in interface javax.servlet.ServletRequest
      Overrides:
      startAsync in class org.springframework.mock.web.MockHttpServletRequest
      Throws:
      IllegalStateException
    • startAsync

      public javax.servlet.AsyncContext startAsync(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse) throws IllegalStateException
      Specified by:
      startAsync in interface javax.servlet.ServletRequest
      Overrides:
      startAsync in class org.springframework.mock.web.MockHttpServletRequest
      Throws:
      IllegalStateException
    • isAsyncStarted

      public boolean isAsyncStarted()
      Specified by:
      isAsyncStarted in interface javax.servlet.ServletRequest
      Overrides:
      isAsyncStarted in class org.springframework.mock.web.MockHttpServletRequest
    • isAsyncSupported

      public boolean isAsyncSupported()
      Specified by:
      isAsyncSupported in interface javax.servlet.ServletRequest
      Overrides:
      isAsyncSupported in class org.springframework.mock.web.MockHttpServletRequest
    • getAsyncContext

      public javax.servlet.AsyncContext getAsyncContext()
      Specified by:
      getAsyncContext in interface javax.servlet.ServletRequest
      Overrides:
      getAsyncContext in class org.springframework.mock.web.MockHttpServletRequest
    • getDispatcherType

      public javax.servlet.DispatcherType getDispatcherType()
      Specified by:
      getDispatcherType in interface javax.servlet.ServletRequest
      Overrides:
      getDispatcherType in class org.springframework.mock.web.MockHttpServletRequest