brookrouterhandler.pas 982 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. (*
  2. Brook for Free Pascal
  3. Copyright (C) 2014-2019 Silvio Clecio
  4. See the file LICENSE.txt, included in this distribution,
  5. for details about the copyright.
  6. This library is distributed in the hope that it will be useful,
  7. but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  9. *)
  10. { Router handler class. }
  11. unit BrookRouterHandler;
  12. {$i brook.inc}
  13. interface
  14. uses
  15. BrookRouter;
  16. type
  17. { Handles exceptions for @link(TBrookRouterHandler). }
  18. EBrookRouterHandler = class(EBrookRouter);
  19. { Is a metaclass for @link(BrookRouterHandler) class. }
  20. TBrookRouterHandlerClass = class of TBrookRouterHandler;
  21. { Handles the router events. }
  22. TBrookRouterHandler = class(TBrookRouter)
  23. published
  24. property AfterExecuteAction;
  25. property AfterMatchPattern;
  26. property AfterRoute;
  27. property BeforeExecuteAction;
  28. property BeforeMatchPattern;
  29. property BeforeRoute;
  30. end;
  31. implementation
  32. end.