Package org.gatein.wci.spi
Interface ServletContainerContext.Registration
-
- Enclosing interface:
- ServletContainerContext
public static interface ServletContainerContext.RegistrationThe callback interface that a servlet container context can obtain from its registration against theorg.jboss.portal.web.ServletContainersingleton.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcancel()Cancel the registration against the servlet container.booleanregisterWebApp(WebAppContext webAppContext)Registers a web application.booleanunregisterWebApp(String contextPath)Unregister a web application.
-
-
-
Method Detail
-
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
boolean unregisterWebApp(String contextPath) throws IllegalStateException, IllegalArgumentException
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
void cancel() throws IllegalStateExceptionCancel the registration against the servlet container.- Throws:
IllegalStateException- if the registration is cancelled
-
-