Methods Summary |
---|
public void | addEndpoint(WebServiceEndpoint endpoint)
endpoint.setWebService(this);
endpoints.put(endpoint.getEndpointName(), endpoint);
super.changed();
|
public BundleDescriptor | getBundleDescriptor()
return webServicesDesc.getBundleDescriptor();
|
public java.net.URL | getClientPublishUrl()
return publishUrl;
|
public java.util.Collection | getEndpoints()
HashMap shallowCopy = new HashMap(endpoints);
return shallowCopy.values();
|
public java.lang.String | getGeneratedWsdlFilePath()
if (hasWsdlFile()) {
String xmlDir = getBundleDescriptor().getApplication().getGeneratedXMLDirectory();
if(!getBundleDescriptor().getModuleDescriptor().isStandalone()) {
String uri = getBundleDescriptor().getModuleDescriptor().getArchiveUri();
xmlDir = xmlDir + File.separator + uri.replaceAll("\\.", "_");
}
if(xmlDir == null) {
return null;
}
return xmlDir + File.separator + wsdlFileUri;
} else {
return getWsdlFileUrl().getPath();
}
|
public java.io.File | getMappingFile()
return mappingFile;
|
public java.lang.String | getMappingFileUri()
return mappingFileUri;
|
public WebServicesDescriptor | getWebServicesDescriptor()
return webServicesDesc;
|
public java.lang.String | getWsdlFileUri()
return wsdlFileUri;
|
public java.net.URL | getWsdlFileUrl()
return wsdlFileUrl;
|
public boolean | hasClientPublishUrl()
return (publishUrl != null);
|
public boolean | hasFilePublishing()
return (hasClientPublishUrl() &&
publishUrl.getProtocol().equals("file"));
|
public boolean | hasMappingFile()
return (mappingFileUri != null);
|
public boolean | hasUrlPublishing()
return (!hasFilePublishing());
|
public boolean | hasWsdlFile()
return (wsdlFileUri != null);
|
public WebServiceEndpoint | pickEndpointForRelativeImports()Select one of this webservice's endpoints to use for converting
relative imports.
WebServiceEndpoint pick = null;
// First secure endpoint takes precedence.
for(WebServiceEndpoint wse : endpoints.values()) {
if( wse.isSecure() ) {
pick = wse;
break;
}
pick = wse;
}
return pick;
|
public void | print(java.lang.StringBuffer toStringBuffer)Returns a formatted String of the attributes of this object.
super.print(toStringBuffer);
toStringBuffer.append( "\n wsdl file : ").append( wsdlFileUri);
toStringBuffer.append( "\n mapping file ").append(mappingFileUri);
toStringBuffer.append( "\n publish url ").append(publishUrl);
toStringBuffer.append( "\n final wsdl ").append(wsdlFileUrl);
toStringBuffer.append( "\n endpoints ").append(endpoints);
|
public void | removeEndpoint(WebServiceEndpoint endpoint)
removeEndpointByName(endpoint.getEndpointName());
super.changed();
|
public void | removeEndpointByName(java.lang.String endpointName)
WebServiceEndpoint endpoint = (WebServiceEndpoint)
endpoints.remove(endpointName);
endpoint.setWebService(null);
super.changed();
|
public void | setClientPublishUrl(java.net.URL url)
publishUrl = url;
super.changed();
|
public void | setMappingFile(java.io.File file)
mappingFile = file;
super.changed();
|
public void | setMappingFileUri(java.lang.String uri)
mappingFileUri = uri;
super.changed();
|
public void | setWebServicesDescriptor(WebServicesDescriptor webServices)
webServicesDesc = webServices;
|
public void | setWsdlFileUri(java.lang.String uri)
wsdlFileUri = uri;
super.changed();
|
public void | setWsdlFileUrl(java.net.URL url)
wsdlFileUrl = url;
super.changed();
|