com.caucho.remote
Class HmtpServlet

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

public class HmtpServlet
extends GenericServlet

Main protocol handler for the HTTP version of BAM.

See Also:
Serialized Form

Constructor Summary
HmtpServlet()
           
 
Method Summary
protected  ManagedBroker getBroker()
           
 void init()
          Initialize the servlet.
 boolean isAuthenticationRequired()
           
 void service(ServletRequest request, ServletResponse response)
          Service handling
 void setAdmin(boolean isAdmin)
           
 void setAuthenticationRequired(boolean isAuthRequired)
           
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HmtpServlet

public HmtpServlet()
Method Detail

setAdmin

public void setAdmin(boolean isAdmin)

setAuthenticationRequired

public void setAuthenticationRequired(boolean isAuthRequired)

isAuthenticationRequired

public boolean isAuthenticationRequired()

init

public void init()
Description copied from class: GenericServlet
Initialize the servlet. Servlets should override this method if they need any initialization like opening pooled database connections.

Overrides:
init in class GenericServlet

service

public void service(ServletRequest request,
                    ServletResponse response)
             throws java.io.IOException,
                    ServletException
Service handling

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

getBroker

protected ManagedBroker getBroker()