Constructor and Description |
---|
Dispatcher()
Constructs a new dispatcher.
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(DispatchListener d)
Adds a dispatch event listener.
|
void |
destroy()
Invoked by the servlet engine when stopping.
|
void |
doFilter(ServletRequest req,
ServletResponse resp,
FilterChain chain)
Invoked by the clients via the servlet engine on each request.
|
static String |
getClient(HttpServletRequest request)
Describes the client location (for logging).
|
void |
init(FilterConfig config)
Invoked by the servlet engine when starting.
|
void |
invokeNextWebMethod()
Invokes the next applicable web method.
|
boolean |
process(String path,
String url,
HttpServletRequest request,
HttpServletResponse response)
Processes the given request with this web app.
|
void |
send(Response r)
Sends the given response.
|
public void addListener(DispatchListener d)
public void destroy()
public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws IOException, ServletException
doFilter
in interface Filter
IOException
ServletException
public static String getClient(HttpServletRequest request)
public void init(FilterConfig config) throws ServletException
init
in interface Filter
ServletException
public void invokeNextWebMethod()
public boolean process(String path, String url, HttpServletRequest request, HttpServletResponse response)
public void send(Response r)
Copyright © 2008-2012 Anders Møller & Mathias Schwarz.