1 /* 2 * File : IPBanned.java 3 * Created : 08-Jan-2007 4 * By : jstockall 5 * Copyright (C) Azureus Software, Inc, All Rights Reserved. 6 * 7 * Azureus - a Java Bittorrent client 8 * 9 * This program is free software; you can redistribute it and/or modify 10 * it under the terms of the GNU General Public License as published by 11 * the Free Software Foundation; either version 2 of the License, or 12 * (at your option) any later version. 13 * 14 * This program is distributed in the hope that it will be useful, 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 * GNU General Public License for more details ( see the LICENSE file ). 18 * 19 * You should have received a copy of the GNU General Public License 20 * along with this program; if not, write to the Free Software 21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 22 */ 23 24 package org.gudy.azureus2.pluginsimpl.local.ipfilter; 25 26 /** 27 * @author jstockall 28 * 29 */ 30 31 import org.gudy.azureus2.core3.ipfilter.BannedIp; 32 import org.gudy.azureus2.plugins.ipfilter.IPBanned; 33 34 public class 35 IPBannedImpl 36 implements IPBanned 37 { 38 protected BannedIp banned; 39 40 protected IPBannedImpl( BannedIp _blocked )41 IPBannedImpl( 42 BannedIp _blocked ) 43 { 44 banned = _blocked; 45 } 46 47 public String getBannedIP()48 getBannedIP() 49 { 50 return( banned.getIp()); 51 } 52 53 public String getBannedTorrentName()54 getBannedTorrentName() 55 { 56 return(banned.getTorrentName()); 57 } 58 59 public long getBannedTime()60 getBannedTime() 61 { 62 return( banned.getBanningTime()); 63 } 64 } 65