Package org.silverpeas.core.web.mvc
Class AbstractFileSender
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.silverpeas.core.web.mvc.AbstractFileSender
-
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
- Direct Known Subclasses:
FileServer
,OnlineFileServer
,RestOnlineFileServer
public abstract class AbstractFileSender extends javax.servlet.http.HttpServlet
AbstractServlet used to send a binary file. Return the content of the warning key in the specified resourceLocator as message in case of error.- Author:
- ehugonnet
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractFileSender()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
displayWarningHtmlCode(javax.servlet.http.HttpServletResponse res)
protected abstract org.silverpeas.kernel.bundle.SettingBundle
getSettingBunde()
protected void
sendFile(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, SilverpeasFile file)
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
-
-
-
-
Method Detail
-
sendFile
protected void sendFile(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, SilverpeasFile file) throws IOException
- Throws:
IOException
-
displayWarningHtmlCode
protected void displayWarningHtmlCode(javax.servlet.http.HttpServletResponse res) throws IOException
- Throws:
IOException
-
getSettingBunde
protected abstract org.silverpeas.kernel.bundle.SettingBundle getSettingBunde()
-
-