Class EventDispatcherFactory


  • @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
    public class EventDispatcherFactory
    extends Object
    Author:
    tom.fennelly@gmail.com
    • Field Detail

      • DISPATCHER_SESSION_KEY

        public static final String DISPATCHER_SESSION_KEY
    • Constructor Detail

      • EventDispatcherFactory

        public EventDispatcherFactory()
    • Method Detail

      • start

        public static EventDispatcher start​(@Nonnull
                                            String clientId,
                                            @Nonnull
                                            javax.servlet.http.HttpServletRequest request,
                                            @Nonnull
                                            javax.servlet.http.HttpServletResponse response)
      • newDispatcher

        public static EventDispatcher newDispatcher​(@Nonnull
                                                    String clientId,
                                                    @Nonnull
                                                    javax.servlet.http.HttpSession session)
        Create a new EventDispatcher instance and attach it to the user session.
        Parameters:
        clientId - The dispatcher client Id.
        session - The HttpSession.
        Returns:
        The new EventDispatcher instance.
      • getDispatcher

        @CheckForNull
        public static EventDispatcher getDispatcher​(@Nonnull
                                                    String dispatcherId,
                                                    @Nonnull
                                                    javax.servlet.http.HttpSession session)
        Get the specified EventDispatcher instance from the HttpSession.
        Parameters:
        dispatcherId - The dispatcher ID.
        session - The HttpSession.
        Returns:
        The EventDispatcher, or null if no such dispatcher is known.