Class ServletAddingUtil
- java.lang.Object
-
- org.zeroturnaround.javarebel.integration.util.ServletAddingUtil
-
public class ServletAddingUtil extends Object
Utility to help with figuring out whether should do a redirect because a servlet was added or not. After request in finally block callexitPotentialRedirect(). Before firing beforeRequest event on request listeners check ifshouldRedirect()is true, if yes then that means a servlet was added and we should do a redirect. If during reload a servlet was added callservletAdded()For an example see ServletInitialHandlerCBP.java and UndertowDeploymentProcessorCBP.java
-
-
Constructor Summary
Constructors Constructor Description ServletAddingUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidexitPotentialRedirect()static voidservletAdded()static booleanshouldRedirect()
-