jrun.servlet
Interface ServletEngineServiceMBean

All Superinterfaces:
ConfigurableServicePartitionMBean, java.io.Serializable, Service, ServiceMBean, ServicePartitionMBean
All Known Subinterfaces:
ServletEngine

public interface ServletEngineServiceMBean
extends ConfigurableServicePartitionMBean

MBean 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
 java.lang.String getDefaultLocale()
          Gets the current default locale for the VM
 java.lang.String getMimeType(java.lang.String name)
          Gets the mime type for the given resource name
 java.lang.String getMimeTypesPath()
          Gets the path of the mime.types file, or null if none.
 long getServletCheckInterval()
          Gets the servlet check interval
 ServletEngine getServletEngine()
          Returns a direct reference to the servlet engine
 void setDefaultLocale(java.lang.String locale)
          Sets the new default locale for the entire VM
 void setMimeMapping(MimeMapping mapping)
          Sets (adds) a new MimeMapping for the servlet engine
 void setMimeTypesPath(java.lang.String path)
          Sets the path of the mime.types file.
 void setServletCheckInterval(long ms)
          The number of milliseconds between checking for a change in a servlet class file.
 void setVirtualHostMapping(VirtualHostMapping mapping)
          Sets (adds) a new VirtualHostMapping for the servlet engine
 
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

getServletEngine

public ServletEngine getServletEngine()
Returns a direct reference to the servlet engine
Returns:
The servlet engine

setMimeTypesPath

public void setMimeTypesPath(java.lang.String path)
                      throws java.lang.Exception
Sets the path of the mime.types file. This file contains MIME type mappings in the Apache format: type extension1 extension2 extension3 The path is relative to the jrun root directory, such as /lib/mime.types.
Parameters:
path - The relative path of the mime.types file.

getMimeTypesPath

public java.lang.String getMimeTypesPath()
Gets the path of the mime.types file, or null if none.
Returns:
The relative path of the mime.types file

setMimeMapping

public void setMimeMapping(MimeMapping mapping)
Sets (adds) a new MimeMapping for the servlet engine
Parameters:
mapping - The new MIME mapping to add

getMimeType

public java.lang.String getMimeType(java.lang.String name)
Gets the mime type for the given resource name
Parameters:
name - The resource name
Returns:
The mime type, or null if not found

setVirtualHostMapping

public void setVirtualHostMapping(VirtualHostMapping mapping)
Sets (adds) a new VirtualHostMapping for the servlet engine
Parameters:
mapping - The new mapping to add

setDefaultLocale

public void setDefaultLocale(java.lang.String locale)
Sets the new default locale for the entire VM
Parameters:
locale - The new locale

getDefaultLocale

public java.lang.String getDefaultLocale()
Gets the current default locale for the VM
Returns:
The current default locale

setServletCheckInterval

public void setServletCheckInterval(long ms)
The number of milliseconds between checking for a change in a servlet class file. Automatic reloading of modified servlet classes relies on this setting. A setting of -1 will result in disabling servlet reloading
Parameters:
interval - Number of ms before checking for a new servlet class

getServletCheckInterval

public long getServletCheckInterval()
Gets the servlet check interval
Returns:
The number of ms before checking for a new servlet class


Copyright � 2002 Macromedia Corporation. All Rights Reserved.