/*
*
*
* Created on 19 ianuarie 2007, 23:52
*
* DSHub ADC HubSoft
* Copyright (C) 2007,2008 Eugen Hristev
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package ru.sincore.util;
/**
* @author Pietricica
* @author Valor
*/
public final class Constants
{
// STA Severity codes block
public static final int STA_SEVERITY_SUCCESS = 0;
public static final int STA_SEVERITY_RECOVERABLE = 100;
public static final int STA_SEVERITY_FATAL = 200;
// STA Error codes block
public static final int STA_GENERIC_ERROR = 0;
public static final int STA_GENERIC_HUB_ERROR = 10;
public static final int STA_HUB_FULL = 11;
public static final int STA_HUB_DISABLED = 12;
public static final int STA_GENERIC_LOGIN_ERROR = 20;
public static final int STA_NICK_INVALID = 21;
public static final int STA_NICK_TAKEN = 22;
public static final int STA_INVALID_PASSWORD = 23;
public static final int STA_CID_TAKEN = 24;
public static final int STA_ACCESS_DENIED = 25;
public static final int STA_REG_ONLY = 26;
public static final int STA_INVALID_PID = 27;
public static final int STA_GENERIC_KICK_DISCONNECT_BAN = 30;
public static final int STA_PERMANENTLY_BANNED = 31;
public static final int STA_TEMP_BANNED = 32;
public static final int STA_GENERIC_PROTOCOL_ERROR = 40;
public static final int STA_TRANSFER_PROTOCOL_ERROR = 41;
public static final int STA_DIRECT_CONNECT_FAILED = 42;
public static final int STA_REQUIRED_INF_FIELD_BAD_MISSING = 43;
public static final int STA_INVALID_STATE = 44;
public static final int STA_REQUIRED_FEATURE_MISSING = 45;
public static final int STA_INVALID_IP = 46;
public static final int STA_NO_HASH_OVERLAP = 47;
// Ban types
public static final int KICK = 0;
public static final int BAN_TEMPORARY = 1;
public static final int BAN_PERMANENT = 2;
// Ban show types
public static final int ALL = 0;
public static final int ACTIVE = 1;
public static final int EXPIRED = 2;
//Other const block
public static final String EMPTY_STR = "";
// Session atributes
public static final String SESSION_ATTRIBUTE_CLIENT = "client";
public static final String LOGGER_FILTER = "logger";
public static final String ZLIB_FILTER = "zlib";
public static final String CODEC_FILTER = "codec";
// ClientInfo additional stats
public static final String BANNED_BY_SHARE_MESSAGE_SENT = "banned_by_share_message_sent";
}