Examples of SaveSubscription


Examples of org.apache.juddi.datatype.request.SaveSubscription

    this.maker = maker;
  }

  public RegistryObject unmarshal(Element element)
  {
    SaveSubscription obj = new SaveSubscription();
    Vector nodeList = null;
    AbstractHandler handler = null;

    // Attributes
    String generic = element.getAttribute("generic");
    if ((generic != null && (generic.trim().length() > 0)))
      obj.setGeneric(generic);

    // Text Node Value
    // {none}

    // Child Elements
    nodeList = XMLUtils.getChildElementsByTagName(element,AuthInfoHandler.TAG_NAME);
    if (nodeList.size() > 0)
    {
      handler = maker.lookup(AuthInfoHandler.TAG_NAME);
      obj.setAuthInfo((AuthInfo)handler.unmarshal((Element)nodeList.elementAt(0)));
    }

    nodeList = XMLUtils.getChildElementsByTagName(element,SubscriptionHandler.TAG_NAME);
    for (int i=0; i<nodeList.size(); i++)
    {
      handler = maker.lookup(SubscriptionHandler.TAG_NAME);
      obj.addSubscription((Subscription)handler.unmarshal((Element)nodeList.elementAt(i)));
    }

    return obj;
  }
View Full Code Here

Examples of org.apache.juddi.datatype.request.SaveSubscription

    return obj;
  }

  public void marshal(RegistryObject object,Element parent)
  {
    SaveSubscription request = (SaveSubscription)object;
    String generic = request.getGeneric();
    generic = getGeneric(generic);
    String namespace = getUDDINamespace(generic);
    Element element = parent.getOwnerDocument().createElementNS(namespace,TAG_NAME);
    AbstractHandler handler = null;

    element.setAttribute("generic",generic);

    AuthInfo authInfo = request.getAuthInfo();
    if (authInfo != null)
    {
      handler = maker.lookup(AuthInfoHandler.TAG_NAME);
      handler.marshal(authInfo,element);
    }

    Vector subscriptionVector = request.getSubscriptionVector();
    if ((subscriptionVector!=null) && (subscriptionVector.size() > 0))
    {
      handler = maker.lookup(SubscriptionHandler.TAG_NAME);
      for (int i=0; i<subscriptionVector.size(); i++)
        handler.marshal((Subscription)subscriptionVector.elementAt(i),element);
View Full Code Here

Examples of org.apache.juddi.datatype.request.SaveSubscription

    authInfo.setValue("6f157513-844e-4a95-a856-d257e6ba9726");

    Subscription subscription = new Subscription();
    subscription.setSubscriptionKey("uuid:269855db-62eb-4862-8e5a-1b06f2753038");

    SaveSubscription request = new SaveSubscription();
    request.setAuthInfo(authInfo);
    request.addSubscription(subscription);
    request.addSubscription(subscription);

    System.out.println();

    RegistryObject regObject = request;
    handler.marshal(regObject,parent);
View Full Code Here

Examples of org.apache.juddi.datatype.request.SaveSubscription

   *
   */
  public RegistryObject execute(RegistryObject regObject)
    throws RegistryException
  {
    SaveSubscription request = (SaveSubscription)regObject;
    String generic = request.getGeneric();

    // aquire a datastore instance
    DataStore dataStore = DataStoreFactory.getDataStore();

    try
View Full Code Here

Examples of org.apache.juddi.datatype.request.SaveSubscription

    this.maker = maker;
  }

  public RegistryObject unmarshal(Element element)
  {
    SaveSubscription obj = new SaveSubscription();
    Vector nodeList = null;
    AbstractHandler handler = null;

    // Attributes
    String generic = element.getAttribute("generic");
    if ((generic != null && (generic.trim().length() > 0)))
      obj.setGeneric(generic);

    // Text Node Value
    // {none}

    // Child Elements
    nodeList = XMLUtils.getChildElementsByTagName(element,AuthInfoHandler.TAG_NAME);
    if (nodeList.size() > 0)
    {
      handler = maker.lookup(AuthInfoHandler.TAG_NAME);
      obj.setAuthInfo((AuthInfo)handler.unmarshal((Element)nodeList.elementAt(0)));
    }

    nodeList = XMLUtils.getChildElementsByTagName(element,SubscriptionHandler.TAG_NAME);
    for (int i=0; i<nodeList.size(); i++)
    {
      handler = maker.lookup(SubscriptionHandler.TAG_NAME);
      obj.addSubscription((Subscription)handler.unmarshal((Element)nodeList.elementAt(i)));
    }

    return obj;
  }
View Full Code Here

Examples of org.apache.juddi.datatype.request.SaveSubscription

    return obj;
  }

  public void marshal(RegistryObject object,Element parent)
  {
    SaveSubscription request = (SaveSubscription)object;
    Element element = parent.getOwnerDocument().createElementNS(null,TAG_NAME);
    AbstractHandler handler = null;

    String generic = request.getGeneric();
    if (generic != null)
      element.setAttribute("generic",generic);

    AuthInfo authInfo = request.getAuthInfo();
    if (authInfo != null)
    {
      handler = maker.lookup(AuthInfoHandler.TAG_NAME);
      handler.marshal(authInfo,element);
    }

    Vector subscriptionVector = request.getSubscriptionVector();
    if ((subscriptionVector!=null) && (subscriptionVector.size() > 0))
    {
      handler = maker.lookup(SubscriptionHandler.TAG_NAME);
      for (int i=0; i<subscriptionVector.size(); i++)
        handler.marshal((Subscription)subscriptionVector.elementAt(i),element);
View Full Code Here

Examples of org.apache.juddi.datatype.request.SaveSubscription

    authInfo.setValue("6f157513-844e-4a95-a856-d257e6ba9726");

    Subscription subscription = new Subscription();
    subscription.setSubscriptionKey("uuid:269855db-62eb-4862-8e5a-1b06f2753038");

    SaveSubscription request = new SaveSubscription();
    request.setAuthInfo(authInfo);
    request.addSubscription(subscription);
    request.addSubscription(subscription);

    System.out.println();

    RegistryObject regObject = request;
    handler.marshal(regObject,parent);
View Full Code Here

Examples of org.uddi.sub_v3.SaveSubscription

        }
        if (method.equalsIgnoreCase("getSubscriptions")) {
            JAXB.marshal(new GetSubscriptions(), sw);
        }
        if (method.equalsIgnoreCase("saveSubscription")) {
            JAXB.marshal(new SaveSubscription(), sw);
        }
        return PrettyPrintXML(sw.toString());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.