hostauthorizer.java

来自「sea是一个基于seda模式的实现。这个设计模式将系统分为很多stage。每个s」· Java 代码 · 共 30 行

JAVA
30
字号
/* * Copyright (c) 2003, The Regents of the University of California, through * Lawrence Berkeley National Laboratory (subject to receipt of any required * approvals from the U.S. Dept. of Energy). All rights reserved. */package gov.lbl.dsd.sea.nio.auth;import java.net.InetAddress;/** * Interface for mechanism to query whether or not a given host is * allowed to perform a certain action. *  * @see SmartHostAuthorizer *  * @author whoschek@lbl.gov * @author $Author: hoschek3 $ * @version $Revision: 1.1 $, $Date: 2004/06/17 05:39:00 $ */public interface HostAuthorizer {	/** 	 * Returns whether or not the given host (aka InetAddress) is allowed to	 * perform a certain action, depending on the current allow/deny rules.	 * 	 * @param address the host attempting to be authorized	 */	public boolean isAllowed(InetAddress address);	}

⌨️ 快捷键说明

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