Package org.apache.wsil.util
Class WSILDocBuilder
java.lang.Object
org.apache.wsil.util.WSILDocBuilder
This class builds a WSIL document.
- Author:
- Alfredo da Silva
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intMax number of rows returned by the UDDI registry.protected WSILDocumentWSIL inspection document reference. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a newWSILDocBuilderinstance.WSILDocBuilder(String root) Creates a newWSILDocBuilderinstance.WSILDocBuilder(URL registryURL) Creates a newWSILDocBuilderinstance.WSILDocBuilder(URL registryURL, String businessKey) Creates a newWSILDocBuilderinstance. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a link object to the WSIL documentvoidAdds a link object to the WSIL documentvoidaddService(String root) Adds a list of WSIL Service objects to the WSIL Document.voidaddService(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 VectorgetBusinessKeyVector(org.uddi4j.response.BusinessInfos businessInfos) Get business keys from a list of businessInfos.Returns a WSIL document.
-
Field Details
-
MAX_ROWS
protected static final int MAX_ROWSMax number of rows returned by the UDDI registry.- See Also:
-
wsilDocument
WSIL inspection document reference.
-
-
Constructor Details
-
WSILDocBuilder
Creates a newWSILDocBuilderinstance.- Throws:
WSILException
-
WSILDocBuilder
Creates a newWSILDocBuilderinstance.- Parameters:
root- aStringvalue- Throws:
WSILException- if an error occursjavax.wsdl.WSDLException- if an error occursIOException- if an error occurs
-
WSILDocBuilder
Creates a newWSILDocBuilderinstance.- Parameters:
registryURL- anURLvalue- Throws:
WSILException- if an error occurs
-
WSILDocBuilder
Creates a newWSILDocBuilderinstance.- Parameters:
registryURL- anURLvaluebusinessKey- aStringvalue- Throws:
WSILException- if an error occurs
-
-
Method Details
-
getWSILDocument
Returns a WSIL document.- Returns:
- a
WSILDocumentvalue
-
addLink
Adds a link object to the WSIL document- Parameters:
referencedNamespace- aStringvaluelocation- aStringvalue
-
addLink
Adds a link object to the WSIL document- Parameters:
registryURL- anURLvalue- Throws:
WSILException- if an error occurs
-
addService
Adds a list of WSIL Service objects to the WSIL Document.- Parameters:
root- aStringvalue- Throws:
WSILException- if an error occursjavax.wsdl.WSDLException- if an error occursIOException- if an error occurs
-
addService
Adds 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 WSILException Find 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 WSILException Get all BusinessEntity objects from a BusinessInfos object.- Parameters:
businessInfos-- Returns:
- Return a BusinessEntity array
- Throws:
WSILException
-
getBusinessKeyVector
Get business keys from a list of businessInfos.- Returns:
- Return a list of business keys.
-