Package com.sun.xml.registry.uddi.bindings_v2_2

Examples of com.sun.xml.registry.uddi.bindings_v2_2.DeleteBinding


    /**
     * Create an instance of {@link TModelInstanceInfo }
     *
     */
    public TModelInstanceInfo createTModelInstanceInfo() {
        return new TModelInstanceInfo();
    }
View Full Code Here


    /**
     * Create an instance of {@link TModelList }
     *
     */
    public TModelList createTModelList() {
        return new TModelList();
    }
View Full Code Here

    /**
     * Create an instance of {@link ValidateValues }
     *
     */
    public ValidateValues createValidateValues() {
        return new ValidateValues();
    }
View Full Code Here

   *
   * @exception RegistryException;
   */
  public DispositionReport deleteBinding(String authInfo,
      String[] bindingKeyArray) throws RegistryException {
    DeleteBinding request = this.objectFactory.createDeleteBinding();

    if (authInfo != null) {
      request.setAuthInfo(authInfo);
    }

    if (bindingKeyArray != null) {
      request.getBindingKey().addAll(Arrays.asList(bindingKeyArray));
    }

        DispositionReport dr;
        JAXBElement<?> o = execute(this.objectFactory.createDeleteBinding(request), this.getPublishURI());
        dr = (DispositionReport) o.getValue();
View Full Code Here

   *
   * @exception RegistryException;
   */
  public DispositionReport deleteBinding(String authInfo,
      String[] bindingKeyArray) throws RegistryException {
    DeleteBinding request = this.objectFactory.createDeleteBinding();

    if (authInfo != null) {
      request.setAuthInfo(authInfo);
    }

    if (bindingKeyArray != null) {
      request.getBindingKey().addAll(Arrays.asList(bindingKeyArray));
    }

        DispositionReport dr;
        JAXBElement<?> o = execute(this.objectFactory.createDeleteBinding(request), this.getPublishURI());
        dr = (DispositionReport) o.getValue();
View Full Code Here

                return r;
               
        }
       
        public static DeleteBinding MapDeleteBinding(org.uddi.api_v3.DeleteBinding body) {
                DeleteBinding r = new DeleteBinding();
                r.setGeneric(VERSION);
               
                r.setAuthInfo(body.getAuthInfo());
                r.getBindingKey().addAll(body.getBindingKey());
                return r;
               
        }
View Full Code Here

  }
 
  public void deleteBinding(String authInfo, String bindingKey) {
    try {
      // Delete the entity and make sure it is removed
      DeleteBinding db = new DeleteBinding();
      db.setAuthInfo(authInfo);
     
      db.getBindingKey().add(bindingKey);
      publication.deleteBinding(db);
    }
    catch(Exception e) {
      logger.error(e.getMessage(), e);
      Assert.fail("No exception should be thrown.");
View Full Code Here

  }
 
  public void deleteBinding(String authInfo, String bindingKey) {
    try {
      // Delete the entity and make sure it is removed
      DeleteBinding db = new DeleteBinding();
      db.setAuthInfo(authInfo);
     
      db.getBindingKey().add(bindingKey);
      publication.deleteBinding(db);
    }
    catch(Exception e) {
      logger.error(e.getMessage(), e);
      Assert.fail("No exception should be thrown.");
View Full Code Here

   */
  public void unRegister(BusinessService service, Node node) {
    log.info("UnRegistering binding for service " + service.getName().get(0).getValue());
    try {
      String authToken = getAuthToken(node.getSecurityUrl());
      DeleteBinding deleteBinding = new DeleteBinding();
      deleteBinding.setAuthInfo(authToken);
      for (BindingTemplate binding : service.getBindingTemplates().getBindingTemplate()) {
        deleteBinding.getBindingKey().add(binding.getBindingKey());
      }
      getUDDINode().getTransport().getUDDIPublishService(node.getPublishUrl()).deleteBinding(deleteBinding);
    } catch (Exception e) {
      log.error("Unable to register service " + service.getName().get(0).getValue()
          + " ." + e.getMessage(),e);
View Full Code Here

   */
  public void unRegisterBinding(String bindingKey, Node node) {
    log.info("UnRegistering binding key " + bindingKey);
    try {
      String authToken = getAuthToken(node.getSecurityUrl());
      DeleteBinding deleteBinding = new DeleteBinding();
      deleteBinding.setAuthInfo(authToken);
      deleteBinding.getBindingKey().add(bindingKey);
      getUDDINode().getTransport().getUDDIPublishService(node.getPublishUrl()).deleteBinding(deleteBinding);
    } catch (Exception e) {
      log.error("Unable to unregister bindingkey " + bindingKey
          + " ." + e.getMessage(),e);
    }
View Full Code Here

TOP

Related Classes of com.sun.xml.registry.uddi.bindings_v2_2.DeleteBinding

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.