Package org.apache.wsil.util
Class WSILDocBuilder
- java.lang.Object
-
- org.apache.wsil.util.WSILDocBuilder
-
public class WSILDocBuilder extends java.lang.ObjectThis class builds a WSIL document.- Author:
- Alfredo da Silva
-
-
Field Summary
Fields Modifier and Type Field Description protected static intMAX_ROWSMax number of rows returned by the UDDI registry.protected WSILDocumentwsilDocumentWSIL inspection document reference.
-
Constructor Summary
Constructors Constructor Description WSILDocBuilder()Creates a newWSILDocBuilderinstance.WSILDocBuilder(java.lang.String root)Creates a newWSILDocBuilderinstance.WSILDocBuilder(java.net.URL registryURL)Creates a newWSILDocBuilderinstance.WSILDocBuilder(java.net.URL registryURL, java.lang.String businessKey)Creates a newWSILDocBuilderinstance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLink(java.lang.String referencedNamespace, java.lang.String location)Adds a link object to the WSIL documentvoidaddLink(java.net.URL registryURL)Adds a link object to the WSIL documentvoidaddService(java.lang.String root)Adds a list of WSIL Service objects to the WSIL Document.voidaddService(java.net.URL registryURL)Adds a list of UDDI Service objects to the WSIL Document.protected org.uddi4j.datatype.business.BusinessEntity[]findBusinessEntities(org.uddi4j.response.BusinessInfos businessInfos, org.uddi4j.client.UDDIProxy up)Get all BusinessEntity objects from a BusinessInfos object.protected org.uddi4j.datatype.service.BusinessService[]findServices(org.uddi4j.response.ServiceList serviceList, org.uddi4j.client.UDDIProxy up)Find all BusinessService objects given a serviceList objectstatic java.util.VectorgetBusinessKeyVector(org.uddi4j.response.BusinessInfos businessInfos)Get business keys from a list of businessInfos.WSILDocumentgetWSILDocument()Returns a WSIL document.
-
-
-
Field Detail
-
MAX_ROWS
protected static final int MAX_ROWS
Max number of rows returned by the UDDI registry.- See Also:
- Constant Field Values
-
wsilDocument
protected WSILDocument wsilDocument
WSIL inspection document reference.
-
-
Constructor Detail
-
WSILDocBuilder
public WSILDocBuilder() throws WSILExceptionCreates a newWSILDocBuilderinstance.- Throws:
WSILException
-
WSILDocBuilder
public WSILDocBuilder(java.lang.String root) throws WSILException, javax.wsdl.WSDLException, java.io.IOExceptionCreates a newWSILDocBuilderinstance.- Parameters:
root- aStringvalue- Throws:
WSILException- if an error occursjavax.wsdl.WSDLException- if an error occursjava.io.IOException- if an error occurs
-
WSILDocBuilder
public WSILDocBuilder(java.net.URL registryURL) throws WSILExceptionCreates a newWSILDocBuilderinstance.- Parameters:
registryURL- anURLvalue- Throws:
WSILException- if an error occurs
-
WSILDocBuilder
public WSILDocBuilder(java.net.URL registryURL, java.lang.String businessKey) throws WSILExceptionCreates a newWSILDocBuilderinstance.- Parameters:
registryURL- anURLvaluebusinessKey- aStringvalue- Throws:
WSILException- if an error occurs
-
-
Method Detail
-
getWSILDocument
public WSILDocument getWSILDocument()
Returns a WSIL document.- Returns:
- a
WSILDocumentvalue
-
addLink
public void addLink(java.lang.String referencedNamespace, java.lang.String location)Adds a link object to the WSIL document- Parameters:
referencedNamespace- aStringvaluelocation- aStringvalue
-
addLink
public void addLink(java.net.URL registryURL) throws WSILExceptionAdds a link object to the WSIL document- Parameters:
registryURL- anURLvalue- Throws:
WSILException- if an error occurs
-
addService
public void addService(java.lang.String root) throws WSILException, javax.wsdl.WSDLException, java.io.IOExceptionAdds a list of WSIL Service objects to the WSIL Document.- Parameters:
root- aStringvalue- Throws:
WSILException- if an error occursjavax.wsdl.WSDLException- if an error occursjava.io.IOException- if an error occurs
-
addService
public void addService(java.net.URL registryURL) throws WSILExceptionAdds a list of UDDI Service objects to the WSIL Document.- Parameters:
registryURL- anURLvalue- Throws:
WSILException- if an error occurs
-
findServices
protected org.uddi4j.datatype.service.BusinessService[] findServices(org.uddi4j.response.ServiceList serviceList, org.uddi4j.client.UDDIProxy up) throws WSILExceptionFind all BusinessService objects given a serviceList object- Parameters:
serviceList-- Returns:
- Return a BusinessService array
- Throws:
WSILException
-
findBusinessEntities
protected org.uddi4j.datatype.business.BusinessEntity[] findBusinessEntities(org.uddi4j.response.BusinessInfos businessInfos, org.uddi4j.client.UDDIProxy up) throws WSILExceptionGet all BusinessEntity objects from a BusinessInfos object.- Parameters:
businessInfos-- Returns:
- Return a BusinessEntity array
- Throws:
WSILException
-
getBusinessKeyVector
public static java.util.Vector getBusinessKeyVector(org.uddi4j.response.BusinessInfos businessInfos)
Get business keys from a list of businessInfos.- Returns:
- Return a list of business keys.
-
-