Class ResourceServlet
- java.lang.Object
-
- jakarta.servlet.GenericServlet
-
- jakarta.servlet.http.HttpServlet
-
- net.anotheria.moskito.web.MoskitoHttpServlet
-
- net.anotheria.anosite.content.servlet.resource.ResourceServlet
-
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable,net.anotheria.moskito.core.producers.IStatsProducer
- Direct Known Subclasses:
CMSFileServlet,CMSImageServlet
public abstract class ResourceServlet extends net.anotheria.moskito.web.MoskitoHttpServletResource servlet. Serves for Images and Files stream.- Author:
- h3ll
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResourceServlet()Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract StringgetFileName(ResourceReadType type, String propertyValue)Returns file name, from document which was selected!static org.slf4j.LoggergetLog()IASResourceDataServicegetResourceService()protected voidmoskitoDoGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res)protected voidmoskitoDoPost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res)-
Methods inherited from class net.anotheria.moskito.web.MoskitoHttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getCategory, getLastModified, getMonitoringIntervals, getProducerId, getStats, getSubsystem, init, moskitoDoDelete, moskitoDoHead, moskitoDoOptions, moskitoDoPut, moskitoDoTrace, moskitoGetLastModified, useShortStatList
-
-
-
-
Method Detail
-
moskitoDoGet
protected void moskitoDoGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) throws jakarta.servlet.ServletException, IOException- Overrides:
moskitoDoGetin classnet.anotheria.moskito.web.MoskitoHttpServlet- Throws:
jakarta.servlet.ServletExceptionIOException
-
getFileName
protected abstract String getFileName(ResourceReadType type, String propertyValue) throws jakarta.servlet.ServletException
Returns file name, from document which was selected!- Parameters:
type-ResourceReadTypepropertyValue- value of property- Returns:
- file name
- Throws:
jakarta.servlet.ServletException- on errors from ResourceService
-
getLog
public static org.slf4j.Logger getLog()
-
getResourceService
public IASResourceDataService getResourceService()
-
moskitoDoPost
protected void moskitoDoPost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) throws jakarta.servlet.ServletException, IOException- Overrides:
moskitoDoPostin classnet.anotheria.moskito.web.MoskitoHttpServlet- Throws:
jakarta.servlet.ServletExceptionIOException
-
-