Esempio n. 1
0
  /* -------------------- AsyncRequestHandler Interface --------------------- */
  public void handle(Message request, Response response) throws Exception {
    if (req_handler != null) {
      if (req_handler instanceof AsyncRequestHandler)
        ((AsyncRequestHandler) req_handler).handle(request, response);
      else {
        Object retval = req_handler.handle(request);
        if (response != null) response.send(retval, false);
      }
      return;
    }

    Object retval = handle(request);
    if (response != null) response.send(retval, false);
  }
Esempio n. 2
0
 /* ------------------------ RequestHandler Interface ---------------------- */
 public Object handle(Message msg) throws Exception {
   if (req_handler != null) return req_handler.handle(msg);
   return null;
 }