public class URLEndpointsConfigurationFactory {
private static final Log log = LogFactory.getLog(URLEndpointsConfigurationFactory.class);
public URLEndpointsConfiguration create(OMElement element) throws AxisFault {
Iterator iterator = element.getChildrenWithName(new QName(URLEndpointsConfiguration.ENDPOINT));
URLEndpointsConfiguration configuration = new URLEndpointsConfiguration();
URLEndpointFactory fac = new URLEndpointFactory();
while (iterator.hasNext()) {
OMElement endpoint = (OMElement) iterator.next();
URLEndpoint epr = fac.create(endpoint);
configuration.addEndpoint(epr);
}
return configuration;
}