Class WSILDocBuilder

java.lang.Object
org.apache.wsil.util.WSILDocBuilder

public class WSILDocBuilder extends Object
This class builds a WSIL document.
Author:
Alfredo da Silva
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final int
    Max number of rows returned by the UDDI registry.
    protected WSILDocument
    WSIL inspection document reference.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new WSILDocBuilder instance.
    Creates a new WSILDocBuilder instance.
    WSILDocBuilder(URL registryURL)
    Creates a new WSILDocBuilder instance.
    WSILDocBuilder(URL registryURL, String businessKey)
    Creates a new WSILDocBuilder instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addLink(String referencedNamespace, String location)
    Adds a link object to the WSIL document
    void
    addLink(URL registryURL)
    Adds a link object to the WSIL document
    void
    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 object
    static Vector
    getBusinessKeyVector(org.uddi4j.response.BusinessInfos businessInfos)
    Get business keys from a list of businessInfos.
    Returns a WSIL document.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • MAX_ROWS

      protected static final int MAX_ROWS
      Max number of rows returned by the UDDI registry.
      See Also:
    • wsilDocument

      protected WSILDocument wsilDocument
      WSIL inspection document reference.
  • Constructor Details

    • WSILDocBuilder

      public WSILDocBuilder() throws WSILException
      Creates a new WSILDocBuilder instance.
      Throws:
      WSILException
    • WSILDocBuilder

      public WSILDocBuilder(String root) throws WSILException, javax.wsdl.WSDLException, IOException
      Creates a new WSILDocBuilder instance.
      Parameters:
      root - a String value
      Throws:
      WSILException - if an error occurs
      javax.wsdl.WSDLException - if an error occurs
      IOException - if an error occurs
    • WSILDocBuilder

      public WSILDocBuilder(URL registryURL) throws WSILException
      Creates a new WSILDocBuilder instance.
      Parameters:
      registryURL - an URL value
      Throws:
      WSILException - if an error occurs
    • WSILDocBuilder

      public WSILDocBuilder(URL registryURL, String businessKey) throws WSILException
      Creates a new WSILDocBuilder instance.
      Parameters:
      registryURL - an URL value
      businessKey - a String value
      Throws:
      WSILException - if an error occurs
  • Method Details

    • getWSILDocument

      public WSILDocument getWSILDocument()
      Returns a WSIL document.
      Returns:
      a WSILDocument value
    • addLink

      public void addLink(String referencedNamespace, String location)
      Adds a link object to the WSIL document
      Parameters:
      referencedNamespace - a String value
      location - a String value
    • addLink

      public void addLink(URL registryURL) throws WSILException
      Adds a link object to the WSIL document
      Parameters:
      registryURL - an URL value
      Throws:
      WSILException - if an error occurs
    • addService

      public void addService(String root) throws WSILException, javax.wsdl.WSDLException, IOException
      Adds a list of WSIL Service objects to the WSIL Document.
      Parameters:
      root - a String value
      Throws:
      WSILException - if an error occurs
      javax.wsdl.WSDLException - if an error occurs
      IOException - if an error occurs
    • addService

      public void addService(URL registryURL) throws WSILException
      Adds a list of UDDI Service objects to the WSIL Document.
      Parameters:
      registryURL - an URL 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

      public static Vector getBusinessKeyVector(org.uddi4j.response.BusinessInfos businessInfos)
      Get business keys from a list of businessInfos.
      Returns:
      Return a list of business keys.