Package com.easypost.hooks
Class ResponseHook
java.lang.Object
com.easypost.hooks.ResponseHook
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddEventHandler(Function<ResponseHookResponses, Object> handler) Add a function to the list of event handlers.voidExecute all the functions from the event handlers.voidRemove a function to the list of event handlers. 
- 
Constructor Details
- 
ResponseHook
public ResponseHook() 
 - 
 - 
Method Details
- 
addEventHandler
Add a function to the list of event handlers.- Parameters:
 handler- The event handler function to be added.
 - 
removeEventHandler
Remove a function to the list of event handlers.- Parameters:
 handler- The event handler function to be removed.
 - 
executeEventHandler
Execute all the functions from the event handlers.- Parameters:
 datas- The datas from the hooks.
 
 -