public class DamDownloadServlet
extends javax.servlet.http.HttpServlet
implements info.magnolia.cms.filters.SelfMappingServlet
Modifier and Type | Field and Description |
---|---|
static String |
FALL_BACK_PROVIDER_ID
Name of the default provider.
|
Constructor and Description |
---|
DamDownloadServlet(DamCoreConfiguration configuration,
info.magnolia.dam.api.AssetProviderRegistry assetProviderRegistry) |
Modifier and Type | Method and Description |
---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected info.magnolia.dam.api.Asset |
getAsset(javax.servlet.http.HttpServletRequest request)
Retrieve the
Asset related to the information contained into the pathInfo. |
String |
getSelfMappingPath() |
protected void |
process(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
The main task is to retrieve an Asset Object based on the
current Uri. |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public static final String FALL_BACK_PROVIDER_ID
@Inject public DamDownloadServlet(DamCoreConfiguration configuration, info.magnolia.dam.api.AssetProviderRegistry assetProviderRegistry)
protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
protected void process(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exception
public String getSelfMappingPath()
getSelfMappingPath
in interface info.magnolia.cms.filters.SelfMappingServlet
protected info.magnolia.dam.api.Asset getAsset(javax.servlet.http.HttpServletRequest request)
Asset
related to the information contained into the pathInfo.Asset
, null otherwise.Copyright © 2014 Magnolia International Ltd.. All rights reserved.