public class WebConfigurator extends XMLBean
| Modifier and Type | Class and Description |
|---|---|
static class |
WebConfigurator.INIT_PARAM |
| Constructor and Description |
|---|
WebConfigurator(String path) |
| Modifier and Type | Method and Description |
|---|---|
void |
addContextParam(String param_name,
String param_value,
String param_description,
WebConfigurator.INIT_PARAM append)
Adding a contextparam to the web.xml
|
void |
addFilter(String name,
String clazz)
Adds a new filter to the deployment descriptor.
|
void |
addFilterMapping(String filter,
String pattern)
Adds a new filter mapping to the deployment descriptor.
|
void |
addInitParam(String servletName,
String param_name,
String param_value,
String param_description)
Adds a init parameter to the servlet
|
void |
addInitParam(String servletName,
String param_name,
String param_value,
String param_description,
WebConfigurator.INIT_PARAM append)
Adds a init parameter to the servlet
|
void |
addListener(String clazz)
Adds a new listener to the deployment descriptor.
|
void |
addListenerInitParam(String listenerClazz,
String param_name,
String param_value,
WebConfigurator.INIT_PARAM append)
Adds a init parameter to the listener
|
void |
addServlet(String name,
String clazz)
Adds a new servlet mapping to the deployment descriptor.
|
void |
addServlet(String name,
String clazz,
int load_on_startup)
Adds a new servlet to the deployment descriptor.
|
void |
addServletMapping(String servlet,
String pattern)
Adds a new servlet mapping to the deployment descriptor.
|
String |
getDisplayName() |
void |
setDescription(String description) |
void |
setDisplayName(String displayName) |
getAllAttribute, getAllChild, getAllChild, getAllChildText, getAttribute, getAttributeValue, getChild, getChild, getChildText, getRootChild, getRootElement, getText, getText, removeChild, setAttributeValue, setText, writeXMLDocpublic WebConfigurator(String path)
public void addContextParam(String param_name, String param_value, String param_description, WebConfigurator.INIT_PARAM append)
param_name - the paramparam_value - the valueparam_description - append - * @param append if the param exist, should the new value
appended? possible values are represented in
WebConfigurator.INIT_PARAMpublic void addInitParam(String servletName, String param_name, String param_value, String param_description, WebConfigurator.INIT_PARAM append)
servletName - The name of the servletname - Name of the Parametervalue - Value of the Parameterdescription - Descriptionappend - if the param exist, should the new value appended? possible
values are represented in WebConfigurator.INIT_PARAMpublic void addListenerInitParam(String listenerClazz, String param_name, String param_value, WebConfigurator.INIT_PARAM append)
listenerClazz - The class of the listenername - Name of the Parametervalue - Value of the Parameterappend - if the param exist, should the new value appended? possible
values are represented in WebConfigurator.INIT_PARAMpublic void addInitParam(String servletName, String param_name, String param_value, String param_description)
clazz - The classnamename - Name of the Parametervalue - Value of the Parameterdescription - Descriptionpublic void addServlet(String name, String clazz)
name - The servlet nameclazz - The servlet class fully qualified namepublic void addServlet(String name, String clazz, int load_on_startup)
name - The servlet nameclazz - The servlet class fully qualified nameload_on - startuppublic void addFilter(String name, String clazz)
name - The filter nameclazz - The filter class fully qualified namepublic void addListener(String clazz)
clazz - The filter class fully qualified namepublic void addServletMapping(String servlet, String pattern)
servlet - The name of the servletpattern - The mapping patternpublic void addFilterMapping(String filter, String pattern)
filter - The name of the filterpattern - The mapping patternpublic void setDisplayName(String displayName)
public String getDisplayName()
public void setDescription(String description)
Copyright © 2008-2014 Logical Objects. All Rights Reserved.