public static class Configuration.ConnectionRule extends Object
A type containing security rule properties.
Modifier and Type | Method and Description |
---|---|
Configuration.ConnectionRule |
setAction(Configuration.ConnectionRuleAction action)
The action to perform when the rule matches a resource URL.
|
void |
setCaseSensitivePath(Boolean caseSensitivePath)
Whether the rule matching mechanism will compare the paths in a case sensitive manner.
|
Configuration.ConnectionRule |
setHost(String host)
The host of a URL to a resource.
|
Configuration.ConnectionRule |
setName(String name)
The name of the rule.
|
Configuration.ConnectionRule |
setPath(String path)
The path of a URL to a resource.
|
Configuration.ConnectionRule |
setPort(Integer port)
The port of a URL to a resource.
|
Configuration.ConnectionRule |
setPriority(Integer priority)
The priority of the rule.
|
Configuration.ConnectionRule |
setProtocol(String protocol)
The protocol if a URL to a resource.
|
public Configuration.ConnectionRule setAction(Configuration.ConnectionRuleAction action)
The action to perform when the rule matches a resource URL.
public Configuration.ConnectionRule setPriority(Integer priority)
public Configuration.ConnectionRule setName(String name)
The name of the rule. This is used to identify the rule in logs.
public Configuration.ConnectionRule setProtocol(String protocol)
The protocol if a URL to a resource. Either this, Configuration.ConnectionRule.setHost(String)
, Configuration.ConnectionRule.setPort(Integer)
or
Configuration.ConnectionRule.setPath(String)
must be defined, otherwise the rule is ignored.
public Configuration.ConnectionRule setHost(String host)
The host of a URL to a resource. Supports wildcard patterns. Note that hosts are not case sensitive.
Either this, Configuration.ConnectionRule.setProtocol(String)
, Configuration.ConnectionRule.setPort(Integer)
or
Configuration.ConnectionRule.setPath(String)
must be defined, otherwise the rule is ignored.
public Configuration.ConnectionRule setPort(Integer port)
The port of a URL to a resource. Either this, Configuration.ConnectionRule.setProtocol(String)
, Configuration.ConnectionRule.setHost(String)
or
Configuration.ConnectionRule.setPath(String)
must be defined, otherwise the rule is ignored.
Use -1 if you specifically want to validate against no port in the URL.
public Configuration.ConnectionRule setPath(String path)
The path of a URL to a resource. Supports wildcard patterns. Note that paths always start with a slash and that
invalid URI characters (according to RFC 2396) must be URL encoded.
Either this, Configuration.ConnectionRule.setProtocol(String)
, Configuration.ConnectionRule.setHost(String)
or Configuration.ConnectionRule.setPort(Integer)
must be defined, otherwise the rule is ignored.
public void setCaseSensitivePath(Boolean caseSensitivePath)
Whether the rule matching mechanism will compare the paths in a case sensitive manner.
This doc was generated on 2020-09-17. Copyright © 2002-2020 RealObjects GmbH. All Rights Reserved.