> For the complete documentation index, see [llms.txt](https://coldbox.ortusbooks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://coldbox.ortusbooks.com/the-basics/event-handlers/interception-methods.md).

# Interception Methods

![](/files/-LDgKR6YV9Zn3xnEzebZ)

There are several simple implicit [AOP](http://en.wikipedia.org/wiki/Aspect-oriented_programming) (Aspect Oriented Programming) interceptor methods, usually referred to as **advices**, that can be declared in your event handler that the framework will use in order to execute them **before/after** and **around** an event as its fired from the current handler.

This is great for intercepting calls, pre/post processing, localized security, logging, RESTful conventions, and much more. Yes, you got that right, [Aspect Oriented Programming](http://en.wikipedia.org/wiki/Aspect-oriented_programming) just for you and without all the complicated setup involved! If you declared them, the framework will execute them.

| **Interceptor Method** | **Description**                                                    |
| ---------------------- | ------------------------------------------------------------------ |
| `preHandler()`         | Executes **before** any requested action (In the same handler CFC) |
| `pre{action}()`        | Executes **before** the `{action}` requested ONLY                  |
| `postHandler()`        | Executes **after** any requested action (In the same handler CFC)  |
| `post{action}()`       | Executes **after** the `{action}` requested ONLY                   |
| `aroundHandler()`      | Executes **around** any request action (In the same handler CFC)   |
| `around{action}()`     | Executes **around** the `{action}` requested ONLY                  |

![](/files/-LDgKRTvJdZdSUaZqBQv)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://coldbox.ortusbooks.com/the-basics/event-handlers/interception-methods.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
