FileDocCategorySizeDatePackage
HttpServletRequestMock.javaAPI DocExample6044Mon Jul 23 13:26:38 BST 2007org.apache.struts2.portlet.util

HttpServletRequestMock

public class HttpServletRequestMock extends Object implements HttpServletRequest
A simple mock class to interact with Struts 2 API's that require a servlet request

Fields Summary
private String
servletPath
private Map
parameterMap
Constructors Summary
Methods Summary
public java.lang.ObjectgetAttribute(java.lang.String arg0)

        return null;
    
public java.util.EnumerationgetAttributeNames()

        return null;
    
public java.lang.StringgetAuthType()

        return null;
    
public java.lang.StringgetCharacterEncoding()

        return null;
    
public intgetContentLength()

        return 0;
    
public java.lang.StringgetContentType()

        return null;
    
public java.lang.StringgetContextPath()

        return null;
    
public javax.servlet.http.Cookie[]getCookies()

        return null;
    
public longgetDateHeader(java.lang.String arg0)

        return 0;
    
public java.lang.StringgetHeader(java.lang.String arg0)

        return null;
    
public java.util.EnumerationgetHeaderNames()

        return null;
    
public java.util.EnumerationgetHeaders(java.lang.String arg0)

        return null;
    
public javax.servlet.ServletInputStreamgetInputStream()

        return null;
    
public intgetIntHeader(java.lang.String arg0)

        return 0;
    
public java.lang.StringgetLocalAddr()

        return null;
    
public java.lang.StringgetLocalName()

        return null;
    
public intgetLocalPort()

        return 0;
    
public java.util.LocalegetLocale()

        return null;
    
public java.util.EnumerationgetLocales()

        return null;
    
public java.lang.StringgetMethod()

        return null;
    
public java.lang.StringgetParameter(java.lang.String arg0)

        return null;
    
public java.util.MapgetParameterMap()

        return parameterMap;
    
public java.util.EnumerationgetParameterNames()

        return null;
    
public java.lang.String[]getParameterValues(java.lang.String arg0)

        return null;
    
public java.lang.StringgetPathInfo()

        return null;
    
public java.lang.StringgetPathTranslated()

        return null;
    
public java.lang.StringgetProtocol()

        return null;
    
public java.lang.StringgetQueryString()

        return null;
    
public java.io.BufferedReadergetReader()

        return null;
    
public java.lang.StringgetRealPath(java.lang.String arg0)

        return null;
    
public java.lang.StringgetRemoteAddr()

        return null;
    
public java.lang.StringgetRemoteHost()

        return null;
    
public intgetRemotePort()

        return 0;
    
public java.lang.StringgetRemoteUser()

        return null;
    
public javax.servlet.RequestDispatchergetRequestDispatcher(java.lang.String arg0)

        return null;
    
public java.lang.StringgetRequestURI()

        return null;
    
public java.lang.StringBuffergetRequestURL()

        return null;
    
public java.lang.StringgetRequestedSessionId()

        return null;
    
public java.lang.StringgetScheme()

        return null;
    
public java.lang.StringgetServerName()

        return null;
    
public intgetServerPort()

        return 0;
    
public java.lang.StringgetServletPath()

        return servletPath;
    
public javax.servlet.http.HttpSessiongetSession()

        return null;
    
public javax.servlet.http.HttpSessiongetSession(boolean arg0)

        return null;
    
public java.security.PrincipalgetUserPrincipal()

        return null;
    
public booleanisRequestedSessionIdFromCookie()

        return false;
    
public booleanisRequestedSessionIdFromURL()

        return false;
    
public booleanisRequestedSessionIdFromUrl()

        return false;
    
public booleanisRequestedSessionIdValid()

        return false;
    
public booleanisSecure()

        return false;
    
public booleanisUserInRole(java.lang.String arg0)

        return false;
    
public voidremoveAttribute(java.lang.String arg0)

    
public voidsetAttribute(java.lang.String arg0, java.lang.Object arg1)

    
public voidsetCharacterEncoding(java.lang.String arg0)


    
public org.apache.struts2.portlet.util.HttpServletRequestMocksetParameterMap(java.util.Map parameterMap)

param
parameterMap the parameterMap to set

        this.parameterMap = parameterMap;
        return this;
    
public org.apache.struts2.portlet.util.HttpServletRequestMocksetServletPath(java.lang.String servletPath)

param
servletPath the servletPath to set

        this.servletPath = servletPath;
        return this;