Exemplo n.º 1
0
 /**
  * Specify a handler that will be called for all HTTP methods
  *
  * @param pattern The simple pattern
  * @param handler The handler to call
  */
 public void all(String pattern, Handler<HttpServerRequest> handler) {
   addPattern(pattern, handler, getBindings);
   addPattern(pattern, handler, putBindings);
   addPattern(pattern, handler, postBindings);
   addPattern(pattern, handler, deleteBindings);
   addPattern(pattern, handler, optionsBindings);
 }
Exemplo n.º 2
0
 /**
  * Specify a handler that will be called for a matching HTTP GET
  *
  * @param pattern The simple pattern
  * @param handler The handler to call
  */
 public void get(String pattern, Handler<HttpServerRequest> handler) {
   addPattern(pattern, handler, getBindings);
 }
Exemplo n.º 3
0
 /**
  * Specify a handler that will be called for a matching HTTP OPTIONS
  *
  * @param pattern The simple pattern
  * @param handler The handler to call
  */
 public void options(String pattern, Handler<HttpServerRequest> handler) {
   addPattern(pattern, handler, optionsBindings);
 }
Exemplo n.º 4
0
 /**
  * Specify a handler that will be called for a matching HTTP DELETE
  *
  * @param pattern The simple pattern
  * @param handler The handler to call
  */
 public void delete(String pattern, Handler<HttpServerRequest> handler) {
   addPattern(pattern, handler, deleteBindings);
 }