Package org.xwiki.resource.servlet
Class ResourceReferenceHandlerServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.xwiki.resource.servlet.ResourceReferenceHandlerServlet
-
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
public class ResourceReferenceHandlerServlet extends javax.servlet.http.HttpServlet
Handles any Resource Reference discovered by the Routing Filter and put in the HTTP Request. Any module who wish to add a new Resource Type in the XWiki URL simply needs to register a Handler component (of roleResourceReferenceHandler
) and any URL matching the correspondingResourceType
will be handled.- Since:
- 7.1M1
- Version:
- $Id: c0b733882a84698184757cd624b0407eab8fc687 $
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResourceReferenceHandlerServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init()
protected void
service(javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse)
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
-
-
-
-
Method Detail
-
init
public void init() throws javax.servlet.ServletException
- Overrides:
init
in classjavax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
-
service
protected void service(javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse) throws javax.servlet.ServletException, IOException
- Overrides:
service
in classjavax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
-
-