fr.paris.lutece.plugins.rest.service
Class LuteceJerseySpringServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.sun.jersey.spi.container.servlet.ServletContainer
fr.paris.lutece.plugins.rest.service.LuteceJerseySpringServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Filter, javax.servlet.Servlet, javax.servlet.ServletConfig
public class LuteceJerseySpringServlet
- extends com.sun.jersey.spi.container.servlet.ServletContainer
LuteceJerseySpringServlet : using SpringContextService.getContext() as context.
- See Also:
ServletContainer,
Serialized Form
| Nested classes/interfaces inherited from class com.sun.jersey.spi.container.servlet.ServletContainer |
com.sun.jersey.spi.container.servlet.ServletContainer.ContextInjectableProvider<T> |
| Fields inherited from class com.sun.jersey.spi.container.servlet.ServletContainer |
APPLICATION_CONFIG_CLASS, JSP_TEMPLATES_BASE_PATH, PROPERTY_WEB_PAGE_CONTENT_REGEX, RESOURCE_CONFIG_CLASS |
|
Method Summary |
void |
doFilter(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain chain)
Checks if the request is authenticated. |
protected com.sun.jersey.api.core.ResourceConfig |
getDefaultResourceConfig(java.util.Map<java.lang.String,java.lang.Object> props,
com.sun.jersey.spi.container.servlet.WebConfig webConfig)
|
protected void |
initiate(com.sun.jersey.api.core.ResourceConfig rc,
com.sun.jersey.spi.container.WebApplication wa)
Initialize the services. |
| Methods inherited from class com.sun.jersey.spi.container.servlet.ServletContainer |
configure, configure, configure, create, destroy, doFilter, getDefaultResourceConfig, getServletContext, getStaticContentPattern, getWebConfig, init, init, init, load, reload, service, service |
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service |
| Methods inherited from class javax.servlet.GenericServlet |
getInitParameter, getInitParameterNames, getServletConfig, getServletInfo, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LuteceJerseySpringServlet
public LuteceJerseySpringServlet()
getDefaultResourceConfig
protected com.sun.jersey.api.core.ResourceConfig getDefaultResourceConfig(java.util.Map<java.lang.String,java.lang.Object> props,
com.sun.jersey.spi.container.servlet.WebConfig webConfig)
throws javax.servlet.ServletException
-
- Overrides:
getDefaultResourceConfig in class com.sun.jersey.spi.container.servlet.ServletContainer
- Throws:
javax.servlet.ServletException
initiate
protected void initiate(com.sun.jersey.api.core.ResourceConfig rc,
com.sun.jersey.spi.container.WebApplication wa)
- Initialize the services. Adds suffix to mediatype mapping.
- Overrides:
initiate in class com.sun.jersey.spi.container.servlet.ServletContainer
- Parameters:
rc - ResourceConfigwa - WebApplication- See Also:
com.sun.jersey.api.container.filter.UriConnegFilter
doFilter
public void doFilter(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain chain)
throws java.io.IOException,
javax.servlet.ServletException
- Checks if the request is authenticated. Sets
HttpServletResponse.SC_UNAUTHORIZED if not,
calls ServletContainer.doFilter(HttpServletRequest, HttpServletResponse, FilterChain) otherwise.
- Overrides:
doFilter in class com.sun.jersey.spi.container.servlet.ServletContainer
- Parameters:
request - the HTTP requestresponse - the responsechain - the filter chain
- Throws:
java.io.IOException - exception if I/O error
javax.servlet.ServletException - exception if servlet error
Copyright © 2011 Mairie de Paris. All Rights Reserved.