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 booleancanHandleType(String type) protected voidgetResource(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String mimetype) protected StringgetResourceIdentifier(String type, String identifier) Methods inherited from class com.levigo.jadice.web.conn.server.AbstractDownloadServlet
doGet, getData, logClientClosedExceptionMethods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, init, service, serviceMethods 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:
IndexOutOfBoundsExceptionIOException
-
canHandleType
-
getResourceIdentifier
-