boolean writeModule = !endpoints.isEmpty();
for(Iterator endpointIter = endpoints.iterator();
endpointIter.hasNext();) {
WebServiceEndpoint nextEndpoint = (WebServiceEndpoint)
endpointIter.next();
WebComponentDescriptor webComp = nextEndpoint.getWebComponentImpl();
String servletImplClass = nextEndpoint.getServletImplClass();
if( !nextEndpoint.hasServletImplClass() ) {
throw new Exception(
localStrings.getStringWithDefault(
"enterprise.deployment.backend.cannot_find_servlet",
"Runtime settings error. Cannot find servlet-impl-class for endpoint {0} ",
new Object[] {nextEndpoint.getEndpointName()}));
}
if( !nextEndpoint.getWebService().hasFilePublishing() ) {
// @@@ add security attributes as well????
String publishingUri = nextEndpoint.getPublishingUri();
String publishingUrlPattern =
(publishingUri.charAt(0) == '/') ?
publishingUri : "/" + publishingUri + "/*";
webComp.addUrlPattern(publishingUrlPattern);
}