Package org.pentaho.platform.web.servlet
Class JAXRSServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- com.sun.jersey.spi.container.servlet.ServletContainer
-
- com.sun.jersey.spi.spring.container.servlet.SpringServlet
-
- org.pentaho.platform.web.servlet.JAXRSServlet
-
- All Implemented Interfaces:
Serializable
,javax.servlet.Filter
,javax.servlet.Servlet
,javax.servlet.ServletConfig
public class JAXRSServlet extends com.sun.jersey.spi.spring.container.servlet.SpringServlet
This should only be used by a plugin in the plugin.spring.xml file to initialize a Jersey. The presence of this servlet in the spring file will make it possible to write JAX-RS POJOs in your plugin.- Author:
- Aaron Phillips
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.sun.jersey.spi.container.servlet.ServletContainer
com.sun.jersey.spi.container.servlet.ServletContainer.ContextInjectableProvider<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static String
ACCEPT
static String
GET
static String
GET_HEADERS
static String
MIME_TYPE
protected boolean
SendEmptyEntityForServicesFlag
static String
SET_STATUS
-
Fields inherited from class com.sun.jersey.spi.spring.container.servlet.SpringServlet
CONTEXT_CONFIG_LOCATION
-
Fields inherited from class 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 Summary
Constructors Constructor Description JAXRSServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
callSuperInitiate(com.sun.jersey.api.core.ResourceConfig rc, com.sun.jersey.spi.container.WebApplication wa)
protected com.sun.jersey.spi.container.servlet.WebServletConfig
createWebConfig(com.sun.jersey.spi.container.servlet.ServletContainer container)
protected org.springframework.context.ApplicationContext
getAppContext()
protected org.springframework.context.ConfigurableApplicationContext
getContext()
void
init()
protected void
initiate(com.sun.jersey.api.core.ResourceConfig rc, com.sun.jersey.spi.container.WebApplication wa)
void
service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
void
service(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res)
-
Methods inherited from class com.sun.jersey.spi.spring.container.servlet.SpringServlet
getChildContext, getDefaultContext, getDefaultResourceConfig
-
Methods inherited from class com.sun.jersey.spi.container.servlet.ServletContainer
configure, configure, configure, create, destroy, doFilter, doFilter, getDefaultResourceConfig, getServletContext, getStaticContentPattern, getWebConfig, init, init, load, reload, service
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified
-
-
-
-
Field Detail
-
MIME_TYPE
public static final String MIME_TYPE
- See Also:
- Constant Field Values
-
GET_HEADERS
public static final String GET_HEADERS
- See Also:
- Constant Field Values
-
SET_STATUS
public static final String SET_STATUS
- See Also:
- Constant Field Values
-
ACCEPT
public static final String ACCEPT
- See Also:
- Constant Field Values
-
GET
public static final String GET
- See Also:
- Constant Field Values
-
SendEmptyEntityForServicesFlag
protected boolean SendEmptyEntityForServicesFlag
-
-
Method Detail
-
getContext
protected org.springframework.context.ConfigurableApplicationContext getContext()
- Overrides:
getContext
in classcom.sun.jersey.spi.spring.container.servlet.SpringServlet
-
service
public void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
- Overrides:
service
in classcom.sun.jersey.spi.container.servlet.ServletContainer
- Throws:
javax.servlet.ServletException
IOException
-
service
public void service(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res) throws javax.servlet.ServletException, IOException
- Specified by:
service
in interfacejavax.servlet.Servlet
- Overrides:
service
in classjavax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
-
initiate
protected void initiate(com.sun.jersey.api.core.ResourceConfig rc, com.sun.jersey.spi.container.WebApplication wa)
- Overrides:
initiate
in classcom.sun.jersey.spi.spring.container.servlet.SpringServlet
-
callSuperInitiate
protected void callSuperInitiate(com.sun.jersey.api.core.ResourceConfig rc, com.sun.jersey.spi.container.WebApplication wa)
-
getAppContext
protected org.springframework.context.ApplicationContext getAppContext()
-
init
public void init() throws javax.servlet.ServletException
- Overrides:
init
in classcom.sun.jersey.spi.container.servlet.ServletContainer
- Throws:
javax.servlet.ServletException
-
createWebConfig
protected com.sun.jersey.spi.container.servlet.WebServletConfig createWebConfig(com.sun.jersey.spi.container.servlet.ServletContainer container)
-
-