Examples of GetAssertionStatusReport


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

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

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

    this.maker = maker;
  }

  public RegistryObject unmarshal(Element element)
  {
    GetAssertionStatusReport obj = new GetAssertionStatusReport();
    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,CompletionStatusHandler.TAG_NAME);
    if (nodeList.size() > 0)
    {
      handler = maker.lookup(CompletionStatusHandler.TAG_NAME);
      obj.setCompletionStatus((CompletionStatus)handler.unmarshal((Element)nodeList.elementAt(0)));
    }

    return obj;
  }
View Full Code Here

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

    return obj;
  }

  public void marshal(RegistryObject object,Element parent)
  {
    GetAssertionStatusReport request = (GetAssertionStatusReport)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);
    }

    String status = request.getCompletionStatus();
    if (status != null)
    {
      handler = maker.lookup(CompletionStatusHandler.TAG_NAME);
      handler.marshal(new CompletionStatus(status),element);
    }
View Full Code Here

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

    Element child = null;

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

    GetAssertionStatusReport service = new GetAssertionStatusReport();
    service.setAuthInfo(authInfo);
    service.setCompletionStatus(CompletionStatus.COMPLETE);

    System.out.println();

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

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

   *
   */
  public RegistryObject execute(RegistryObject regObject)
    throws RegistryException
  {
    GetAssertionStatusReport request = (GetAssertionStatusReport)regObject;
    String generic = request.getGeneric();
    String completionStatus = request.getCompletionStatus();
    AuthInfo authInfo = request.getAuthInfo();
    AssertionStatusReport report = null;

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

View Full Code Here

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

    handler = ( GetAssertionStatusReportHandler)maker.lookup( GetAssertionStatusReportHandler.TAG_NAME);
  }

  private RegistryObject getRegistryObject()
  {
    GetAssertionStatusReport object = new GetAssertionStatusReport();

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

    object.setAuthInfo(authInfo);
    object.setCompletionStatus(CompletionStatus.COMPLETE);

    return object;

  }
View Full Code Here

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

    this.maker = maker;
  }

  public RegistryObject unmarshal(Element element)
  {
    GetAssertionStatusReport obj = new GetAssertionStatusReport();
    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,CompletionStatusHandler.TAG_NAME);
    if (nodeList.size() > 0)
    {
      handler = maker.lookup(CompletionStatusHandler.TAG_NAME);
      obj.setCompletionStatus((CompletionStatus)handler.unmarshal((Element)nodeList.elementAt(0)));
    }

    return obj;
  }
View Full Code Here

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

    return obj;
  }

  public void marshal(RegistryObject object,Element parent)
  {
    GetAssertionStatusReport request = (GetAssertionStatusReport)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);
    }

    String status = request.getCompletionStatus();
    if (status != null)
    {
      handler = maker.lookup(CompletionStatusHandler.TAG_NAME);
      handler.marshal(new CompletionStatus(status),element);
    }
View Full Code Here

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

    Element child = null;

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

    GetAssertionStatusReport service = new GetAssertionStatusReport();
    service.setAuthInfo(authInfo);
    service.setCompletionStatus(CompletionStatus.COMPLETE);

    System.out.println();

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

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

   *
   */
  public RegistryObject execute(RegistryObject regObject)
    throws RegistryException
  {
    GetAssertionStatusReport request = (GetAssertionStatusReport)regObject;
    String generic = request.getGeneric();
    String completionStatus = request.getCompletionStatus();
    AuthInfo authInfo = request.getAuthInfo();
    AssertionStatusReport report = null;

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

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.