org.mortbay.jetty.servlet
public class ServletHttpContext extends HttpContext
Version: $Id: ServletHttpContext.java,v 1.27 2005/04/13 16:30:47 janb Exp $
Constructor Summary | |
---|---|
ServletHttpContext() Constructor. |
Method Summary | |
---|---|
void | addLocaleEncoding(String locale, String encoding) |
ServletHolder | addServlet(String pathSpec, String className) Add a servlet to the context.
|
ServletHolder | addServlet(String name, String pathSpec, String className) Add a servlet to the context.
|
boolean | checkSecurityConstraints(String pathInContext, HttpRequest request, HttpResponse response) |
void | destroy() |
protected void | doStop() |
Object | enterContextScope(HttpRequest request, HttpResponse response) |
String | getLocaleEncoding(Locale locale)
Get the character encoding for a locale. |
ServletContext | getServletContext() |
ServletHandler | getServletHandler() Get the context ServletHandler.
|
protected boolean | jSecurityCheck(String pathInContext, HttpRequest request, HttpResponse response) |
void | sendError(HttpResponse response, int code, String msg) |
String | toString() |
Parameters: pathSpec The pathspec within the context className The classname of the servlet.
Returns: The ServletHolder.
Throws: ClassNotFoundException InstantiationException IllegalAccessException
Parameters: name The name of the servlet. pathSpec The pathspec within the context className The classname of the servlet.
Returns: The ServletHolder.
Throws: ClassNotFoundException InstantiationException IllegalAccessException
Parameters: locale a Locale
value
Returns: a String
representing the character encoding for
the locale or null if none found.
Returns: The ServletContext.
Returns: ServletHandler