If the context init parameter "org.mortbay.jetty.servlet.ManagedAttributes" is set to a coma separated list of names, then they are treated as context attribute names, which if set as attributes are passed to the servers Container so that they may be managed with JMX.
| Modifier and Type | Class and Description |
|---|---|
| public class | ContextHandler.
Context. |
| Modifier and Type | Field and Description |
|---|---|
| private static ThreadLocal | |
| private boolean | |
| private boolean | |
| private AttributesMap | |
| private Resource | |
| private ClassLoader | |
| private boolean | |
| private Set | |
| private Object | |
| private AttributesMap | |
| private Object | |
| private String | |
| private String | |
| private ErrorHandler | |
| private EventListener[] | |
| private Map | |
| private Map | |
| private Logger | |
| private Set | |
| private int | |
| private MimeTypes | |
| private Object | |
| private Object | |
| protected ContextHandler. | |
| private boolean | |
| private String[] | |
| private String[] | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| public | |
| protected | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void | |
| protected void | |
| protected void | |
| public boolean | Returns: the allowNullPathInfo true if /context is not redirected to /context/
|
| public Object | |
| public Enumeration | |
| public Attributes | |
| public Resource | |
| public ClassLoader | |
| public String | Returns: Returns the classLoader.Make best effort to extract a file classpath from the context classloader |
| public String[] | Returns: an array of connector names that this context will accept a request from.
|
| public String | |
| public static ContextHandler. | Returns: ServletContext implementationGet the current ServletContext implementation. |
| public String | |
| public ErrorHandler | |
| public EventListener[] | |
| public String[] | |
| public String | |
| public Enumeration | |
| public Map | |
| public String | Returns: aString representing the character encoding for
the locale or null if none found.a locale)Locale valueGet the character encoding for a locale. |
| public Logger | |
| public int | |
| public MimeTypes | |
| public Resource | |
| public String | |
| public Set | |
| public ContextHandler. | |
| public String[] | Returns: Array of virtual hosts that this context responds to. A null host name or empty array means any hostname is acceptable. Host names may be String representation of IP addresses. Host names may start with '*.' to wildcard one level of names.Get the virtual hosts for the context. |
| public String[] | Returns: The names of the files which the server should consider to be welcome files in this context.
|
| public void | handle(String
The target of the request - either a URI or a name. target, HttpServletRequest The request either as the request, HttpServletResponse Request
object or a wrapper of that request. The HttpConnection#getCurrentConnection()
method can be used access the Request object if required.The response as the response, int dispatch)Response
object or a wrapper of that request. The HttpConnection#getCurrentConnection()
method can be used access the Response object if required.Overrides org. Implements org. |
| public boolean | |
| public boolean | |
| protected boolean | |
| public boolean | |
| public synchronized Class | |
| public Resource | newResource(URL url)
Convert URL to Resource
wrapper for |
| public Resource | newResource(String url)
Convert URL to Resource
wrapper for |
| private String | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setCompactPath(boolean
True if URLs are compacted to replace multiple '/'s with a single '/' compactPath)
|
| public void | setConnectorNames(String[]
If non null, an array of connector names that this context
will accept a request from. connectors)Set the names of accepted connectors. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| private void | |
| public void | |
| public void | |
| public void | |
| public void | setServer(Server server)
Overrides org. Implements org. |
| public void | setShutdown(boolean
true if this context is accepting new requests shutdown)Implements org. |
| public void | setVirtualHosts(String[]
Array of virtual hosts that this context responds to. A
null host name or null/empty array means any hostname is acceptable.
Host names may be String representation of IP addresses. Host names may
start with '*.' to wildcard one level of names. vhosts)Set the virtual hosts for the context. |
| public void | |
| protected void | |
| public String | toString()
Overrides org. |
| __context | back to summary |
|---|---|
| private static ThreadLocal<ContextHandler. | |
| _aliases | back to summary |
|---|---|
| private boolean _aliases | |
| _allowNullPathInfo | back to summary |
|---|---|
| private boolean _allowNullPathInfo | |
| _attributes | back to summary |
|---|---|
| private AttributesMap _attributes | |
| _baseResource | back to summary |
|---|---|
| private Resource _baseResource | |
| _classLoader | back to summary |
|---|---|
| private ClassLoader _classLoader | |
| _compactPath | back to summary |
|---|---|
| private boolean _compactPath | |
| _connectors | back to summary |
|---|---|
| private Set<String> _connectors | |
| _contextAttributeListeners | back to summary |
|---|---|
| private Object _contextAttributeListeners | |
| _contextAttributes | back to summary |
|---|---|
| private AttributesMap _contextAttributes | |
| _contextListeners | back to summary |
|---|---|
| private Object _contextListeners | |
| _contextPath | back to summary |
|---|---|
| private String _contextPath | |
| _displayName | back to summary |
|---|---|
| private String _displayName | |
| _errorHandler | back to summary |
|---|---|
| private ErrorHandler _errorHandler | |
| _eventListeners | back to summary |
|---|---|
| private EventListener[] _eventListeners | |
| _initParams | back to summary |
|---|---|
| private Map<String, String> _initParams | |
| _localeEncodingMap | back to summary |
|---|---|
| private Map<String, String> _localeEncodingMap | |
| _logger | back to summary |
|---|---|
| private Logger _logger | |
| _managedAttributes | back to summary |
|---|---|
| private Set<String> _managedAttributes | |
| _maxFormContentSize | back to summary |
|---|---|
| private int _maxFormContentSize | |
| _mimeTypes | back to summary |
|---|---|
| private MimeTypes _mimeTypes | |
| _requestAttributeListeners | back to summary |
|---|---|
| private Object _requestAttributeListeners | |
| _requestListeners | back to summary |
|---|---|
| private Object _requestListeners | |
| _scontext | back to summary |
|---|---|
| protected ContextHandler. | |
| _shutdown | back to summary |
|---|---|
| private boolean _shutdown | |
| _vhosts | back to summary |
|---|---|
| private String[] _vhosts | |
| _welcomeFiles | back to summary |
|---|---|
| private String[] _welcomeFiles | |
| MANAGED_ATTRIBUTES | back to summary |
|---|---|
| public static final String MANAGED_ATTRIBUTES | |
| ContextHandler | back to summary |
|---|---|
| public ContextHandler() | |
| ContextHandler | back to summary |
|---|---|
| protected ContextHandler(ContextHandler. | |
| ContextHandler | back to summary |
|---|---|
| public ContextHandler(String contextPath) | |
| ContextHandler | back to summary |
|---|---|
| public ContextHandler(HandlerContainer parent, String contextPath) | |
| addEventListener | back to summary |
|---|---|
| public void addEventListener(EventListener listener) Add a context event listeners. | |
| addLocaleEncoding | back to summary |
|---|---|
| public void addLocaleEncoding(String locale, String encoding) | |
| clearAttributes | back to summary |
|---|---|
| public void clearAttributes() Implements org. | |
| complete | back to summary |
|---|---|
| public void complete(Request request) Implements org. | |
| doStart | back to summary |
|---|---|
| protected void doStart() throws Exception | |
| doStop | back to summary |
|---|---|
| protected void doStop() throws Exception | |
| getAllowNullPathInfo | back to summary |
|---|---|
public boolean getAllowNullPathInfo()
| |
| getAttribute | back to summary |
|---|---|
| public Object getAttribute(String name) Implements org. | |
| getAttributeNames | back to summary |
|---|---|
| public Enumeration Implements org.
| |
| getAttributes | back to summary |
|---|---|
public Attributes getAttributes()
| |
| getBaseResource | back to summary |
|---|---|
public Resource getBaseResource()
| |
| getClassLoader | back to summary |
|---|---|
public ClassLoader getClassLoader()
| |
| getClassPath | back to summary |
|---|---|
| public String getClassPath() Make best effort to extract a file classpath from the context classloader
| |
| getConnectorNames | back to summary |
|---|---|
public String[] getConnectorNames()
| |
| getContextPath | back to summary |
|---|---|
public String getContextPath()
| |
| getCurrentContext | back to summary |
|---|---|
| public static ContextHandler. Get the current ServletContext implementation. This call is only valid during a call to doStart and is available to nested handlers to access the context.
| |
| getDisplayName | back to summary |
|---|---|
| public String getDisplayName() | |
| getErrorHandler | back to summary |
|---|---|
public ErrorHandler getErrorHandler()
| |
| getEventListeners | back to summary |
|---|---|
| public EventListener[] getEventListeners() | |
| getHosts | back to summary |
|---|---|
| public String[] getHosts()
Deprecated
Get the hosts for the context. | |
| getInitParameter | back to summary |
|---|---|
| public String getInitParameter(String name) | |
| getInitParameterNames | back to summary |
|---|---|
public Enumeration
| |
| getInitParams | back to summary |
|---|---|
| public Map | |
| getLocaleEncoding | back to summary |
|---|---|
| public String getLocaleEncoding(Locale locale) Get the character encoding for a locale. The full locale name is first looked up in the map of encodings. If no encoding is found, then the locale language is looked up. | |
| getLogger | back to summary |
|---|---|
| public Logger getLogger() | |
| getMaxFormContentSize | back to summary |
|---|---|
| public int getMaxFormContentSize() | |
| getMimeTypes | back to summary |
|---|---|
public MimeTypes getMimeTypes()
| |
| getResource | back to summary |
|---|---|
| public Resource getResource(String path) throws MalformedURLException | |
| getResourceBase | back to summary |
|---|---|
public String getResourceBase()
| |
| getResourcePaths | back to summary |
|---|---|
| public Set | |
| getServletContext | back to summary |
|---|---|
| public ContextHandler. | |
| getVirtualHosts | back to summary |
|---|---|
| public String[] getVirtualHosts() Get the virtual hosts for the context. Only requests that have a matching host header or fully qualified URL will be passed to that context with a virtual host name. A context with no virtual host names or a null virtual host name is available to all requests that are not served by a context with a matching virtual host name.
| |
| getWelcomeFiles | back to summary |
|---|---|
public String[] getWelcomeFiles()
| |
| handle | back to summary |
|---|---|
| public void handle(String target, HttpServletRequest request, HttpServletResponse response, int dispatch) throws IOException, ServletException Overrides org. Implements org. Doc from org. Handle a request.
| |
| isAliases | back to summary |
|---|---|
public boolean isAliases()
| |
| isCompactPath | back to summary |
|---|---|
public boolean isCompactPath()
| |
| isProtectedTarget | back to summary |
|---|---|
| protected boolean isProtectedTarget(String target) Check the target.
Called by | |
| isShutdown | back to summary |
|---|---|
public boolean isShutdown()
| |
| loadClass | back to summary |
|---|---|
| public synchronized Class | |
| newResource | back to summary |
|---|---|
| public Resource newResource(URL url) throws IOException Convert URL to Resource
wrapper for | |
| newResource | back to summary |
|---|---|
| public Resource newResource(String url) throws IOException Convert URL to Resource
wrapper for | |
| normalizeHostname | back to summary |
|---|---|
| private String normalizeHostname(String host) | |
| removeAttribute | back to summary |
|---|---|
| public void removeAttribute(String name) Implements org. | |
| setAliases | back to summary |
|---|---|
public void setAliases(boolean aliases)
| |
| setAllowNullPathInfo | back to summary |
|---|---|
public void setAllowNullPathInfo(boolean allowNullPathInfo)
| |
| setAttribute | back to summary |
|---|---|
| public void setAttribute(String name, Object value) Implements org. | |
| setAttributes | back to summary |
|---|---|
public void setAttributes(Attributes attributes)
| |
| setBaseResource | back to summary |
|---|---|
public void setBaseResource(Resource base)
| |
| setClassLoader | back to summary |
|---|---|
public void setClassLoader(ClassLoader classLoader)
| |
| setCompactPath | back to summary |
|---|---|
public void setCompactPath(boolean compactPath)
| |
| setConnectorNames | back to summary |
|---|---|
| public void setConnectorNames(String[] connectors) Set the names of accepted connectors. Names are either "host:port" or a specific configured name for a connector.
| |
| setContextPath | back to summary |
|---|---|
public void setContextPath(String contextPath)
| |
| setDisplayName | back to summary |
|---|---|
public void setDisplayName(String servletContextName)
| |
| setErrorHandler | back to summary |
|---|---|
public void setErrorHandler(ErrorHandler errorHandler)
| |
| setEventListeners | back to summary |
|---|---|
| public void setEventListeners(EventListener[] eventListeners) Set the context event listeners. | |
| setHosts | back to summary |
|---|---|
| public void setHosts(String[] hosts)
Deprecated | |
| setInitParams | back to summary |
|---|---|
| public void setInitParams(Map<String, String> initParams) | |
| setLogger | back to summary |
|---|---|
| public void setLogger(Logger logger) | |
| setManagedAttribute | back to summary |
|---|---|
| private void setManagedAttribute(String name, Object value) | |
| setMaxFormContentSize | back to summary |
|---|---|
| public void setMaxFormContentSize(int maxSize) | |
| setMimeTypes | back to summary |
|---|---|
public void setMimeTypes(MimeTypes mimeTypes)
| |
| setResourceBase | back to summary |
|---|---|
public void setResourceBase(String resourceBase)
| |
| setServer | back to summary |
|---|---|
| public void setServer(Server server) Overrides org. Implements org. | |
| setShutdown | back to summary |
|---|---|
| public void setShutdown(boolean shutdown) Implements org. Set shutdown status. This field allows for graceful shutdown of a context. A started context may be put into non accepting state so that existing requests can complete, but no new requests are accepted.
| |
| setVirtualHosts | back to summary |
|---|---|
| public void setVirtualHosts(String[] vhosts) Set the virtual hosts for the context. Only requests that have a matching host header or fully qualified URL will be passed to that context with a virtual host name. A context with no virtual host names or a null virtual host name is available to all requests that are not served by a context with a matching virtual host name.
| |
| setWelcomeFiles | back to summary |
|---|---|
| public void setWelcomeFiles(String[] files) | |
| startContext | back to summary |
|---|---|
| protected void startContext() throws Exception | |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object.
| |
Implements javax.servlet.ServletContext from the javax.servlet package.
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | addFilterMapping(String filterName, String[] urlPatterns, String[] servletNames, EnumSet<DispatcherType> dispatcherTypes, boolean isMatchAfter)
|
| public void | |
| public void | |
| public synchronized Object | getAttribute(String
a name)String specifying the name
of the attributeImplements javax. null if there is no attribute by that name.
|
| public synchronized Enumeration | getAttributeNames()
Implements javax. Enumeration containing the
attribute names available within this ServletContext.
|
| public ServletContext | getContext(String
a uripath)String specifying the context path of
another web application in the container.Implements javax. ServletContext object that
corresponds to a specified URL on the server.
|
| public ContextHandler | |
| public String | Returns: Returns the _contextPath.Implements javax. |
| public String | getInitParameter(String
a name)String containing the name of the
parameter whose value is requestedImplements javax. String containing the value of the named
context-wide initialization parameter, or null if
the parameter does not exist.
|
| public Enumeration | getInitParameterNames()
Implements javax. Enumeration of String objects, or an
empty Enumeration if the context has no initialization
parameters.
|
| public int | getMajorVersion()
Implements javax. |
| public String | getMimeType(String
a file)String specifying the name of a fileImplements javax. null if
the MIME type is not known.
|
| public int | getMinorVersion()
Implements javax. |
| public RequestDispatcher | getNamedDispatcher(String
a name)String specifying the name
of a servlet to wrapImplements javax. RequestDispatcher object that acts
as a wrapper for the named servlet.
|
| public String | getRealPath(String
the virtual path to be translated to a
real path path)Implements javax. |
| public RequestDispatcher | getRequestDispatcher(String
a uriInContext)String specifying the pathname
to the resourceImplements javax. RequestDispatcher object that acts
as a wrapper for the resource located at the given path.
|
| public URL | getResource(String
a path)String specifying
the path to the resourceImplements javax. |
| public InputStream | getResourceAsStream(String
a path)String specifying the path
to the resourceImplements javax. InputStream object.
|
| public Set | getResourcePaths(String
the partial path used to match the resources,
which must start with a / path)Implements javax. |
| public String | getServerInfo()
Implements javax. |
| public Servlet | |
| public String | getServletContextName()
Implements javax. |
| public Enumeration | |
| public Enumeration | |
| public void | log(Exception
the exception, String Exception errora msg)String that describes the exceptionImplements javax. |
| public void | log(String
a msg)String specifying the
message to be written to the log fileImplements javax. |
| public void | log(String
a message, Throwable String that
describes the error or exceptionthe throwable)Throwable error
or exceptionImplements javax. Throwable exception
to the servlet log file.
|
| public synchronized void | removeAttribute(String
a name)String specifying the name
of the attribute to be removedImplements javax. |
| public synchronized void | setAttribute(String
a name, Object String specifying the name
of the attributean value)Object representing the
attribute to be boundImplements javax. |
| public String |
| SContext | back to summary |
|---|---|
| protected SContext() | |
| addFilter | back to summary |
|---|---|
| public void addFilter(String filterName, String description, String className, Map<String, String> initParameters) | |
| addFilterMapping | back to summary |
|---|---|
| public void addFilterMapping(String filterName, String[] urlPatterns, String[] servletNames, EnumSet<DispatcherType> dispatcherTypes, boolean isMatchAfter) | |
| addServlet | back to summary |
|---|---|
| public void addServlet(String servletName, String description, String className, Map<String, String> initParameters, int loadOnStartup) | |
| addServletMapping | back to summary |
|---|---|
| public void addServletMapping(String servletName, String[] urlPatterns) | |
| getAttribute | back to summary |
|---|---|
| public synchronized Object getAttribute(String name) Implements javax. Doc from javax. Returns the servlet container attribute with the given name, or
An attribute allows a servlet container to give the
servlet additional information not
already provided by this interface. See your
server documentation for information about its attributes.
A list of supported attributes can be retrieved using
The attribute is returned as a Attribute names should follow the same convention as package
names. The Java Servlet API specification reserves names
matching | |
| getAttributeNames | back to summary |
|---|---|
| public synchronized Enumeration Implements javax. Doc from javax. Returns an Use the
| |
| getContext | back to summary |
|---|---|
| public ServletContext getContext(String uripath) Implements javax. Doc from javax. Returns a This method allows servlets to gain
access to the context for various parts of the server, and as
needed obtain In a security conscious environment, the servlet container may
return
| |
| getContextHandler | back to summary |
|---|---|
| public ContextHandler getContextHandler() | |
| getContextPath | back to summary |
|---|---|
| public String getContextPath() Implements javax. Doc from javax. Returns the context path of the web application. The context path is the portion of the request URI that is used to select the context of the request. The context path always comes first in a request URI. If this context is the "root" context rooted at the base of the Web server's URL name space, this path will be an empty string. Otherwise, if the context is not rooted at the root of the server's name space, the path starts with a / character but does not end with a / character. It is possible that a servlet container may match a context by
more than one context path. In such cases the
| |
| getInitParameter | back to summary |
|---|---|
| public String getInitParameter(String name) Implements javax. Doc from javax. Returns a This method can make available configuration information useful to an entire web application. For example, it can provide a webmaster's email address or the name of a system that holds critical data. | |
| getInitParameterNames | back to summary |
|---|---|
| public Enumeration Implements javax. Doc from javax. Returns the names of the context's initialization parameters as an
| |
| getMajorVersion | back to summary |
|---|---|
| public int getMajorVersion() Implements javax. Doc from javax. Returns the major version of the Servlet API that this servlet container supports. All implementations that comply with Version 4.0 must have this method return the integer 4.
| |
| getMimeType | back to summary |
|---|---|
| public String getMimeType(String file) Implements javax. Doc from javax. Returns the MIME type of the specified file, or | |
| getMinorVersion | back to summary |
|---|---|
| public int getMinorVersion() Implements javax. Doc from javax. Returns the minor version of the Servlet API that this servlet container supports. All implementations that comply with Version 4.0 must have this method return the integer 0.
| |
| getNamedDispatcher | back to summary |
|---|---|
| public RequestDispatcher getNamedDispatcher(String name) Implements javax. Doc from javax. Returns a Servlets (and JSP pages also) may be given names via server
administration or via a web application deployment descriptor.
A servlet instance can determine its name using
This method returns
| |
| getRealPath | back to summary |
|---|---|
| public String getRealPath(String path) Implements javax. Doc from javax. Gets the real path corresponding to the given virtual path. For example, if path is equal to /index.html, this method will return the absolute file path on the server's filesystem to which a request of the form http://<host>:<port>/<contextPath>/index.html would be mapped, where <contextPath> corresponds to the context path of this ServletContext. The real path returned will be in a form appropriate to the computer and operating system on which the servlet container is running, including the proper path separators. Resources inside the /META-INF/resources directories of JAR files bundled in the application's /WEB-INF/lib directory must be considered only if the container has unpacked them from their containing JAR file, in which case the path to the unpacked location must be returned. This method returns | |
| getRequestDispatcher | back to summary |
|---|---|
| public RequestDispatcher getRequestDispatcher(String uriInContext) Implements javax. Doc from javax. Returns a The pathname must begin with a / and is interpreted as
relative to the current context root. Use This method returns
| |
| getResource | back to summary |
|---|---|
| public URL getResource(String path) throws MalformedURLException Implements javax. Doc from javax. Returns a URL to the resource that is mapped to the given path. The path must begin with a / and is interpreted as relative to the current context root, or relative to the /META-INF/resources directory of a JAR file inside the web application's /WEB-INF/lib directory. This method will first search the document root of the web application for the requested resource, before searching any of the JAR files inside /WEB-INF/lib. The order in which the JAR files inside /WEB-INF/lib are searched is undefined. This method allows the servlet container to make a resource
available to servlets from any source. Resources
can be located on a local or remote
file system, in a database, or in a The servlet container must implement the URL handlers
and This method returns Some containers may allow writing to the URL returned by this method using the methods of the URL class. The resource content is returned directly, so be aware that
requesting a This method has a different purpose than
| |
| getResourceAsStream | back to summary |
|---|---|
| public InputStream getResourceAsStream(String path) Implements javax. Doc from javax. Returns the resource located at the named path as
an The data in the Meta-information such as content length and content type
that is available via The servlet container must implement the URL handlers
and This method is different from
| |
| getResourcePaths | back to summary |
|---|---|
| public Set Implements javax. Doc from javax. Returns a directory-like listing of all the paths to resources within the web application whose longest sub-path matches the supplied path argument. Paths indicating subdirectory paths end with a /. The returned paths are all relative to the root of the web application, or relative to the /META-INF/resources directory of a JAR file inside the web application's /WEB-INF/lib directory, and have a leading /. The returned set is not backed by the For example, for a web application containing:
getResourcePaths("/") would return
{"/welcome.html", "/catalog/", "/customer/", "/WEB-INF/"},
and getResourcePaths("/catalog/") would return
{"/catalog/index.html", "/catalog/products.html",
"/catalog/offers/", "/catalog/moreOffers/"}.
| |
| getServerInfo | back to summary |
|---|---|
| public String getServerInfo() Implements javax. Doc from javax. Returns the name and version of the servlet container on which the servlet is running. The form of the returned string is
servername/versionnumber.
For example, the JavaServer Web Development Kit may return the string
The servlet container may return other optional information
after the primary string in parentheses, for example,
| |
| getServlet | back to summary |
|---|---|
| public Servlet getServlet(String name) throws ServletException Implements javax.
| |
| getServletContextName | back to summary |
|---|---|
| public String getServletContextName() Implements javax. Doc from javax. Returns the name of this web application corresponding to this ServletContext as specified in the deployment descriptor for this web application by the display-name element.
| |
| getServletNames | back to summary |
|---|---|
| public Enumeration Implements javax.
| |
| getServlets | back to summary |
|---|---|
| public Enumeration Implements javax.
| |
| log | back to summary |
|---|---|
| public void log(Exception exception, String msg) Implements javax.
| |
| log | back to summary |
|---|---|
| public void log(String msg) Implements javax. Doc from javax. Writes the specified message to a servlet log file, usually an event log. The name and type of the servlet log file is specific to the servlet container.
| |
| log | back to summary |
|---|---|
| public void log(String message, Throwable throwable) Implements javax. Doc from javax. Writes an explanatory message and a stack trace
for a given | |
| removeAttribute | back to summary |
|---|---|
| public synchronized void removeAttribute(String name) Implements javax. Doc from javax. Removes the attribute with the given name from
this ServletContext. After removal, subsequent calls to
If listeners are configured on the
| |
| setAttribute | back to summary |
|---|---|
| public synchronized void setAttribute(String name, Object value) Implements javax. Doc from javax. Binds an object to a given attribute name in this ServletContext. If the name specified is already used for an attribute, this method will replace the attribute with the new to the new attribute. If listeners are configured on the
If a null value is passed, the effect is the same as calling
Attribute names should follow the same convention as package
names. The Java Servlet API specification reserves names
matching | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |