return value;
}
private ProxyConnectorRuleConfiguration readProxyConnectorRuleConfiguration( String prefix, Registry registry )
{
ProxyConnectorRuleConfiguration value = new ProxyConnectorRuleConfiguration();
//String ruleType = registry.getString( prefix + "ruleType", value.getRuleType() );
List<String> ruleTypeList = registry.getList( prefix + "ruleType" );
String ruleType = value.getRuleType();
if (ruleTypeList != null && !ruleTypeList.isEmpty() )
{
StringBuilder sb = new StringBuilder( );
for (int i = 0,size = ruleTypeList.size();i<size;i++)
{
sb.append( ruleTypeList.get( i ) );
if (i<size - 1)
{
sb.append( ',' );
}
}
ruleType = sb.toString();
}
value.setRuleType( ruleType );
//String pattern = registry.getString( prefix + "pattern", value.getPattern() );
List<String> patternList = registry.getList( prefix + "pattern" );
String pattern = value.getPattern();
if (patternList != null && !patternList.isEmpty() )
{
StringBuilder sb = new StringBuilder( );
for (int i = 0,size = patternList.size();i<size;i++)
{
sb.append( patternList.get( i ) );
if (i<size - 1)
{
sb.append( ',' );
}
}
pattern = sb.toString();
}
value.setPattern( pattern );
java.util.List proxyConnectors = new java.util.ArrayList/*<ProxyConnectorConfiguration>*/();
List proxyConnectorsSubsets = registry.getSubsetList( prefix + "proxyConnectors.proxyConnector" );
for ( Iterator i = proxyConnectorsSubsets.iterator(); i.hasNext(); )
{
ProxyConnectorConfiguration v = readProxyConnectorConfiguration( "", (Registry) i.next() );
proxyConnectors.add( v );
}
value.setProxyConnectors( proxyConnectors );
return value;
}