|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Functional interface for the JRun Web Application Service.
| Fields inherited from interface jrunx.kernel.Service |
INITIALIZED, STARTED, STARTING, STOPPED, STOPPING, UNINITIALIZED |
| Method Summary | |
void |
addListener(java.lang.Object listenerObj)
Add an event listener to the the web app. |
void |
addListener(java.lang.String listenerName)
Add an event listener to the the web app. |
JRunRequestDispatcher |
getDispatcher(java.lang.String uri,
java.lang.String queryString)
Service a request |
FilterManager |
getFilterManager()
Returns the current filter manager or null if there are no filters configured. |
java.util.Vector |
getHttpSessionAttributeListeners()
Returns the list of HttpSessionAttributeListener objects or null if none |
java.util.Vector |
getHttpSessionListeners()
Returns the list of HttpSessionListener objects or null if none |
Logger |
getLogger()
Gets the current logger |
java.lang.String |
getMimeType(java.lang.String name)
Gets the mime type for the given resource name |
jrun.servlet.RequestDispatcher |
getNamedDispatcher(java.lang.String servletName)
Gets the RequestDispatcher for a named servlet |
jrun.servlet.RequestDispatcher |
getRequestDispatcher(java.lang.String path)
Gets the RequestDispatcher for the given resource |
Resource |
getResource(java.lang.String path)
Gets a Resource at the specified relative path within the document root |
java.io.InputStream |
getResourceAsStream(java.lang.String path)
Gets an InputStream for reading the relative path within the document root |
ServletEngine |
getServer()
Gets the JRun server instance |
java.lang.String |
getServletAliasClass(java.lang.String name)
Given a servlet alias name, return the servlet class. |
javax.servlet.ServletContext |
getServletContext()
Gets the servlet context for this web application |
java.util.Vector |
getServletContextAttributeListeners()
Returns the list of ServletContextAttributeListener objects or null if none |
java.util.Vector |
getServletContextListeners()
Returns the list of ServletContextListener objects or null if none |
java.util.Set |
getServletMappings()
Returns the current set of servlet mappings, sorted longest first |
Session |
getSessionService()
Returns the current Session service |
java.lang.ClassLoader |
getWebappClassLoader()
|
java.lang.Class |
loadClass(java.lang.String name)
Loads the named class using the ClassLoader for the WebApplication |
jrun.servlet.Servlet |
loadServlet(java.lang.String servletName,
java.lang.String targetName)
Loads the servlet using the ClassLoader for the WebApplication |
| Methods inherited from interface jrunx.kernel.ConfigurableServicePartitionMBean |
setChildElements |
| Methods inherited from interface jrunx.kernel.ServicePartitionMBean |
addService, addService, iterator, removeService, removeService |
| Methods inherited from interface jrunx.kernel.ServiceMBean |
bind, getBindToJNDI, getDeactivated, getDomainName, getJRunService, getName, getParentService, getServerName, requestServer, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, unbind |
| Methods inherited from interface jrunx.kernel.Service |
destroy, getStatus, init, start, stop, updateStatus |
| Methods inherited from interface jrun.j2ee.J2EEModuleMBean |
getDeploymentOrigin, isRunning, setDeploymentOrigin |
| Method Detail |
public JRunRequestDispatcher getDispatcher(java.lang.String uri,
java.lang.String queryString)
request - The JRunRequest wrapperconn - The ServletConnection data goes back topublic java.util.Set getServletMappings()
public java.lang.String getServletAliasClass(java.lang.String name)
name - The servlet alias namepublic Resource getResource(java.lang.String path)
path - The relative path
public java.io.InputStream getResourceAsStream(java.lang.String path)
throws java.io.IOException
path - The relative pathpublic jrun.servlet.RequestDispatcher getRequestDispatcher(java.lang.String path)
path - The resource pathpublic jrun.servlet.RequestDispatcher getNamedDispatcher(java.lang.String servletName)
servletName - The servlet namepublic Logger getLogger()
getLogger in interface ServiceMBeanpublic java.lang.Class loadClass(java.lang.String name)
className - The class namepublic javax.servlet.ServletContext getServletContext()
public jrun.servlet.Servlet loadServlet(java.lang.String servletName,
java.lang.String targetName)
throws java.io.IOException,
javax.servlet.ServletException
servletName - The servlet name. This may be an alias name.public ServletEngine getServer()
public java.lang.String getMimeType(java.lang.String name)
name - The resource namepublic Session getSessionService()
public java.util.Vector getServletContextListeners()
public java.util.Vector getServletContextAttributeListeners()
public java.util.Vector getHttpSessionListeners()
public java.util.Vector getHttpSessionAttributeListeners()
public FilterManager getFilterManager()
public void addListener(java.lang.String listenerName)
public void addListener(java.lang.Object listenerObj)
public java.lang.ClassLoader getWebappClassLoader()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||