psdi.webclient.servlet

Class RedirectServlet

  • java.lang.Object
    • javax.servlet.GenericServlet
      • javax.servlet.http.HttpServlet
        • psdi.webclient.servlet.RedirectServlet
  • All Implemented Interfaces:
    java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig


    public class RedirectServlet
    extends javax.servlet.http.HttpServlet
    Used for ITD Attachment Security
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      RedirectServlet() 
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) 
      protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) 
      static void fetchImage(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String url, java.lang.String reportAttExtension) 
      static java.lang.String getFileForGivenUrl(java.lang.String imagePath, boolean debugLocal) 
      static void processFile(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String imagePath, java.lang.String reportAttExtension) 
      • Methods inherited from class javax.servlet.http.HttpServlet

        doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
      • Methods inherited from class javax.servlet.GenericServlet

        destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RedirectServlet

        public RedirectServlet()
    • Method Detail

      • doPost

        protected final void doPost(javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response)
                             throws javax.servlet.ServletException,
                                    java.io.IOException
        Overrides:
        doPost in class javax.servlet.http.HttpServlet
        Throws:
        javax.servlet.ServletException
        java.io.IOException
      • doGet

        protected final void doGet(javax.servlet.http.HttpServletRequest request,
                                   javax.servlet.http.HttpServletResponse response)
                            throws javax.servlet.ServletException,
                                   java.io.IOException
        Overrides:
        doGet in class javax.servlet.http.HttpServlet
        Throws:
        javax.servlet.ServletException
        java.io.IOException
      • fetchImage

        public static void fetchImage(javax.servlet.http.HttpServletRequest request,
                                      javax.servlet.http.HttpServletResponse response,
                                      java.lang.String url,
                                      java.lang.String reportAttExtension)
                               throws javax.servlet.ServletException,
                                      java.io.IOException
        Throws:
        javax.servlet.ServletException
        java.io.IOException
      • processFile

        public static void processFile(javax.servlet.http.HttpServletRequest request,
                                       javax.servlet.http.HttpServletResponse response,
                                       java.lang.String imagePath,
                                       java.lang.String reportAttExtension)
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • getFileForGivenUrl

        public static java.lang.String getFileForGivenUrl(java.lang.String imagePath,
                                                          boolean debugLocal)
                                                   throws java.io.IOException
        Throws:
        java.io.IOException