com.caucho.resin.deploy
Class LocalDeployServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by com.caucho.resin.deploy.LocalDeployServlet
All Implemented Interfaces:
java.io.Serializable, Servlet, ServletConfig

public class LocalDeployServlet
extends GenericServlet

HTTP-based deployment service for local updates to the embedded server, e.g. from an IDE.


 <web-app xmlns="http://caucho.com/ns/resin">

   <servlet-mapping url-pattern="/deploy"
               servlet-class="com.caucho.resin.deploy.LocalDeployServlet">
     <init>
       <enable>true</enable>
     </init>
   </servlet-mapping>

 </web-app>
 

See Also:
Serialized Form

Constructor Summary
LocalDeployServlet()
           
 
Method Summary
 WebApp getWebApp()
          Returns the owning webapp
 WebAppContainer getWebAppContainer()
          Returns the webapp container
 void service(ServletRequest request, ServletResponse response)
          Handle the deployment request
 void setEnable(boolean isEnable)
          Enable is required to enable the servlet.
 void setRole(java.lang.String role)
          Role is a login requirement.
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalDeployServlet

public LocalDeployServlet()
Method Detail

setEnable

public void setEnable(boolean isEnable)
Enable is required to enable the servlet.


setRole

public void setRole(java.lang.String role)
Role is a login requirement. The default is 'manager', so applications which don't want a login requirement will need to set this null.


getWebApp

public WebApp getWebApp()
Returns the owning webapp


getWebAppContainer

public WebAppContainer getWebAppContainer()
Returns the webapp container


service

public void service(ServletRequest request,
                    ServletResponse response)
             throws ServletException,
                    java.io.IOException
Handle the deployment request

Parameters:
request - request information. Normally servlets will cast this to HttpServletRequest
response - response information. Normally servlets will cast this to HttpServletRequest
Throws:
ServletException
java.io.IOException