public class SessionEvent extends AuditEvent
Modifier and Type | Field and Description |
---|---|
static int |
SESSION_AUTH_FAILURE |
static int |
SESSION_AUTH_SUCCESS |
static int |
SESSION_CODE
Session events use the code 1
|
static int |
SESSION_CONNECT |
static int |
SESSION_DISCONNECT |
static int |
SESSION_STREAM |
USER_CODES
Modifier and Type | Method and Description |
---|---|
static SessionEvent |
createAuthFailureEvent(Session session,
String user,
String resource)
Create an event associated with the failure of a session to authenticate.
|
static SessionEvent |
createAuthSuccessEvent(Session session)
Create an event associated with a successful authentication.
|
static SessionEvent |
createConnectEvent(Session session)
Create an event associated with the initial connection
of a session before the stream is created.
|
static SessionEvent |
createDisconnectEvent(Session session)
Create an event associated with the closing of a session.
|
static SessionEvent |
createStreamEvent(Session session)
Create an event associated with the establishment of an XMPP session.
|
getCode, getData, getReason, getSession, getTimestamp, setCode, setData, setReason, setSession, setTimestamp
public static final int SESSION_CODE
public static final int SESSION_CONNECT
public static final int SESSION_STREAM
public static final int SESSION_AUTH_FAILURE
public static final int SESSION_AUTH_SUCCESS
public static final int SESSION_DISCONNECT
public static SessionEvent createConnectEvent(Session session)
session
- the session that was connected.public static SessionEvent createStreamEvent(Session session)
session
- the session that began streaming.public static SessionEvent createAuthFailureEvent(Session session, String user, String resource)
session
- the session that made the attemptuser
- the user that made the attemptresource
- the resource used for the attemptpublic static SessionEvent createAuthSuccessEvent(Session session)
session
- the session that authenticated.public static SessionEvent createDisconnectEvent(Session session)
session
- the session that was disconnected.Copyright © 2003-2008 Jive Software.