Class ResourceServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.levigo.jadice.web.conn.server.AbstractDownloadServlet
com.levigo.jadice.web.demo.enterprise.server.ResourceServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet
,jakarta.servlet.ServletConfig
,Serializable
- Direct Known Subclasses:
AudioServlet
,MediaMetadataServlet
,VideoServlet
An abstract servlet for downloading different resources from the classpath or file uploads.
- See Also:
-
Field Summary
FieldsFields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canHandleType
(String type) protected void
getResource
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String mimetype) protected String
getResourceIdentifier
(String type, String identifier) Methods inherited from class com.levigo.jadice.web.conn.server.AbstractDownloadServlet
doGet, getData, logClientClosedException
Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPatch, doPost, doPut, doTrace, getLastModified, init, isSensitiveHeader, service, service
Methods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Field Details
-
fileUploadService
-
-
Constructor Details
-
ResourceServlet
public ResourceServlet()
-
-
Method Details
-
getResource
protected void getResource(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String mimetype) throws IndexOutOfBoundsException, IOException - Throws:
IndexOutOfBoundsException
IOException
-
canHandleType
-
getResourceIdentifier
-