public class ServletMappingEmbed
extends java.lang.Object
ResinEmbed resin = new ResinEmbed();
WebAppEmbed webApp = new WebAppEmbed("/foo", "/var/resin/foo");
ServletMappingEmbed myServlet
= new ServletMappingEmbed("my-servlet", "/my-servlet", "qa.MyServlet");
webApp.addServletMapping(myServlet);
resin.addWebApp(webApp);
Constructor and Description |
---|
ServletMappingEmbed()
Creates a new embedded servlet-mapping
|
ServletMappingEmbed(java.lang.String servletName)
Creates a new embedded servlet-mapping
|
ServletMappingEmbed(java.lang.String servletName,
java.lang.String urlPattern)
Creates a new embedded servlet-mapping
|
ServletMappingEmbed(java.lang.String servletName,
java.lang.String urlPattern,
java.lang.String servletClass)
Creates a new embedded servlet-mapping
|
Modifier and Type | Method and Description |
---|---|
void |
addProperty(java.lang.String name,
java.lang.Object value)
Adds an init/ioc property.
|
protected void |
configure(ServletMapping servletMapping) |
java.lang.String |
getServletClass()
The servlet-class
|
java.lang.String |
getServletName()
The servlet-name
|
java.lang.String |
getUrlPattern()
The url-pattern
|
void |
setInitParam(java.lang.String name,
java.lang.String value)
Sets an init-param value.
|
void |
setLoadOnStartup(int loadOnStartup)
Sets the load-on-startup parameter.
|
void |
setProtocol(ServletProtocolEmbed protocol)
Sets the remoting protocol
|
void |
setServletClass(java.lang.String servletClass)
The servlet-class
|
void |
setServletName(java.lang.String servletName)
The servlet-name
|
void |
setUrlPattern(java.lang.String urlPattern)
The url-pattern
|
public ServletMappingEmbed()
public ServletMappingEmbed(java.lang.String servletName)
servletName
- the servlet-namepublic ServletMappingEmbed(java.lang.String servletName, java.lang.String urlPattern)
servletName
- the servlet-nameurlPattern
- the url-patternpublic ServletMappingEmbed(java.lang.String servletName, java.lang.String urlPattern, java.lang.String servletClass)
urlPattern
- the url-patternservletName
- the servlet-nameservletClass
- the servlet-classpublic void setServletName(java.lang.String servletName)
public java.lang.String getServletName()
public void setServletClass(java.lang.String servletClass)
public java.lang.String getServletClass()
public void setUrlPattern(java.lang.String urlPattern)
public java.lang.String getUrlPattern()
public void setLoadOnStartup(int loadOnStartup)
public void setInitParam(java.lang.String name, java.lang.String value)
public void addProperty(java.lang.String name, java.lang.Object value)
public void setProtocol(ServletProtocolEmbed protocol)
protected void configure(ServletMapping servletMapping)