Package org.gatein.wci.spi
Interface ServletContainerContext.Registration
- Enclosing interface:
ServletContainerContext
public static interface ServletContainerContext.Registration
The callback interface that a servlet container context can obtain from its registration against
the
org.jboss.portal.web.ServletContainer singleton.-
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Cancel the registration against the servlet container.booleanregisterWebApp(WebAppContext webAppContext) Registers a web application.booleanunregisterWebApp(String contextPath) Unregister a web application.
-
Method Details
-
registerWebApp
boolean registerWebApp(WebAppContext webAppContext) throws IllegalStateException, IllegalArgumentException Registers a web application.- Parameters:
webAppContext- the web application context- Returns:
- true if the registration was done
- Throws:
IllegalArgumentException- if the argument is nullIllegalStateException- if the registration is cancelled
-
unregisterWebApp
Unregister a web application.- Parameters:
contextPath- the web application id- Returns:
- true if the unregistration was done
- Throws:
IllegalArgumentException- if the argument is nullIllegalStateException- if the registration is cancelled
-
cancel
Cancel the registration against the servlet container.- Throws:
IllegalStateException- if the registration is cancelled
-