public interface ServletContainerProvider
org.glassfish.jersey.servlet.init.JerseyServletContainerInitializer.
The provider implementation class is registered via META-INF/services.| Modifier and Type | Method and Description |
|---|---|
void |
configure(ResourceConfig resourceConfig)
This method is called for each
ServletContainer instance initialization,
i.e. |
void |
init(javax.servlet.ServletContext servletContext)
Do your initialization job before Jersey starts its servlet initialization.
|
void |
onRegister(javax.servlet.ServletContext servletContext,
String... servletNames)
Notifies the provider about all registered Jersey servlets by its names.
|
void init(javax.servlet.ServletContext servletContext)
throws javax.servlet.ServletException
servletContext - the ServletContext of the web application that is being startedjavax.servlet.ServletException - if an error has occurred. javax.servlet.ServletContainerInitializer.onStartup
is interrupted.void configure(ResourceConfig resourceConfig) throws javax.servlet.ServletException
ServletContainer instance initialization,
i.e. during WebComponent initialization.
The method is also called during ServletContainer.reload() or ServletContainer.reload(ResourceConfig)
methods invocation.
It does not matter servlet container is configured in web.xml or by
org.glassfish.jersey.servlet.init.JerseyServletContainerInitializer.resourceConfig - Jersey application configuration.javax.servlet.ServletException - if an error has occurred.void onRegister(javax.servlet.ServletContext servletContext,
String... servletNames)
throws javax.servlet.ServletException
ServletContainer or
org.glassfish.jersey.servlet.portability.PortableServletContainer servlets.
It does not matter servlet container is configured in web.xml or by
org.glassfish.jersey.servlet.init.JerseyServletContainerInitializer.servletContext - the ServletContext of the JAX-RS/Jersey web application that
is being started.servletNames - Jersey's ServletContainer names. May be empty.javax.servlet.ServletException - if an error has occurred.Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.