Package io.undertow.servlet.sse
Class ServerSentEventSCI
- java.lang.Object
-
- io.undertow.servlet.sse.ServerSentEventSCI
-
- All Implemented Interfaces:
ServletContainerInitializer
public class ServerSentEventSCI extends Object implements ServletContainerInitializer
- Author:
- Stuart Douglas
-
-
Constructor Summary
Constructors Constructor Description ServerSentEventSCI()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonStartup(Set<Class<?>> c, ServletContext ctx)Notifies this ServletContainerInitializer of the startup of the application represented by the given ServletContext.
-
-
-
Method Detail
-
onStartup
public void onStartup(Set<Class<?>> c, ServletContext ctx) throws ServletException
Description copied from interface:ServletContainerInitializerNotifies this ServletContainerInitializer of the startup of the application represented by the given ServletContext.If this ServletContainerInitializer is bundled in a JAR file inside the WEB-INF/lib directory of an application, its onStartup method will be invoked only once during the startup of the bundling application. If this ServletContainerInitializer is bundled inside a JAR file outside of any WEB-INF/lib directory, but still discoverable as described above, its onStartup method will be invoked every time an application is started.
- Specified by:
onStartupin interfaceServletContainerInitializer- Parameters:
c- the Set of application classes that extend, implement, or have been annotated with the class types specified by theHandlesTypesannotation, or null if there are no matches, or this ServletContainerInitializer has not been annotated with HandlesTypesctx- the ServletContext of the web application that is being started and in which the classes contained in c were found- Throws:
ServletException- if an error has occurred
-
-