Beispiel #1
0
 /**
  * Specify a handler that will be called for all HTTP methods
  *
  * @param regex A regular expression
  * @param handler The handler to call
  */
 public void allWithRegEx(String regex, Handler<HttpServerRequest> handler) {
   addRegEx(regex, handler, getBindings);
   addRegEx(regex, handler, putBindings);
   addRegEx(regex, handler, postBindings);
   addRegEx(regex, handler, deleteBindings);
   addRegEx(regex, handler, optionsBindings);
 }
Beispiel #2
0
 /**
  * Specify a handler that will be called for a matching HTTP OPTIONS
  *
  * @param regex A regular expression
  * @param handler The handler to call
  */
 public void optionsWithRegEx(String regex, Handler<HttpServerRequest> handler) {
   addRegEx(regex, handler, optionsBindings);
 }
Beispiel #3
0
 /**
  * Specify a handler that will be called for a matching HTTP DELETE
  *
  * @param regex A regular expression
  * @param handler The handler to call
  */
 public void deleteWithRegEx(String regex, Handler<HttpServerRequest> handler) {
   addRegEx(regex, handler, deleteBindings);
 }
Beispiel #4
0
 /**
  * Specify a handler that will be called for a matching HTTP POST
  *
  * @param regex A regular expression
  * @param handler The handler to call
  */
 public void postWithRegEx(String regex, Handler<HttpServerRequest> handler) {
   addRegEx(regex, handler, postBindings);
 }