clientevent.java

来自「java开源的企业总线.xmlBlaster」· Java 代码 · 共 65 行

JAVA
65
字号
/*------------------------------------------------------------------------------Name:      ClientEvent.javaProject:   xmlBlaster.orgCopyright: xmlBlaster.org, see xmlBlaster-LICENSE fileComment:   Transports SessionInfo or SubjectInfoVersion:   $Id: ClientEvent.java 14038 2005-11-12 11:11:41Z laghi $------------------------------------------------------------------------------*/package org.xmlBlaster.authentication;import org.xmlBlaster.engine.qos.ConnectQosServer;/** * An event which indicates that a client did a login or logout. * It carries the SessionInfo reference inside * * @author Marcel Ruff */public class ClientEvent extends java.util.EventObject {      /**    * Constructs a ClientEvent object.    *    * @param the client which does the login or logout    */   public ClientEvent(SessionInfo sessionInfo) {       super(sessionInfo);   }   /**    * Returns the connectQos or null of the event.    * @return the connectQos (could be null if not passed in the constructor)    */   public ConnectQosServer getConnectQos() {                       return getSessionInfo().getConnectQos();   }      /**    * Returns the originator of the event.    *    * @return the client which does the login or logout    */   public SessionInfo getSessionInfo() {       return (SessionInfo)source;   }   /**    * Constructs a ClientEvent object.    *    * @param the client which does the login or logout    */   public ClientEvent(SubjectInfo subjectInfo) {       super(subjectInfo);   }   /**    * Returns the originator of the event.    *    * @return the client which does the login or logout    */   public SubjectInfo getSubjectInfo() {       return (SubjectInfo)source;   }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?