Class SapOutboundIdFilter

  • All Implemented Interfaces:
    javax.servlet.Filter

    public class SapOutboundIdFilter
    extends java.lang.Object
    implements javax.servlet.Filter
    Capture the URL parameter sap-outbound-id and transfer the value to the user session.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void destroy()  
      void doFilter​(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)  
      void init​(javax.servlet.FilterConfig filterConfig)  
      protected java.util.Optional<java.lang.String> processId​(java.lang.String id)  
      void setSessionService​(SessionService sessionService)  
      void setTrackingURLKeys​(java.lang.String trackingURLKeys)  
      • Methods inherited from class java.lang.Object

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

      • IS_HEXADECIMAL

        protected static final java.util.function.IntPredicate IS_HEXADECIMAL
      • SAP_OUTBOUND_ID

        protected static final java.lang.String SAP_OUTBOUND_ID
        See Also:
        Constant Field Values
      • urlKeys

        protected final java.util.ArrayList<java.lang.String> urlKeys
    • Constructor Detail

      • SapOutboundIdFilter

        public SapOutboundIdFilter()
    • Method Detail

      • destroy

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

        public void doFilter​(javax.servlet.ServletRequest request,
                             javax.servlet.ServletResponse response,
                             javax.servlet.FilterChain chain)
                      throws java.io.IOException,
                             javax.servlet.ServletException
        Specified by:
        doFilter in interface javax.servlet.Filter
        Throws:
        java.io.IOException
        javax.servlet.ServletException
      • init

        public void init​(javax.servlet.FilterConfig filterConfig)
                  throws javax.servlet.ServletException
        Specified by:
        init in interface javax.servlet.Filter
        Throws:
        javax.servlet.ServletException
      • processId

        @Untainted
        protected java.util.Optional<java.lang.String> processId​(@Tainted
                                                                 java.lang.String id)
      • setSessionService

        public void setSessionService​(SessionService sessionService)
      • setTrackingURLKeys

        public void setTrackingURLKeys​(java.lang.String trackingURLKeys)