FileDocCategorySizeDatePackage
DummyRequest.javaAPI DocGlassfish v2 API13568Fri May 04 22:31:54 BST 2007org.apache.catalina.core

DummyRequest

public class DummyRequest extends Object implements org.apache.catalina.HttpRequest, HttpServletRequest
Dummy request object, used for request dispatcher mapping, as well as JSP precompilation.
author
Remy Maucherat
version
$Revision: 1.5 $ $Date: 2007/05/05 05:31:54 $

Fields Summary
protected String
contextPath
protected String
decodedURI
protected String
queryString
protected String
pathInfo
protected String
servletPath
protected org.apache.catalina.Wrapper
wrapper
protected FilterChain
filterChain
protected org.apache.catalina.ValveContext
valveContext
protected boolean
checkRestrictedResources
Whether or not access to resources in WEB-INF or META-INF needs to be checked.
private String
method
private static Enumeration
dummyEnum
Constructors Summary
public DummyRequest()

    
public DummyRequest(String contextPath, String decodedURI, String queryString)

        this.contextPath = contextPath;
        this.decodedURI = decodedURI;
        this.queryString = queryString;
    
Methods Summary
public voidaddCookie(javax.servlet.http.Cookie cookie)

public voidaddHeader(java.lang.String name, java.lang.String value)

public voidaddLocale(java.util.Locale locale)

public voidaddParameter(java.lang.String name, java.lang.String[] values)

public voidclearCookies()

public voidclearHeaders()

public voidclearLocales()

public voidclearParameters()

public javax.servlet.ServletInputStreamcreateInputStream()

        return null;
    
public voidfinishRequest()

public java.lang.ObjectgetAttribute(java.lang.String name)

 return null; 
public java.util.EnumerationgetAttributeNames()

 return null; 
public java.lang.StringgetAuthType()

 return null; 
public java.lang.StringgetAuthorization()

 return null; 
public java.lang.StringgetCharacterEncoding()

 return null; 
public booleangetCheckRestrictedResources()
Return whether or not access to resources under WEB-INF or META-INF needs to be checked.


        return this.checkRestrictedResources;

    
public org.apache.catalina.ConnectorgetConnector()

 return null; 
public intgetContentLength()

 return -1; 
public java.lang.StringgetContentType()

 return null; 
public org.apache.catalina.ContextgetContext()

 return null; 
public java.lang.StringgetContextPath()


       
        return (contextPath);
    
public org.apache.tomcat.util.buf.MessageBytesgetContextPathMB()

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

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

 return -1; 
public java.lang.StringgetDecodedRequestURI()

        return decodedURI;
    
public org.apache.tomcat.util.buf.MessageBytesgetDecodedRequestURIMB()

        return null;
    
public javax.servlet.FilterChaingetFilterChain()

        return (this.filterChain);
    
public java.lang.StringgetHeader(java.lang.String name)

 return null; 
public java.util.EnumerationgetHeaderNames()

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

 return null; 
public org.apache.catalina.HostgetHost()

 return null; 
public java.lang.StringgetInfo()

 return null; 
public javax.servlet.ServletInputStreamgetInputStream()

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

 return -1; 
public java.lang.StringgetJrouteId()
Gets the jroute id of this request, which may have been sent as a separate JROUTE cookie or appended to the session identifier encoded in the URI (if cookies have been disabled).

return
The jroute id of this request, or null if this request does not carry any jroute id

        return null;
    
public java.lang.StringgetLocalAddr()

 return null; 
public java.lang.StringgetLocalName()

 return null; 
public intgetLocalPort()

 return -1; 
public java.util.LocalegetLocale()

 return null; 
public java.util.EnumerationgetLocales()

 return null; 
public java.lang.StringgetMethod()

        return this.method;
    
public java.lang.ObjectgetNote(java.lang.String name)

 return null; 
public java.util.IteratorgetNoteNames()

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

 return null; 
public java.util.MapgetParameterMap()

 return null; 
public java.util.EnumerationgetParameterNames()

 return dummyEnum; 
public java.lang.String[]getParameterValues(java.lang.String name)

 return null; 
public java.lang.StringgetPathInfo()

        return pathInfo;
    
public org.apache.tomcat.util.buf.MessageBytesgetPathInfoMB()

        return null;
    
public java.lang.StringgetPathTranslated()

 return null; 
public java.lang.StringgetProtocol()

 return null; 
public java.lang.StringgetQueryString()

        return queryString;
    
public java.io.BufferedReadergetReader()

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

 return null; 
public java.lang.StringgetRemoteAddr()

 return null; 
public java.lang.StringgetRemoteHost()

 return null; 
public intgetRemotePort()

 return -1; 
public java.lang.StringgetRemoteUser()

 return null; 
public javax.servlet.ServletRequestgetRequest()

        return (this);
    
public javax.servlet.RequestDispatchergetRequestDispatcher(java.lang.String path)

        return null;
    
public org.apache.tomcat.util.buf.MessageBytesgetRequestPathMB()

        return null;
    
public java.lang.StringgetRequestURI()

 return null; 
public java.lang.StringBuffergetRequestURL()

 return null; 
public java.lang.StringgetRequestedSessionId()

 return null; 
public org.apache.catalina.ResponsegetResponse()

 return null; 
public java.lang.StringgetScheme()

 return null; 
public java.lang.StringgetServerName()

 return null; 
public intgetServerPort()

 return -1; 
public java.lang.StringgetServletPath()

        return servletPath;
    
public org.apache.tomcat.util.buf.MessageBytesgetServletPathMB()

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

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

 return null; 
public java.net.SocketgetSocket()

 return null; 
public java.io.InputStreamgetStream()

 return null; 
public java.security.PrincipalgetUserPrincipal()

 return null; 
public org.apache.catalina.ValveContextgetValveContext()

        return (this.valveContext);
    
public org.apache.catalina.WrappergetWrapper()

        return (this.wrapper);
    
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 role)

 return false; 
public voidrecycle()

public voidremoveAttribute(java.lang.String name)

public voidremoveNote(java.lang.String name)

public voidsetAttribute(java.lang.String name, java.lang.Object value)

public voidsetAuthType(java.lang.String authType)

public voidsetAuthorization(java.lang.String authorization)

public voidsetCharacterEncoding(java.lang.String enc)

public voidsetCheckRestrictedResources(boolean check)
Set whether or not access to resources under WEB-INF or META-INF needs to be checked.


        this.checkRestrictedResources = check;

    
public voidsetConnector(org.apache.catalina.Connector connector)

public voidsetContentLength(int length)

public voidsetContentType(java.lang.String type)

public voidsetContext(org.apache.catalina.Context context)

public voidsetContextPath(java.lang.String path)

public voidsetDecodedRequestURI(java.lang.String uri)

public voidsetFilterChain(javax.servlet.FilterChain filterChain)

        this.filterChain = filterChain;
    
public voidsetHost(org.apache.catalina.Host host)

public voidsetMethod(java.lang.String method)

        this.method = method;
    
public voidsetNote(java.lang.String name, java.lang.Object value)

public voidsetPathInfo(java.lang.String path)

        pathInfo = path;
    
public voidsetProtocol(java.lang.String protocol)

public voidsetQueryString(java.lang.String query)

        queryString = query;
    
public voidsetRemoteAddr(java.lang.String remoteAddr)

public voidsetRemoteHost(java.lang.String remoteHost)

public voidsetRequestURI(java.lang.String uri)

public voidsetRequestedSessionCookie(boolean flag)

public voidsetRequestedSessionId(java.lang.String id)

public voidsetRequestedSessionURL(boolean flag)

public voidsetResponse(org.apache.catalina.Response response)

public voidsetScheme(java.lang.String scheme)

public voidsetSecure(boolean secure)

public voidsetServerName(java.lang.String name)

public voidsetServerPort(int port)

public voidsetServletPath(java.lang.String path)

        servletPath = path;
    
public voidsetSocket(java.net.Socket socket)

public voidsetStream(java.io.InputStream input)

public voidsetUserPrincipal(java.security.Principal principal)

public voidsetValveContext(org.apache.catalina.ValveContext valveContext)

        this.valveContext = valveContext;
    
public voidsetWrapper(org.apache.catalina.Wrapper wrapper)

        this.wrapper = wrapper;