001 package com.croftsoft.apps.chat.response;
002
003 /*********************************************************************
004 * Abstract base class for a Response.
005 *
006 * @version
007 * 2003-06-17
008 * @since
009 * 2003-06-07
010 * @author
011 * <a href="http://www.CroftSoft.com/">David Wallace Croft</a>
012 *********************************************************************/
013
014 public abstract class AbstractResponse
015 implements Response
016 //////////////////////////////////////////////////////////////////////
017 //////////////////////////////////////////////////////////////////////
018 {
019
020 private static final long serialVersionUID = 0L;
021
022 //
023
024 private final boolean denied;
025
026 //////////////////////////////////////////////////////////////////////
027 //////////////////////////////////////////////////////////////////////
028
029 public AbstractResponse ( boolean denied )
030 //////////////////////////////////////////////////////////////////////
031 {
032 this.denied = denied;
033 }
034
035 public AbstractResponse ( )
036 //////////////////////////////////////////////////////////////////////
037 {
038 this ( false );
039 }
040
041 //////////////////////////////////////////////////////////////////////
042 //////////////////////////////////////////////////////////////////////
043
044 public boolean isDenied ( ) { return denied; }
045
046 //////////////////////////////////////////////////////////////////////
047 //////////////////////////////////////////////////////////////////////
048 }