Package xregistry.generated.AddResourceDocument

Examples of xregistry.generated.AddResourceDocument.AddResource


          return xregistryStub.registerHostDesc(input).getRegisterHostDescResponse().getResourceID();
      }
     
      public void registerResource(QName resourceName, String resourceAsStr) throws XRegistryClientException {
          AddResourceDocument input = AddResourceDocument.Factory.newInstance();
          AddResource resource = input.addNewAddResource();
          resource.setResourceAsStr(resourceAsStr);
          resource.setResourceName(resourceName);
          xregistryStub.addResource(input);
      }
View Full Code Here


        return proxy.registerHostDesc(input).getRegisterHostDescResponse().getResourceID();
    }
   
    public void registerResource(QName resourceName, String resourceAsStr) throws XregistryException {
        AddResourceDocument input = AddResourceDocument.Factory.newInstance();
        AddResource resource = input.addNewAddResource();
        resource.setResourceAsStr(resourceAsStr);
        resource.setResourceName(resourceName);
        proxy.addResource(input);
    }
View Full Code Here

        return responseDocument;
    }

    public AddResourceResponseDocument addResource(AddResourceDocument input) throws XregistryException {
        log.info("Request Received " + input.xmlText());
        AddResource resource = input.getAddResource();
        registryImpl.registerDocument(findUserDN(), resource.getResourceName(), resource.getResourceAsStr());
        AddResourceResponseDocument responseDocument = AddResourceResponseDocument.Factory.newInstance();
        responseDocument.addNewAddResourceResponse();
        log.info("Response " + responseDocument.xmlText());
        return responseDocument;
    }
View Full Code Here

TOP

Related Classes of xregistry.generated.AddResourceDocument.AddResource

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.