public class ServletHandler extends AbstractHandler implements Comparable<ServletHandler>
Constructor and Description |
---|
ServletHandler(ExtServletContext context,
javax.servlet.Servlet servlet,
String alias) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ServletHandler other) |
void |
destroy() |
String |
getAlias() |
javax.servlet.Servlet |
getServlet() |
protected String |
getUri(javax.servlet.http.HttpServletRequest req) |
boolean |
handle(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
void |
init() |
boolean |
matches(String uri) |
getContext, getId, getInitParams, setInitParams
public ServletHandler(ExtServletContext context, javax.servlet.Servlet servlet, String alias)
public String getAlias()
public javax.servlet.Servlet getServlet()
public void init() throws javax.servlet.ServletException
init
in class AbstractHandler
javax.servlet.ServletException
public void destroy()
destroy
in class AbstractHandler
public boolean matches(String uri)
public boolean handle(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, IOException
javax.servlet.ServletException
IOException
protected String getUri(javax.servlet.http.HttpServletRequest req)
public int compareTo(ServletHandler other)
compareTo
in interface Comparable<ServletHandler>
Copyright © 2018. All rights reserved.