001 package com.croftsoft.apps.chat.request;
002
003 import java.io.Serializable;
004
005 import com.croftsoft.core.lang.NullArgumentException;
006 import com.croftsoft.core.security.Authentication;
007
008 /*********************************************************************
009 * An abstract user request to the Server.
010 *
011 * @version
012 * 2003-06-20
013 * @since
014 * 2003-06-06
015 * @author
016 * <a href="http://www.CroftSoft.com/">David Wallace Croft</a>
017 *********************************************************************/
018
019 public abstract class AbstractRequest
020 implements Request
021 //////////////////////////////////////////////////////////////////////
022 //////////////////////////////////////////////////////////////////////
023 {
024
025 private static final long serialVersionUID = 0L;
026
027 //
028
029 protected final Authentication authentication;
030
031 //////////////////////////////////////////////////////////////////////
032 //////////////////////////////////////////////////////////////////////
033
034 public AbstractRequest ( Authentication authentication )
035 //////////////////////////////////////////////////////////////////////
036 {
037 NullArgumentException.check (
038 this.authentication = authentication );
039 }
040
041 //////////////////////////////////////////////////////////////////////
042 //////////////////////////////////////////////////////////////////////
043
044 public Authentication getAuthentication ( )
045 //////////////////////////////////////////////////////////////////////
046 {
047 return authentication;
048 }
049
050 //////////////////////////////////////////////////////////////////////
051 //////////////////////////////////////////////////////////////////////
052 }