Publishing Engine Programmer's Guide > The Arbortext Publishing Engine Request Manager > Customizing the Arbortext PE Request Manager > Writing a Custom Request Function
  
Writing a Custom Request Function
Request functions are Dynamic Components loaded by the Arbortext Publishing Engine Request Handler. You can avoid the overhead of implementing a complete request handler by implementing a request function instead.
To write a request function, you need to develop a Java class that implements the interface com.arbortext.e3.RequestFunction and provides two public methods, init and execute. The init method is called by the request handler when it initializes. The execute method takes an HTTP request as a parameter and returns an HTTP response.
After compiling your Java class, put it in PE_HOME\e3\e3\WEB-INF\classes or place the classes in a JAR file and put the JAR in e3\e3\WEB-INF\lib. Remember to update e3config.xml to add a RequestFunction element to load the request function.