public class ServletServiceContext extends ServletContextWrapper implements Absolutizable
| Modifier and Type | Class and Description |
|---|---|
protected class |
ServletServiceContext.NamedDispatcher |
| Modifier and Type | Field and Description |
|---|---|
static String |
SUPER |
servletContext| Constructor and Description |
|---|
ServletServiceContext() |
| Modifier and Type | Method and Description |
|---|---|
URI |
absolutizeURI(URI uri)
Takes the scheme specific part of a servlet service URI (the scheme is the responsibilty of the ServletSource)
and resolve it with respect to the servlets mount point.
|
Object |
getAttribute(String name) |
Enumeration |
getAttributeNames() |
javax.servlet.ServletContext |
getContext(String uripath) |
String |
getInitParameter(String name) |
Enumeration |
getInitParameterNames() |
int |
getMajorVersion() |
int |
getMinorVersion() |
String |
getMountPath()
Get the mount path of the servlet service context
|
javax.servlet.ServletContext |
getNamedContext(String name)
Get the context of a servlet service with a given name.
|
javax.servlet.RequestDispatcher |
getNamedDispatcher(String name) |
String |
getRealPath(String path) |
javax.servlet.RequestDispatcher |
getRequestDispatcher(String path) |
URL |
getResource(String path) |
InputStream |
getResourceAsStream(String path) |
Set |
getResourcePaths(String path) |
String |
getServerInfo() |
String |
getServiceName()
Get the fully qualifed service name.
|
String |
getServiceName(String connectionName)
Get the fully qualified servlet service name of a connected service.
|
String |
getServletContextName() |
void |
removeAttribute(String name) |
void |
setAttribute(String name,
Object value) |
void |
setAttributes(Map map) |
void |
setConnections(Map connections) |
void |
setConnectionServiceNames(Map connectionServletServiceNames) |
void |
setContextPath(String contextPath) |
void |
setInitParams(Map properties) |
void |
setMountPath(String mountPath) |
void |
setServiceName(String serviceName) |
void |
setServlet(javax.servlet.Servlet servlet)
Set the servlet of the context
|
getMimeType, getServlet, getServletNames, getServlets, log, log, log, setServletContextpublic static final String SUPER
public Object getAttribute(String name)
getAttribute in interface javax.servlet.ServletContextgetAttribute in class ServletContextWrapperpublic void setAttribute(String name, Object value)
setAttribute in interface javax.servlet.ServletContextsetAttribute in class ServletContextWrapperpublic void removeAttribute(String name)
removeAttribute in interface javax.servlet.ServletContextremoveAttribute in class ServletContextWrapperpublic Enumeration getAttributeNames()
getAttributeNames in interface javax.servlet.ServletContextgetAttributeNames in class ServletContextWrapperpublic void setAttributes(Map map)
map - the attributes to setpublic URL getResource(String path) throws MalformedURLException
getResource in interface javax.servlet.ServletContextgetResource in class ServletContextWrapperMalformedURLExceptionpublic String getRealPath(String path)
getRealPath in interface javax.servlet.ServletContextgetRealPath in class ServletContextWrapperpublic String getInitParameter(String name)
getInitParameter in interface javax.servlet.ServletContextgetInitParameter in class ServletContextWrapperpublic Enumeration getInitParameterNames()
getInitParameterNames in interface javax.servlet.ServletContextgetInitParameterNames in class ServletContextWrapperpublic InputStream getResourceAsStream(String path)
getResourceAsStream in interface javax.servlet.ServletContextgetResourceAsStream in class ServletContextWrapperpublic javax.servlet.ServletContext getContext(String uripath)
getContext in interface javax.servlet.ServletContextgetContext in class ServletContextWrapperpublic int getMajorVersion()
getMajorVersion in interface javax.servlet.ServletContextgetMajorVersion in class ServletContextWrapperpublic int getMinorVersion()
getMinorVersion in interface javax.servlet.ServletContextgetMinorVersion in class ServletContextWrapperpublic Set getResourcePaths(String path)
getResourcePaths in interface javax.servlet.ServletContextgetResourcePaths in class ServletContextWrapperpublic javax.servlet.RequestDispatcher getRequestDispatcher(String path)
getRequestDispatcher in interface javax.servlet.ServletContextgetRequestDispatcher in class ServletContextWrapperpublic javax.servlet.RequestDispatcher getNamedDispatcher(String name)
getNamedDispatcher in interface javax.servlet.ServletContextgetNamedDispatcher in class ServletContextWrapperpublic String getServerInfo()
getServerInfo in interface javax.servlet.ServletContextgetServerInfo in class ServletContextWrapperpublic String getServletContextName()
getServletContextName in interface javax.servlet.ServletContextgetServletContextName in class ServletContextWrapperpublic void setServlet(javax.servlet.Servlet servlet)
servlet - public URI absolutizeURI(URI uri) throws URISyntaxException
absolutizeURI in interface Absolutizableuri - relative uriURISyntaxExceptionpublic String getServiceName(String connectionName)
AbsolutizablegetServiceName in interface Absolutizablepublic String getServiceName()
AbsolutizablegetServiceName in interface Absolutizablepublic javax.servlet.ServletContext getNamedContext(String name)
public void setMountPath(String mountPath)
mountPath - The mountPath to set.public String getMountPath()
public void setContextPath(String contextPath)
contextPath - public void setInitParams(Map properties)
properties - The properties to set.public void setConnections(Map connections)
connections - the connections to setpublic void setConnectionServiceNames(Map connectionServletServiceNames)
connections - the service names of the connectionspublic void setServiceName(String serviceName)
serviceName - the name of theCopyright © 1999-2012 The Apache Software Foundation. All Rights Reserved.