use of com.webcohesion.enunciate.modules.jaxws.model.WebFault in project enunciate by stoicflame.
the class WsdlInfo method getWebMessages.
public List<WebMessage> getWebMessages() {
ArrayList<WebMessage> messages = new ArrayList<WebMessage>();
HashSet<String> foundFaults = new HashSet<String>();
for (EndpointInterface ei : getEndpointInterfaces()) {
Collection<WebMethod> webMethods = ei.getWebMethods();
for (WebMethod method : webMethods) {
for (WebMessage webMessage : method.getMessages()) {
if (webMessage.isFault() && !foundFaults.add(((WebFault) webMessage).getQualifiedName().toString())) {
continue;
}
messages.add(webMessage);
}
}
}
return messages;
}
Aggregations