public abstract class YakJerseyWebAppInitializer
extends java.lang.Object
implements org.springframework.web.WebApplicationInitializer
| Constructor and Description |
|---|
YakJerseyWebAppInitializer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addFilters(javax.servlet.ServletContext servletContext,
org.springframework.web.context.WebApplicationContext appContext) |
protected void |
addJerseyFilter(javax.servlet.ServletContext servletContext,
org.springframework.web.context.WebApplicationContext appContext)
Configures the Jersey filter
|
protected void |
addJspfServlet(javax.servlet.ServletContext servletContext,
org.springframework.web.context.WebApplicationContext appContext)
Includes jspf as servlet
|
protected void |
addListeners(javax.servlet.ServletContext servletContext,
org.springframework.web.context.WebApplicationContext appContext) |
protected void |
addServlets(javax.servlet.ServletContext servletContext,
org.springframework.web.context.WebApplicationContext appContext) |
protected void |
addSpringSecurityFilter(javax.servlet.ServletContext servletContext,
org.springframework.web.context.WebApplicationContext appContext)
Configures the Spring Security filter
|
protected java.lang.String |
buildStaticContentRegex() |
protected org.springframework.web.context.WebApplicationContext |
createWebApplicationContext(javax.servlet.ServletContext servletContext) |
abstract java.lang.Class<? extends org.glassfish.jersey.server.ResourceConfig> |
getApplicationClass(javax.servlet.ServletContext servletContext,
org.springframework.web.context.WebApplicationContext appContext)
Identifies the Jersey ResourceConfig for this app
|
abstract java.lang.String |
getEnvironmentPropertyName(javax.servlet.ServletContext servletContext,
org.springframework.web.context.WebApplicationContext appContext)
Defines the name of the system property that is used to
identify the application's current environment.
|
protected abstract java.lang.String |
getProfilesPropertyName(javax.servlet.ServletContext servletContext,
org.springframework.web.context.WebApplicationContext appContext)
Defines the name of the system property that is used to
override the list of spring profiles for this application.
|
protected abstract java.lang.Class<?>[] |
getSpringConfigClasses(javax.servlet.ServletContext servletContext,
org.springframework.web.context.WebApplicationContext appContext) |
protected abstract java.lang.String |
getSpringConfigLocation(javax.servlet.ServletContext servletContext,
org.springframework.web.context.WebApplicationContext appContext)
Defines the location of the main spring config file.
|
protected java.lang.String[] |
getSpringProfiles(javax.servlet.ServletContext servletContext,
org.springframework.web.context.WebApplicationContext appContext) |
protected java.util.Collection<java.lang.String> |
getStaticResourceUrlPatterns() |
void |
onStartup(javax.servlet.ServletContext servletContext) |
public abstract java.lang.Class<? extends org.glassfish.jersey.server.ResourceConfig> getApplicationClass(javax.servlet.ServletContext servletContext,
org.springframework.web.context.WebApplicationContext appContext)
public abstract java.lang.String getEnvironmentPropertyName(javax.servlet.ServletContext servletContext,
org.springframework.web.context.WebApplicationContext appContext)
protected abstract java.lang.String getProfilesPropertyName(javax.servlet.ServletContext servletContext,
org.springframework.web.context.WebApplicationContext appContext)
protected abstract java.lang.String getSpringConfigLocation(javax.servlet.ServletContext servletContext,
org.springframework.web.context.WebApplicationContext appContext)
protected abstract java.lang.Class<?>[] getSpringConfigClasses(javax.servlet.ServletContext servletContext,
org.springframework.web.context.WebApplicationContext appContext)
public void onStartup(javax.servlet.ServletContext servletContext)
throws javax.servlet.ServletException
onStartup in interface org.springframework.web.WebApplicationInitializerjavax.servlet.ServletExceptionprotected void addFilters(javax.servlet.ServletContext servletContext,
org.springframework.web.context.WebApplicationContext appContext)
protected void addListeners(javax.servlet.ServletContext servletContext,
org.springframework.web.context.WebApplicationContext appContext)
protected org.springframework.web.context.WebApplicationContext createWebApplicationContext(javax.servlet.ServletContext servletContext)
protected void addSpringSecurityFilter(javax.servlet.ServletContext servletContext,
org.springframework.web.context.WebApplicationContext appContext)
protected void addJerseyFilter(javax.servlet.ServletContext servletContext,
org.springframework.web.context.WebApplicationContext appContext)
protected java.lang.String buildStaticContentRegex()
protected java.util.Collection<java.lang.String> getStaticResourceUrlPatterns()
protected void addServlets(javax.servlet.ServletContext servletContext,
org.springframework.web.context.WebApplicationContext appContext)
protected void addJspfServlet(javax.servlet.ServletContext servletContext,
org.springframework.web.context.WebApplicationContext appContext)
protected java.lang.String[] getSpringProfiles(javax.servlet.ServletContext servletContext,
org.springframework.web.context.WebApplicationContext appContext)