public class RelayConfig
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static class |
RelayConfig.BridgeConfig |
static class |
RelayConfig.ForwardConfig |
static class |
RelayConfig.ProgrammaticBridgeConfig |
static class |
RelayConfig.PropertiesBridgeConfig |
static class |
RelayConfig.SiteConfig |
限定符和类型 | 字段和说明 |
---|---|
protected static java.lang.String |
BRIDGE |
protected static java.lang.String |
BRIDGES |
protected static java.lang.String |
FORWARD |
protected static java.lang.String |
FORWARDS |
protected static java.lang.String |
RELAY_CONFIG |
protected static java.lang.String |
SITE |
protected static java.lang.String |
SITES |
构造器和说明 |
---|
RelayConfig() |
限定符和类型 | 方法和说明 |
---|---|
static void |
main(java.lang.String[] args) |
protected static void |
match(java.lang.String expected_name,
java.lang.String name,
boolean is_element) |
static void |
parse(java.io.InputStream input,
java.util.Map<java.lang.String,RelayConfig.SiteConfig> map)
Parses site names and their configuration (e.g.
|
static void |
parse(org.w3c.dom.Node root,
java.util.Map<java.lang.String,RelayConfig.SiteConfig> map) |
protected static void |
parseBridges(RelayConfig.SiteConfig site_config,
org.w3c.dom.Node root) |
protected static void |
parseBridgesAndForwards(RelayConfig.SiteConfig site_config,
org.w3c.dom.Node root) |
protected static void |
parseForwards(RelayConfig.SiteConfig site_config,
org.w3c.dom.Node root) |
protected static void |
parseSites(java.util.Map<java.lang.String,RelayConfig.SiteConfig> map,
org.w3c.dom.Node root) |
protected static final java.lang.String RELAY_CONFIG
protected static final java.lang.String SITES
protected static final java.lang.String SITE
protected static final java.lang.String BRIDGES
protected static final java.lang.String BRIDGE
protected static final java.lang.String FORWARDS
protected static final java.lang.String FORWARD
public static void parse(java.io.InputStream input, java.util.Map<java.lang.String,RelayConfig.SiteConfig> map) throws java.lang.Exception
java.lang.Exception
public static void parse(org.w3c.dom.Node root, java.util.Map<java.lang.String,RelayConfig.SiteConfig> map) throws java.lang.Exception
java.lang.Exception
protected static void parseSites(java.util.Map<java.lang.String,RelayConfig.SiteConfig> map, org.w3c.dom.Node root) throws java.lang.Exception
java.lang.Exception
protected static void parseBridgesAndForwards(RelayConfig.SiteConfig site_config, org.w3c.dom.Node root) throws java.lang.Exception
java.lang.Exception
protected static void parseBridges(RelayConfig.SiteConfig site_config, org.w3c.dom.Node root) throws java.lang.Exception
java.lang.Exception
protected static void parseForwards(RelayConfig.SiteConfig site_config, org.w3c.dom.Node root) throws java.lang.Exception
java.lang.Exception
protected static void match(java.lang.String expected_name, java.lang.String name, boolean is_element) throws java.lang.Exception
java.lang.Exception
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception