org.apache.felix.http.base.internal.handler
Class ServletHandler

java.lang.Object
  extended by org.apache.felix.http.base.internal.handler.AbstractHandler
      extended by org.apache.felix.http.base.internal.handler.ServletHandler

public final class ServletHandler
extends AbstractHandler


Constructor Summary
ServletHandler(ExtServletContext context, Servlet servlet, String alias)
           
 
Method Summary
 int compareTo(ServletHandler other)
           
 void destroy()
           
 String getAlias()
           
 Servlet getServlet()
           
 boolean handle(HttpServletRequest req, HttpServletResponse res)
           
 void init()
           
 boolean matches(String uri)
           
 
Methods inherited from class org.apache.felix.http.base.internal.handler.AbstractHandler
getContext, getId, getInitParams, setInitParams
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletHandler

public ServletHandler(ExtServletContext context,
                      Servlet servlet,
                      String alias)
Method Detail

getAlias

public String getAlias()

getServlet

public Servlet getServlet()

init

public void init()
          throws ServletException
Specified by:
init in class AbstractHandler
Throws:
ServletException

destroy

public void destroy()
Specified by:
destroy in class AbstractHandler

matches

public boolean matches(String uri)

handle

public boolean handle(HttpServletRequest req,
                      HttpServletResponse res)
               throws ServletException,
                      IOException
Throws:
ServletException
IOException

compareTo

public int compareTo(ServletHandler other)


Copyright © 2011 Apache Software Foundation. All Rights Reserved.