* @param epType endpoint type
*/
public void deleteEndpoints(String epName, String epType) {
if (epType.equalsIgnoreCase("Add")) {
Iterator<EndpointDO> epItr = addressEndpoints.iterator();
EndpointDO ep = null;
while (epItr.hasNext()) {
ep = epItr.next();
if (ep.getEndPointName().equalsIgnoreCase(epName)) {
break;
}
}
if (ep != null) {
addressEndpoints.remove(ep);
}
} else if (epType.equalsIgnoreCase("WSDL")) {
Iterator<EndpointDO> wsItr = wsdlEndpoints.iterator();
EndpointDO wsEp = new EndpointDO();
while (wsItr.hasNext()) {
wsEp = wsItr.next();
if (wsEp.getEndPointName().equalsIgnoreCase(epName)) {
break;
}
}
wsdlEndpoints.remove(wsEp);
}