public interface OfficeServletContext
Provides ServletContext
functionality specific to an Office
.
All methods defined on this interface come from ServletContext
with
the addition of an Office
parameter to identify the context
Office
.
Deprecated methods will typically be excluded.
FilterChainFactory getFilterChainFactory(Office office) throws javax.servlet.ServletException
Obtains the FilterChainFactory
for the Office
.
This is a non ServletContext
method and is provided as filtering
is applied across an application. It is expected that the
HttpServletContainer
will make use of this
FilterChainFactory
for filtering Servlet
servicing.
office
- Office
.FilterChainFactory
.javax.servlet.ServletException
- Filter
instances are lazy loaded and initialising may
fail for new Filter
instances.ServletTaskReference mapPath(Office office, String path)
Obtains the ServletTaskReference
to the Servlet
Task
corresponding the the input path.
This is a non ServletContext
method and is provided to allow
routing to a Servlet
for servicing the HttpRequest
.
office
- Office
.path
- Path to be mapped to a Servlet
Task
.ServletTaskReference
for the path or null
if
path does not map to a Servlet
Task
.String getContextPath(Office office)
office
- Office
.ServletContext.getContextPath()
javax.servlet.ServletContext getContext(Office office, String uripath)
office
- Office
.uripath
- URI path.ServletContext
.ServletContext.getContext(String)
String getMimeType(Office office, String file)
office
- Office
.file
- File name.ServletContext.getMimeType(String)
Set getResourcePaths(Office office, String path)
office
- Office
.path
- Path.ServletContext.getResourcePaths(String)
URL getResource(Office office, String path) throws MalformedURLException
office
- Office
.path
- Path.URL
.MalformedURLException
- If malformed URL
.ServletContext.getResource(String)
InputStream getResourceAsStream(Office office, String path)
office
- Office
.path
- Path.InputStream
.ServletContext.getResourceAsStream(String)
javax.servlet.RequestDispatcher getRequestDispatcher(Office office, String path)
office
- Office
.path
- Path.RequestDispatcher
.ServletContext.getRequestDispatcher(String)
javax.servlet.RequestDispatcher getNamedDispatcher(Office office, String name)
office
- Office
.name
- Name.RequestDispatcher
.ServletContext.getNamedDispatcher(String)
void log(Office office, String msg)
office
- Office
.msg
- Message.ServletContext.log(String)
void log(Office office, String message, Throwable throwable)
office
- Office
.message
- Message.throwable
- Cause.ServletContext.log(String, Throwable)
String getRealPath(Office office, String path)
office
- Office
.path
- Path.ServletContext.getRealPath(String)
String getServerInfo(Office office)
office
- Office
.ServletContext.getServerInfo()
String getInitParameter(Office office, String name)
office
- Office
.name
- Name.ServletContext.getInitParameter(String)
Enumeration getInitParameterNames(Office office)
office
- Office
.ServletContext.getInitParameterNames()
Object getAttribute(Office office, String name)
office
- Office
.name
- Name.ServletContext.getAttribute(String)
Enumeration getAttributeNames(Office office)
office
- Office
.ServletContext.getAttributeNames()
void setAttribute(Office office, String name, Object object)
office
- Office
.name
- Name.object
- Attribute value.ServletContext.setAttribute(String, Object)
void removeAttribute(Office office, String name)
office
- Office
.name
- Name.ServletContext.removeAttribute(String)
Copyright © 2005–2016. All rights reserved.