public class EnunciateJerseyServletContainer
extends com.sun.jersey.spi.container.servlet.ServletContainer
APPLICATION_CONFIG_CLASS, FEATURE_ALLOW_RAW_MANAGED_BEANS, FEATURE_FILTER_FORWARD_ON_404, GLASSFISH_DEFAULT_ERROR_PAGE_RESPONSE, JSP_TEMPLATES_BASE_PATH, PROPERTY_FILTER_CONTEXT_PATH, PROPERTY_WEB_PAGE_CONTENT_REGEX, RESOURCE_CONFIG_CLASS| Constructor and Description |
|---|
EnunciateJerseyServletContainer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configure(javax.servlet.ServletConfig sc,
com.sun.jersey.api.core.ResourceConfig rc,
com.sun.jersey.spi.container.WebApplication wa) |
protected com.sun.jersey.spi.container.WebApplication |
create() |
static ClassLoader |
getDefaultClassLoader()
Return the default ClassLoader to use: typically the thread context
ClassLoader, if available; the ClassLoader that loaded the EnunciateJAXBContextResolver
class will be used as fallback.
|
protected void |
initiate(com.sun.jersey.api.core.ResourceConfig rc,
com.sun.jersey.spi.container.WebApplication wa) |
protected Class |
loadClass(String classname)
Loads a class from the classpath.
|
protected InputStream |
loadResource(String resource)
Loads a resource from the classpath.
|
protected com.sun.jersey.core.spi.component.ioc.IoCComponentProviderFactory |
loadResourceProviderFacotry(com.sun.jersey.api.core.ResourceConfig rc)
Attempts to load the spring component provider factory, if spring is enabled.
|
void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
configure, configure, destroy, doFilter, doFilter, getDefaultResourceConfig, getDefaultResourceConfig, getServletContext, getStaticContentPattern, getWebConfig, init, init, init, load, reload, servicedoDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, serviceprotected void configure(javax.servlet.ServletConfig sc,
com.sun.jersey.api.core.ResourceConfig rc,
com.sun.jersey.spi.container.WebApplication wa)
configure in class com.sun.jersey.spi.container.servlet.ServletContainerprotected void initiate(com.sun.jersey.api.core.ResourceConfig rc,
com.sun.jersey.spi.container.WebApplication wa)
initiate in class com.sun.jersey.spi.container.servlet.ServletContainerprotected com.sun.jersey.spi.container.WebApplication create()
create in class com.sun.jersey.spi.container.servlet.ServletContainerprotected com.sun.jersey.core.spi.component.ioc.IoCComponentProviderFactory loadResourceProviderFacotry(com.sun.jersey.api.core.ResourceConfig rc)
rc - The resource config.public void service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
service in class com.sun.jersey.spi.container.servlet.ServletContainerjavax.servlet.ServletExceptionIOExceptionpublic static ClassLoader getDefaultClassLoader()
Call this method if you intend to use the thread context ClassLoader
in a scenario where you absolutely need a non-null ClassLoader reference:
for example, for class path resource loading (but not necessarily for
Class.forName, which accepts a null ClassLoader
reference as well).
null)Thread.getContextClassLoader()protected InputStream loadResource(String resource)
resource - The resource to load.protected Class loadClass(String classname) throws ClassNotFoundException
classname - The class name.ClassNotFoundExceptionCopyright © 2016. All rights reserved.