Logo Search packages:      
Sourcecode: jetty version File versions  Download package

org::mortbay::jetty::servlet::ServletHttpContext Class Reference

Inheritance diagram for org::mortbay::jetty::servlet::ServletHttpContext:

org::mortbay::http::HttpContext org::mortbay::util::Container org::mortbay::util::LifeCycle org::mortbay::http::HttpHandler org::mortbay::util::EventProvider org::mortbay::util::LifeCycle org::mortbay::util::EventProvider org::mortbay::util::LifeCycle org::mortbay::jetty::servlet::WebApplicationContext

List of all members.


Detailed Description

ServletHttpContext. Extends HttpContext with conveniance methods for adding servlets. Enforces a single ServletHandler per context.
Version:
Id
ServletHttpContext.java,v 1.27 2005/04/13 16:30:47 janb Exp
Author:
Greg Wilkins (gregw)

Definition at line 37 of file ServletHttpContext.java.


Public Member Functions

void addClassPath (String classPath)
void addClassPaths (Resource lib)
void addEventListener (EventListener listener) throws IllegalArgumentException
synchronized void addHandler (HttpHandler handler)
synchronized void addHandler (int i, HttpHandler handler)
void addLocaleEncoding (String locale, String encoding)
void addPermission (Permission permission)
void addSecurityConstraint (String pathSpec, SecurityConstraint sc)
synchronized ServletHolder addServlet (String name, String pathSpec, String className) throws ClassNotFoundException, InstantiationException, IllegalAccessException
synchronized ServletHolder addServlet (String pathSpec, String className) throws ClassNotFoundException, InstantiationException, IllegalAccessException
void addVirtualHost (String hostname)
void addWelcomeFile (String welcomeFile)
boolean checkSecurityConstraints (String pathInContext, HttpRequest request, HttpResponse response) throws HttpException, IOException
void clearSecurityConstraints ()
void destroy ()
Object enterContextScope (HttpRequest request, HttpResponse response)
void flushCache ()
Object getAttribute (String name)
Enumeration getAttributeNames ()
Map getAttributes ()
Authenticator getAuthenticator ()
Resource getBaseResource ()
synchronized ClassLoader getClassLoader ()
String getClassPath ()
Collection getComponents ()
String getContextPath ()
String getEncodingByMimeType (String type)
Map getEncodingMap ()
String getFileClassPath () throws IllegalStateException
synchronized HttpHandler getHandler (Class handlerClass)
int getHandlerIndex (HttpHandler handler)
HttpHandler[] getHandlers ()
String[] getHosts ()
HttpConnection getHttpConnection ()
HttpContext getHttpContext ()
String getHttpContextName ()
HttpServer getHttpServer ()
String getInitParameter (String param)
Enumeration getInitParameterNames ()
String getLocaleEncoding (Locale locale)
int getMaxCachedFileSize ()
int getMaxCacheSize ()
String getMimeByExtension (String filename)
Map getMimeMap ()
String getName ()
ClassLoader getParentClassLoader ()
PermissionCollection getPermissions ()
UserRealm getRealm ()
String getRealmName ()
RequestLog getRequestLog ()
int getRequests ()
int getRequestsActive ()
int getRequestsActiveMax ()
Resource getResource (String pathInContext) throws IOException
String getResourceBase ()
ResourceMetaData getResourceMetaData (Resource resource)
int getResponses1xx ()
int getResponses2xx ()
int getResponses3xx ()
int getResponses4xx ()
int getResponses5xx ()
String[] getServerClasses ()
ServletContext getServletContext ()
synchronized ServletHandler getServletHandler ()
boolean getStatsOn ()
long getStatsOnMs ()
boolean getStopGracefully ()
String[] getSystemClasses ()
File getTempDirectory ()
String[] getVirtualHosts ()
String getWelcomeFile (Resource resource) throws IOException
String[] getWelcomeFiles ()
void handle (String pathInContext, String pathParams, HttpRequest request, HttpResponse response) throws HttpException, IOException
void handle (HttpRequest request, HttpResponse response) throws HttpException, IOException
void initialize (HttpContext context)
boolean isClassLoaderJava2Compliant ()
synchronized boolean isFailed ()
boolean isRedirectNullPath ()
synchronized boolean isStarted ()
void leaveContextScope (HttpRequest request, HttpResponse response, Object oldScope)
synchronized Class loadClass (String className) throws ClassNotFoundException
void log (HttpRequest request, HttpResponse response, int length)
synchronized void removeAttribute (String name)
void removeEventListener (EventListener listener)
synchronized void removeHandler (HttpHandler handler)
synchronized HttpHandler removeHandler (int i)
void removeVirtualHost (String hostname)
void removeWelcomeFile (String welcomeFile)
void sendError (HttpResponse response, int code, String msg) throws IOException
 ServletHttpContext ()
synchronized void setAttribute (String name, Object value)
void setAttributes (Map attributes)
void setAuthenticator (Authenticator authenticator)
void setBaseResource (Resource base)
synchronized void setClassLoader (ClassLoader loader)
void setClassLoaderJava2Compliant (boolean compliant)
void setClassPath (String classPath)
void setContextPath (String contextPathSpec)
void setEncodingMap (Map encodingMap)
void setHandlers (HttpHandler[] handlers)
void setHosts (String[] hosts) throws UnknownHostException
void setHttpContextName (String s)
void setInitParameter (String param, String value)
void setMaxCachedFileSize (int maxCachedFileSize)
void setMaxCacheSize (int maxCacheSize)
void setMimeMap (Map mimeMap)
void setMimeMapping (String extension, String type)
synchronized void setParentClassLoader (ClassLoader loader)
void setPermissions (PermissionCollection permissions)
void setRealm (UserRealm realm)
void setRealmName (String realmName)
void setRedirectNullPath (boolean b)
void setRequestLog (RequestLog log)
void setResourceBase (String resourceBase)
void setServerClasses (String[] classes)
void setStatsOn (boolean on)
void setStopGracefully (boolean graceful)
void setSystemClasses (String[] classes)
void setTempDirectory (File dir)
void setTypeEncoding (String mimeType, String encoding)
void setVirtualHosts (String[] hosts)
void setWelcomeFiles (String[] welcomes)
synchronized final void start () throws Exception
void statsReset ()
synchronized final void stop () throws InterruptedException
void stop (boolean graceful) throws InterruptedException
String toString (boolean detail)
String toString ()

Static Public Member Functions

static String canonicalContextPathSpec (String contextPathSpec)
static void sendContextError (HttpResponse response, int code, String msg) throws IOException

Static Public Attributes

static final String __ErrorHandler
static final String __fileClassPathAttr

Protected Member Functions

void addComponent (Object o)
synchronized void doStart () throws Exception
void doStop () throws Exception
void initClassLoader (boolean forceContextLoader) throws MalformedURLException, IOException
synchronized boolean isStarting ()
synchronized boolean isStopping ()
boolean jSecurityCheck (String pathInContext, HttpRequest request, HttpResponse response) throws IOException
void removeComponent (Object o)
void startHandlers () throws Exception

Package Functions

void setHttpServer (HttpServer httpServer)

Package Attributes

transient int _requests
transient int _requestsActive
transient int _requestsActiveMax
transient int _responses1xx
transient int _responses2xx
transient int _responses3xx
transient int _responses4xx
transient int _responses5xx
transient Object _statsLock = new Object[0]
transient long _statsStartedAt

Private Attributes

HashMap _localeEncodingMap = new HashMap()
ServletHandler _servletHandler = null

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index