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 int
Max number of rows returned by the UDDI registry.protected WSILDocument
WSIL inspection document reference. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a newWSILDocBuilder
instance.WSILDocBuilder
(String root) Creates a newWSILDocBuilder
instance.WSILDocBuilder
(URL registryURL) Creates a newWSILDocBuilder
instance.WSILDocBuilder
(URL registryURL, String businessKey) Creates a newWSILDocBuilder
instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a link object to the WSIL documentvoid
Adds a link object to the WSIL documentvoid
addService
(String root) Adds a list of WSIL Service objects to the WSIL Document.void
addService
(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 Vector
getBusinessKeyVector
(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 newWSILDocBuilder
instance.- Throws:
WSILException
-
WSILDocBuilder
Creates a newWSILDocBuilder
instance.- Parameters:
root
- aString
value- Throws:
WSILException
- if an error occursjavax.wsdl.WSDLException
- if an error occursIOException
- if an error occurs
-
WSILDocBuilder
Creates a newWSILDocBuilder
instance.- Parameters:
registryURL
- anURL
value- Throws:
WSILException
- if an error occurs
-
WSILDocBuilder
Creates a newWSILDocBuilder
instance.- Parameters:
registryURL
- anURL
valuebusinessKey
- aString
value- Throws:
WSILException
- if an error occurs
-
-
Method Details
-
getWSILDocument
Returns a WSIL document.- Returns:
- a
WSILDocument
value
-
addLink
Adds a link object to the WSIL document- Parameters:
referencedNamespace
- aString
valuelocation
- aString
value
-
addLink
Adds a link object to the WSIL document- Parameters:
registryURL
- anURL
value- Throws:
WSILException
- if an error occurs
-
addService
Adds a list of WSIL Service objects to the WSIL Document.- Parameters:
root
- aString
value- 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
- anURL
value- 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.
-