com.caucho.resin
Class ServletMappingEmbed

java.lang.Object
  extended by com.caucho.resin.ServletMappingEmbed

public class ServletMappingEmbed
extends java.lang.Object

Embeddable version of a servlet-mapping

 ResinEmbed resin = new ResinEmbed();

 WebAppEmbed webApp = new WebAppEmbed("/foo", "/var/www/foo");

 ServletMappingEmbed myServlet
   = new ServletMappingEmbed("my-servlet", "/my-servlet", "qa.MyServlet");

 webApp.addServletMapping(myServlet);

 resin.addWebApp(webApp);
 


Constructor Summary
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
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletMappingEmbed

public ServletMappingEmbed()
Creates a new embedded servlet-mapping


ServletMappingEmbed

public ServletMappingEmbed(java.lang.String servletName)
Creates a new embedded servlet-mapping

Parameters:
servletName - the servlet-name

ServletMappingEmbed

public ServletMappingEmbed(java.lang.String servletName,
                           java.lang.String urlPattern)
Creates a new embedded servlet-mapping

Parameters:
servletName - the servlet-name
urlPattern - the url-pattern

ServletMappingEmbed

public ServletMappingEmbed(java.lang.String servletName,
                           java.lang.String urlPattern,
                           java.lang.String servletClass)
Creates a new embedded servlet-mapping

Parameters:
urlPattern - the url-pattern
servletName - the servlet-name
servletClass - the servlet-class
Method Detail

setServletName

public void setServletName(java.lang.String servletName)
The servlet-name


getServletName

public java.lang.String getServletName()
The servlet-name


setServletClass

public void setServletClass(java.lang.String servletClass)
The servlet-class


getServletClass

public java.lang.String getServletClass()
The servlet-class


setUrlPattern

public void setUrlPattern(java.lang.String urlPattern)
The url-pattern


getUrlPattern

public java.lang.String getUrlPattern()
The url-pattern


setLoadOnStartup

public void setLoadOnStartup(int loadOnStartup)
Sets the load-on-startup parameter.


setInitParam

public void setInitParam(java.lang.String name,
                         java.lang.String value)
Sets an init-param value.


addProperty

public void addProperty(java.lang.String name,
                        java.lang.Object value)
Adds an init/ioc property.


setProtocol

public void setProtocol(ServletProtocolEmbed protocol)
Sets the remoting protocol


configure

protected void configure(ServletMapping servletMapping)