Method Summary |
|
public void | addErrorPage(Object aKey, String aURI) Adds an Error-Page to this Peer. |
public void | addFilterHolder(JoFilterHolder filterHolder) Adds a
JoFilterHolder to this context. |
public void | addLocaleEncoding(Locale locale, String encoding) |
public void | addMimeType(String anExtension, String aMimeType) Adds a mime type mapping to this peer. |
public void | addResourceLoader(Locale aLocale, URL aResourceRoot) Adds a localized document root. |
public boolean | addSecurityConstraint(I_JoSecurityConstraint aSecurityConstraint) Adds a the security-constraint. |
public void | addSecurityRole(I_JoSecurityRole aRole) Adds a security-role to this peer. |
public void | addServletFilterMapping(String servletName, String filterName) |
public void | addServletMapping(String aURLPattern, String aServletName) Adds a mapping to this context. |
public void | addServletModel(I_JoServletModel aModel) Adds a
I_JoServletModel to this context. |
public void | addTagLib(JoTagLib aTagLib) Adds a TagLib. |
public void | addURLPatternFilterMapping(String urlPattern, String filterName) |
public void | addWelcomeFile(String aFilename) Adds a welcomefile. |
public void | authentificate(I_JoServletRequest aRequest, I_JoServletResponse aResponse) Authentificates this request. |
public void | destroy() Destroys all servlets and clears internal datastructures. |
public Iterator | filterHolders() |
public Object | getAttribute(String name) Returns an attribute of this context. |
public Enumeration | getAttributeNames() Returns an enumeration of the attribute names. |
public boolean | getAutoInternationalization() Returns the value for auto-internationalization. |
public String | getAutoMapping() Returns the set automapping. |
public I_JoServletContextPeerBuilder | getBuilder() Gets the Builder for this peer. |
public ClassLoader | getClassLoader() Returns a classloader for servlets. |
public String | getContextPath() |
public I_JoServletModel | getDefaultModel() Returns the default model. |
public String | getDescription() Returns optional description. |
public String | getDisplayName() Returns the display name. |
public String | getEncoding(Locale locale) |
public String | getErrorPage(Object aKey) Returns an Error-Page for a key. |
public I_JoFileTransferCompression | getFileTransferCompression() Returns the FileTransferCompression. |
public JoFilterChain | getFilterChain(I_JoServletRequest request, String uri) |
public I_JoHost | getHost() Returns the host of this peer. |
public JoIcon | getIcon() Returns the icon. |
public String | getInitParameter(String name) Returns a String containing the value of the named
context-wide initialization parameter, or null if the
parameter does not exist.
This method can make available configuration information useful
to an entire "web application". |
public Enumeration | getInitParameterNames() Returns the names of the context's initialization parameters as an
Enumeration of String objects, or an
empty Enumeration if the context has no initialization
parameters. |
public JspEngine | getJspEngine() Returns the JspEngine. |
public ListenerSupport | getListenerSupport() |
public I_JoLoginConfig | getLoginConfig() Returns the login-config. |
public int | getMaxSessions() Returns the maximum number of sessions. |
public String | getMimeType(String aFilename) Returns a mime type for a pathname. |
public String | getName() Returns the name of this contextpeer. |
public I_JoServletModel | getNamedServletModel(String aName) Returns a named
I_JoServletModel if it exists. |
public String | getRealPath(String path) Converts a virtual path into a real path. |
final public URL | getResource(String aURI, URLClassLoader aResourceLoader) Returns teh URL of an resource using the givem classloader. |
public URL | getResource(String aURI) Returns the URL-object of a resource using the resourceloader of this
contextpeer. |
public URL | getResource(String aURI, Locale aLocale) Returns the URL of the server's resource. |
public URLClassLoader | getResourceLoader(Locale aLocale) Gets a localized resourceloader. |
public URLClassLoader | getResourceLoader() Gets a standard resourceloader. |
public I_JoSecurityConstraint | getSecurityConstraint(String aMethod, String aURI) Returns the corresponding security constraint or null
if none apply. |
public Iterator | getSecurityConstraints() Returns an Iterator for the registered security-constraints. |
public I_JoSecurityRole | getSecurityRole(String aRoleName) Gets a security-role for a RoleName. |
public I_JoServletContext | getServletContext() Returns the corresponding context. |
final public I_JoServletModel | getServletModel(I_JoServletRequest aRequest) Returns a model for a request, or null if no mapping is registered
for this particular request. |
final public I_JoServletModel | getServletModel(String aURI) Returns a model for an uri, or null if no mapping is registered
for this particular uri. |
public I_JoServletModel | getServletModel(I_JoServletRequest request, String uri) Returns a
I_JoServletModel for a request/uri, or null,
if no appropriate model exists. |
public ModelMatch | getServletModel(URI uri) |
public I_JoSessionContext | getSessionContext() |
public String | getSessionCookieDomain() Returns the session cookie domain. |
public int | getSessionTimeout() Returns the session timeout in minutes. |
public boolean | getShowIndex() Returns showIndex. |
public JoTagLib | getTagLib(String anAbsURI) |
public TagLibraryInfo | getTagLibraryInfo(String anURI, String prefix, JspModel model) Gets a TagLibraryInfo object. |
public URIFilterMapper | getURIFilterMapper() |
public URIMapper | getURIMapper() Returns the URI mapper for this peer. |
public URL | getWebAppRoot() |
public boolean | hasDefaultModel() Indicates whether this peer has a default model. |
public void | init(String aName, I_JoHost aHost) |
public boolean | isAutoReloadServlets() Indicates whether servlets and JSP should be reloaded automatically. |
public boolean | isAvailable() Indicates that the peer is not started, has been destroyed or is in the
process of being destroyed. |
public boolean | isDistributable() Indicates whether the corresponding ServletContext is distributable. |
public boolean | isNoSessionCookies() Indicates whether this servlet context diallows the usage of cookies
for keeping state. |
public boolean | isRestoreSessions() |
public Set | mimeTypes() Returns a set of all registered Mime types and their extensions. |
public boolean | needsRebuild() Indicates whether a rebuild is necessary. |
public void | preloadServletModels() Loads all servlets that should be loaded on startup. |
public void | rebuild() Rebuilds the peer, if needed. |
protected void | removeAllServletMappings(I_JoServletModel model) Removes all mappings for a particular servlet. |
public void | removeAttribute(String name) Removes an attribute. |
public String | removeErrorPage(Object aKey) Removes an Error-Page from this Peer. |
public void | removeFilterHolder(String name) |
public String | removeInitParameter(String name) Removes an initparameter. |
public void | removeResourceLoader(Locale aLocale) Removes a localized resourceloader. |
public boolean | removeSecurityConstraint(I_JoSecurityConstraint aSecurityConstraint) Removes a security-constraint. |
public I_JoSecurityRole | removeSecurityRole(I_JoSecurityRole aRole) Removes a security-role from this peer. |
public void | removeServletMapping(String aURLPattern) Removes a mapping. |
public void | removeServletModel(String name) Removes a
I_JoServletModel . |
public JoTagLib | removeTagLib(String anAbsURI) |
public boolean | removeWelcomeFile(String aFilename) Removes a welcomefile. |
public Iterator | servletModels() Returns an Iterator over all registered models. |
public void | setAttribute(String name, Object value) Sets an attribute. |
public void | setAutoInternationalization(boolean anAutoInternationalization) Sets AutoInternationalization. |
public void | setAutoMapping(String anAutoMapping) Sets automapping. |
public void | setAutoReloadServlets(boolean reload) Sets whether servlets and JSP should be reloaded automatically. |
public void | setAvailable(boolean available) Indicates that the peer is not started, has been destroyed or is in the
process of being destroyed. |
public void | setBuilder(I_JoServletContextPeerBuilder builder) Sets the Builder for this peer. |
public void | setClassLoader(ClassLoader aServletClassLoader) Sets a classloader for servlets. |
public void | setContextPath(String aURIPath) Setzt den URIPath, auf den dieser Kontext gemappt wurde. |
public synchronized void | setDefaultModel(I_JoServletModel aModel) Sets the default model used for this peer. |
public void | setDescription(String aDescription) Sets optional description. |
public void | setDisplayName(String aName) Sets the display name. |
public void | setDistributable(boolean isDistributable) Sets the distributable flag. |
public void | setFileTransferCompression(I_JoFileTransferCompression aFileTransferCompression) Sets the FileTransferCompression. |
public void | setIcon(JoIcon aIcon) Sets the icon. |
public void | setInitParameter(String name, String value) Sets an initparameter. |
public void | setJspEngine(JspEngine anEngine) Sets the JspEngine. |
public void | setLoginConfig(I_JoLoginConfig aLoginConfig) Sets the Login-Config associated with this peer. |
public void | setMaxSessions(int aLimit) Sets the maximum number of sessions. |
public void | setNoSessionCookies(boolean noSessionCookies) Specifies whether this servlet context diallows the usage of cookies
for keeping state. |
public void | setRestoreSessions(boolean restore) |
public void | setSessionCookieDomain(String aDomain) Sets the session cookie domain. |
public void | setSessionTimeout(int minutes) Sets the session timeout in minutes. |
public void | setShowIndex(boolean aShowIndex) Sets showIndex. |
protected void | setTempDirectory() Makes a temp dir. |
public void | setWebAppRoot(URL baseURL) |
public void | start() Starts this peer. |
public void | startSessionContext() Starts the SessionContext. |
public String | toString() Returns a string representation of the peer (name). |
public Iterator | welcomeFiles() |