Class MockServletRequest

java.lang.Object
net.datenwerke.rs.utils.mockrequest.MockServletRequest
Direct Known Subclasses:
SftpServletRequest

public class MockServletRequest extends Object
  • Constructor Details

    • MockServletRequest

      public MockServletRequest()
    • MockServletRequest

      public MockServletRequest(HttpSession session)
  • Method Details

    • getAttribute

      public Object getAttribute(String arg0)
    • getAttributeNames

      public Enumeration getAttributeNames()
    • getCharacterEncoding

      public String getCharacterEncoding()
    • getContentLength

      public int getContentLength()
    • getContentType

      public String getContentType()
    • getInputStream

      public ServletInputStream getInputStream() throws IOException
      Throws:
      IOException
    • getLocalAddr

      public String getLocalAddr()
    • getLocalName

      public String getLocalName()
    • getLocalPort

      public int getLocalPort()
    • getLocale

      public Locale getLocale()
    • getLocales

      public Enumeration getLocales()
    • getParameter

      public String getParameter(String arg0)
    • getParameterMap

      public Map getParameterMap()
    • getParameterNames

      public Enumeration getParameterNames()
    • getParameterValues

      public String[] getParameterValues(String arg0)
    • getProtocol

      public String getProtocol()
    • getReader

      public BufferedReader getReader() throws IOException
      Throws:
      IOException
    • getRealPath

      public String getRealPath(String arg0)
    • getRemoteAddr

      public String getRemoteAddr()
    • getRemoteHost

      public String getRemoteHost()
    • getRemotePort

      public int getRemotePort()
    • getRequestDispatcher

      public RequestDispatcher getRequestDispatcher(String arg0)
    • getScheme

      public String getScheme()
    • getServerName

      public String getServerName()
    • getServerPort

      public int getServerPort()
    • isSecure

      public boolean isSecure()
    • removeAttribute

      public void removeAttribute(String arg0)
    • setAttribute

      public void setAttribute(String arg0, Object arg1)
    • setCharacterEncoding

      public void setCharacterEncoding(String arg0) throws UnsupportedEncodingException
      Throws:
      UnsupportedEncodingException
    • getAuthType

      public String getAuthType()
    • getContextPath

      public String getContextPath()
    • getCookies

      public Cookie[] getCookies()
    • getDateHeader

      public long getDateHeader(String arg0)
    • getHeader

      public String getHeader(String arg0)
    • getHeaderNames

      public Enumeration getHeaderNames()
    • getHeaders

      public Enumeration getHeaders(String arg0)
    • getIntHeader

      public int getIntHeader(String arg0)
    • getMethod

      public String getMethod()
    • getPathInfo

      public String getPathInfo()
    • getPathTranslated

      public String getPathTranslated()
    • getQueryString

      public String getQueryString()
    • getRemoteUser

      public String getRemoteUser()
    • getRequestURI

      public String getRequestURI()
    • getRequestURL

      public StringBuffer getRequestURL()
    • getRequestedSessionId

      public String getRequestedSessionId()
    • getServletPath

      public String getServletPath()
    • getSession

      public HttpSession getSession()
    • getSession

      public HttpSession getSession(boolean arg0)
    • getUserPrincipal

      public Principal getUserPrincipal()
    • isRequestedSessionIdFromCookie

      public boolean isRequestedSessionIdFromCookie()
    • isRequestedSessionIdFromURL

      public boolean isRequestedSessionIdFromURL()
    • isRequestedSessionIdFromUrl

      public boolean isRequestedSessionIdFromUrl()
    • isRequestedSessionIdValid

      public boolean isRequestedSessionIdValid()
    • isUserInRole

      public boolean isUserInRole(String arg0)
    • getWrapperSession

      public HttpSession getWrapperSession()
    • setWrapperSession

      public void setWrapperSession(HttpSession wrapperSession)
    • setWrapperHeaders

      public void setWrapperHeaders(HashMap<String,String> headers)
    • getAsyncContext

      public AsyncContext getAsyncContext()
    • getDispatcherType

      public DispatcherType getDispatcherType()
    • getServletContext

      public ServletContext getServletContext()
    • isAsyncStarted

      public boolean isAsyncStarted()
    • isAsyncSupported

      public boolean isAsyncSupported()
    • startAsync

      public AsyncContext startAsync() throws IllegalStateException
      Throws:
      IllegalStateException
    • startAsync

      public AsyncContext startAsync(ServletRequest arg0, ServletResponse arg1) throws IllegalStateException
      Throws:
      IllegalStateException
    • authenticate

      public boolean authenticate(HttpServletResponse arg0) throws IOException, ServletException
      Throws:
      IOException
      ServletException
    • getPart

      public Part getPart(String arg0) throws IOException, ServletException
      Throws:
      IOException
      ServletException
    • getParts

      public Collection<Part> getParts() throws IOException, ServletException
      Throws:
      IOException
      ServletException
    • login

      public void login(String arg0, String arg1) throws ServletException
      Throws:
      ServletException
    • logout

      public void logout() throws ServletException
      Throws:
      ServletException
    • getContentLengthLong

      public long getContentLengthLong()
    • changeSessionId

      public String changeSessionId()
    • upgrade

      public <T> T upgrade(Class<T> arg0) throws IOException, ServletException
      Throws:
      IOException
      ServletException