Class PermanentURLFilter

  • All Implemented Interfaces:
    javax.servlet.Filter

    public class PermanentURLFilter
    extends java.lang.Object
    implements javax.servlet.Filter
    Filter applied to all the requests to the InterMine server in order to catch the requests with permanent URL and redirect to the report page. Example: humanmine.org/humanmine/protein:P31946 -> humanmine.org/humanmine/report.do?id=1234567
    Author:
    danielabutano
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void destroy()
      void doFilter​(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res, javax.servlet.FilterChain chain)
      Filters all the intermine requests
      void init​(javax.servlet.FilterConfig filterConfig)
      Initialise this Filter.
      • Methods inherited from class java.lang.Object

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

      • PermanentURLFilter

        public PermanentURLFilter()
    • Method Detail

      • doFilter

        public void doFilter​(javax.servlet.ServletRequest req,
                             javax.servlet.ServletResponse res,
                             javax.servlet.FilterChain chain)
                      throws java.io.IOException,
                             javax.servlet.ServletException
        Filters all the intermine requests
        Specified by:
        doFilter in interface javax.servlet.Filter
        Throws:
        java.io.IOException
        javax.servlet.ServletException
      • init

        public void init​(javax.servlet.FilterConfig filterConfig)
        Initialise this Filter.
        Specified by:
        init in interface javax.servlet.Filter
      • destroy

        public void destroy()
        Specified by:
        destroy in interface javax.servlet.Filter