public class AccessRule extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AccessRule.Type |
Constructor and Description |
---|
AccessRule(String address,
AccessRule.Type type) |
Modifier and Type | Method and Description |
---|---|
static AccessRule |
allow(String address)
Use this method to easily construct
AccessRule.Type.ALLOW rules for the address. |
static AccessRule |
deny(String address)
Use this method to easily construct
AccessRule.Type.DENY rules for the address. |
boolean |
equals(Object obj) |
String |
getAddress() |
AccessRule.Type |
getType() |
int |
hashCode() |
protected com.google.common.base.Objects.ToStringHelper |
string() |
String |
toString() |
public AccessRule(String address, AccessRule.Type type)
public static AccessRule allow(String address)
AccessRule.Type.ALLOW
rules for the address.public static AccessRule deny(String address)
AccessRule.Type.DENY
rules for the address.public String getAddress()
public AccessRule.Type getType()
protected com.google.common.base.Objects.ToStringHelper string()
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.