tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Luehe <Jan.Lu...@Sun.COM>
Subject Re: getContext() - spec interpretation
Date Wed, 30 Nov 2005 22:34:46 GMT


Mark Thomas wrote On 11/30/05 13:42,:
> Jan,
> 
> This looks good to me.
> 
> I have patches ready to go for TC4 and TC5. They are based on the 
> existing code but implement the spirit of Bill's proposed solution and 
> add handling for crossContext.
> 
> I'll give people a little longer in case they want to add to this 
> discussion and then I'll commit them.

Sounds good!

Thanks, Mark!


Jan


> 
> Mark
> 
> Jan Luehe wrote:
> 
>>I've rewritten the javadocs of getContext(), as follows:
>>
>>    /**
>>     * Returns the <code>ServletContext</code> object to which the
>>     * specified URI has been mapped.
>>     *
>>     * <p>This method allows servlets to gain access to foreign servlet
>>     * contexts deployed on the same container, from which
>>     * {@link RequestDispatcher} objects may be obtained.
>>     * A servlet context is considered foreign to a servlet if it is
>>     * different from the servlet's own servlet context.
>>     *
>>     * <p>The given URI must be begin with "/".
>>     *
>>     * <p>A security conscious servlet container may return
>>     * <code>null</code> if the specified URI maps to a foreign context.
>>     *
>>     * @param uripath The URI to map
>>     *
>>     * @return The <code>ServletContext</code> to which the given URI
>>     * has been mapped, or null if the given URI does not map to any of
>>     * the servlet contexts deployed on the container, or if the URI
>>     * maps to a foreign context and access to foreign contexts has been
>>     * disabled by the container
>>     *
>>     * @see RequestDispatcher
>>     *
>>     */
>>    public ServletContext getContext(String uripath);
>>
>>
>>If we all agree, I will send this proposal to the Servlet EG.
>>
>>
>>Thanks,
>>
>>
>>Jan
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message