@ThreadSafe public final class MockHttpListener extends Object
ServletContextListener
, HttpSessionListener and ServletRequestListener) that are
triggered in tests.| Modifier and Type | Method and Description |
|---|---|
static void |
addDefaultListener(EventListener aListener) |
static void |
addListener(EventListener aListener) |
static com.helger.commons.collection.impl.ICommonsList<javax.servlet.http.HttpSessionListener> |
getAllHttpSessionListeners() |
static com.helger.commons.collection.impl.ICommonsList<javax.servlet.ServletContextListener> |
getAllServletContextListeners() |
static com.helger.commons.collection.impl.ICommonsList<javax.servlet.ServletRequestListener> |
getAllServletRequestListeners() |
static void |
removeAllDefaultListeners() |
static void |
removeAllListeners() |
static void |
removeDefaultListeners(Class<? extends EventListener> aListenerClass) |
static void |
removeListeners(Class<? extends EventListener> aListenerClass) |
static void |
setCurrentToDefault() |
public static void addDefaultListener(@Nonnull EventListener aListener)
public static void removeDefaultListeners(@Nonnull Class<? extends EventListener> aListenerClass)
public static void removeAllDefaultListeners()
public static void setCurrentToDefault()
public static void addListener(@Nonnull EventListener aListener)
public static void removeListeners(@Nonnull Class<? extends EventListener> aListenerClass)
public static void removeAllListeners()
@Nonnull @ReturnsMutableCopy public static com.helger.commons.collection.impl.ICommonsList<javax.servlet.ServletContextListener> getAllServletContextListeners()
@Nonnull @ReturnsMutableCopy public static com.helger.commons.collection.impl.ICommonsList<javax.servlet.http.HttpSessionListener> getAllHttpSessionListeners()
@Nonnull @ReturnsMutableCopy public static com.helger.commons.collection.impl.ICommonsList<javax.servlet.ServletRequestListener> getAllServletRequestListeners()
Copyright © 2016–2019 Philip Helger. All rights reserved.