Class GalaxySessionInterceptor

  • All Implemented Interfaces:
    org.springframework.web.servlet.AsyncHandlerInterceptor, org.springframework.web.servlet.HandlerInterceptor

    public class GalaxySessionInterceptor
    extends java.lang.Object
    implements org.springframework.web.servlet.AsyncHandlerInterceptor
    Interceptor to determine if the HttpServletRequest is from a Galaxy Instance. If it is this gets added to the session so that the user is presented with the appropriate information, and cart page.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean preHandle​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Object handler)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.springframework.web.servlet.AsyncHandlerInterceptor

        afterConcurrentHandlingStarted
      • Methods inherited from interface org.springframework.web.servlet.HandlerInterceptor

        afterCompletion, postHandle
    • Field Detail

      • GALAXY_CALLBACK_URL

        public static final java.lang.String GALAXY_CALLBACK_URL
        See Also:
        Constant Field Values
      • GALAXY_CLIENT_ID

        public static final java.lang.String GALAXY_CLIENT_ID
        See Also:
        Constant Field Values
    • Constructor Detail

      • GalaxySessionInterceptor

        public GalaxySessionInterceptor()
    • Method Detail

      • preHandle

        public boolean preHandle​(javax.servlet.http.HttpServletRequest request,
                                 javax.servlet.http.HttpServletResponse response,
                                 java.lang.Object handler)
                          throws java.lang.Exception
        Specified by:
        preHandle in interface org.springframework.web.servlet.HandlerInterceptor
        Throws:
        java.lang.Exception