Class 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 Detail

      • AbstractFileSender

        public AbstractFileSender()
    • 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()