public class ResourcesServlet
extends javax.servlet.http.HttpServlet
implements info.magnolia.cms.filters.SelfMappingServlet
ResourceOrigin
) under the path /.resources/
.Constructor and Description |
---|
ResourcesServlet(ResourceLinker linker) |
Modifier and Type | Method and Description |
---|---|
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected String |
getResourcePathFromRequest(javax.servlet.http.HttpServletRequest request) |
String |
getSelfMappingPath() |
protected void |
serveResource(javax.servlet.http.HttpServletResponse response,
info.magnolia.resourceloader.Resource resource) |
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
@Inject public ResourcesServlet(ResourceLinker linker)
public String getSelfMappingPath()
getSelfMappingPath
in interface info.magnolia.cms.filters.SelfMappingServlet
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
doGet
in class javax.servlet.http.HttpServlet
IOException
javax.servlet.ServletException
protected String getResourcePathFromRequest(javax.servlet.http.HttpServletRequest request)
protected void serveResource(javax.servlet.http.HttpServletResponse response, info.magnolia.resourceloader.Resource resource) throws IOException
IOException
Copyright © 2015 Magnolia International Ltd.. All rights reserved.