View Javadoc

1   package com.atlassian.sal.api.events;
2   
3   import javax.annotation.concurrent.Immutable;
4   import javax.servlet.http.HttpSessionListener;
5   
6   /**
7    * Represents an event published when a http session is destroyed.  Implementers should fire this event accordingly.
8    *
9    * @see HttpSessionListener
10   */
11  @Immutable
12  public class SessionDestroyedEvent extends AbstractSessionEvent {
13      private SessionDestroyedEvent(final String sessionId, final String userName) {
14          super(sessionId, userName);
15      }
16  
17      public static Builder builder() {
18          return new Builder();
19      }
20  
21      public static class Builder extends AbstractSessionEvent.Builder {
22          private Builder() {
23          }
24  
25          public SessionDestroyedEvent build() {
26              return new SessionDestroyedEvent(sessionId, userName);
27          }
28      }
29  }
30