jrun.servlet
Interface ServletEngine

All Superinterfaces:
ConfigurableServicePartitionMBean, java.io.Serializable, Service, ServiceMBean, ServicePartitionMBean, ServletEngineServiceMBean
All Known Implementing Classes:
ServletEngineService

public interface ServletEngine
extends ServletEngineServiceMBean

Functional interface for the JRun Servlet Engine Service.

Author:
Karl Moss

Fields inherited from interface jrunx.kernel.Service
INITIALIZED, STARTED, STARTING, STOPPED, STOPPING, UNINITIALIZED
 
Method Summary
 void dispatch(ServletConnection connection)
          Service a request
 WebApplication findWebApplication(java.lang.String uri)
          Finds the WebApplication that will service the request specified in the given uri
 java.util.Set getExpandedMappings()
          Return all the mappings for each of the web-apps we know about.
 ReplicationIdService getReplicationIdService()
          Get the ReplicationIdService
 ServletUsers getServletUsers()
          Get a direct reference to the ServletUsers for the servlet engine
 SessionReplicationService getSessionReplicationService()
           
 void setWebAppMapping(WebAppMapping mapping)
          Sets (adds) a new WebAppMapping for the servlet engine.
 
Methods inherited from interface jrun.servlet.ServletEngineServiceMBean
getDefaultLocale, getMimeType, getMimeTypesPath, getServletCheckInterval, getServletEngine, setDefaultLocale, setMimeMapping, setMimeTypesPath, setServletCheckInterval, setVirtualHostMapping
 
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, getLogger, getName, getParentService, getServerName, requestServer, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, unbind
 
Methods inherited from interface jrunx.kernel.Service
destroy, getStatus, init, start, stop, updateStatus
 

Method Detail

setWebAppMapping

public void setWebAppMapping(WebAppMapping mapping)
                      throws java.lang.Exception
Sets (adds) a new WebAppMapping for the servlet engine. If the WebAppMapping target is null or empty, the mapping will be removed.
Parameters:
mapping - The new mapping to add

findWebApplication

public WebApplication findWebApplication(java.lang.String uri)
Finds the WebApplication that will service the request specified in the given uri
Parameters:
uri - The request uri

getExpandedMappings

public java.util.Set getExpandedMappings()
Return all the mappings for each of the web-apps we know about.

dispatch

public void dispatch(ServletConnection connection)
Service a request
Parameters:
request - The HttpServletRequest
response - The HttpServletResponse

getServletUsers

public ServletUsers getServletUsers()
Get a direct reference to the ServletUsers for the servlet engine

getReplicationIdService

public ReplicationIdService getReplicationIdService()
Get the ReplicationIdService

getSessionReplicationService

public SessionReplicationService getSessionReplicationService()


Copyright � 2002 Macromedia Corporation. All Rights Reserved.