Class Configuration.ConnectionRule
- Enclosing class:
Configuration
A type containing security rule properties.
-
Method Summary
Modifier and TypeMethodDescriptionThe 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.Represents the entry of the URL to be accessed.The host of a URL to a resource.The name of the rule.The path of a URL to a resource.The port of a URL to a resource.setPriority
(Integer priority) The priority of the rule.setProtocol
(String protocol) The protocol if a URL to a resource.setResourceType
(ResourceType resourceType) The type of the resource.
-
Method Details
-
setAction
The action to perform when the rule matches a resource URL.
-
setPriority
The priority of the rule. A higher number means higher priority. Can be negative. Default value is 0. -
setName
The name of the rule. This is used to identify the rule in logs.
-
setProtocol
The protocol if a URL to a resource. Either this,
setHost(String)
,setPort(Integer)
,setPath(String)
, orsetResourceType(ResourceType)
must be defined, otherwise the rule is ignored. -
setHost
The host of a URL to a resource. Supports wildcard patterns. Note that hosts are not case sensitive. Either this,
setProtocol(String)
,setPort(Integer)
,setPath(String)
, orsetResourceType(ResourceType)
must be defined, otherwise the rule is ignored. -
setPort
The port of a URL to a resource. Either this,
setProtocol(String)
,setHost(String)
,setPath(String)
, orsetResourceType(ResourceType)
must be defined, otherwise the rule is ignored.Use -1 if you specifically want to validate against no port in the URL.
-
setPath
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,
setProtocol(String)
,setHost(String)
,setPort(Integer)
, orsetResourceType(ResourceType)
must be defined, otherwise the rule is ignored. -
setEntry
Represents the entry of the URL to be accessed. Usually only applies to JAR URLs. If access to the JAR file is allowed, access to all entries is also allowed by default. Entries are paths and are treated as such, see
setPath(String)
. -
setCaseSensitivePath
Whether the rule matching mechanism will compare the paths in a case sensitive manner.
-
setResourceType
The type of the resource. Either this,
setProtocol(String)
,setHost(String)
,setPort(Integer)
, orsetPath(String)
must be defined, otherwise the rule is ignored.
-