Examples of GlobalContext


Examples of xregistry.context.GlobalContext


public class AddRemoveFilesTest extends TestCase{
   
    public void testAddRemoveAllDesc() throws Exception{
        GlobalContext globalContext = new GlobalContext(false);
        XregistryImpl mySqlRegistry = new XregistryImpl(globalContext);
//       
        //String user = "/C=US/O=National Center for Supercomputing Applications/CN=Hemapani Srinath Perera";
        String user = "/O=LEAD Project/OU=Indiana University Extreme Lab/OU=linbox1.extreme.indiana.edu/OU=extreme.indiana.edu/CN=sshirasu/Email=sshirasu@cs.indiana.edu";
       
View Full Code Here

Examples of xregistry.context.GlobalContext

   
  }

  public DocumentRegistryClient createRegistryService(String registryURL,
      MyProxyCredentials credential, GSSCredential gssCredential ) throws Exception {
    GlobalContext globalContext = new GlobalContext(true);
    if (credential.getTrustedCertsFile() != null) {
      globalContext.setTrustedCertsFile(credential.getTrustedCertsFile());
    if (credential.getHostcertsKeyFile() != null) {
        globalContext.setHostcertsKeyFile(credential.getHostcertsKeyFile());
      } else if (credential != null) {
          globalContext.setCredential(gssCredential);
        }
    }
    return registryClient = new DocumentRegistryClient(globalContext, registryURL);
  }
View Full Code Here

Examples of xregistry.context.GlobalContext

     * use cases user do not need to see shared documents and therefore we keep the property set by defualt.
     */
    private String userDN;
   
    public DocumentRegistryClient(String registryServiceWsdlUrl) throws XregistryException{
      GlobalContext globalContext = new GlobalContext(true);
       String trustedCA = System.getProperty("ssl.hostcertsKeyFile");
      String hostCert =  System.getProperty("ssl.trustedCertsFile");
    globalContext.setTrustedCertsFile(trustedCA);
    globalContext.setHostcertsKeyFile(hostCert);
      WSIFClient client = Utils.createWSIFClient(globalContext, registryServiceWsdlUrl);
        proxy = (XregistryPortType)client.generateDynamicStub(XregistryPortType.class);
        userDN = globalContext.getUserDN();
        System.out.println("Create Stub for "+ registryServiceWsdlUrl + " using "+ userDN);
    }
View Full Code Here

Examples of xregistry.context.GlobalContext

        cmsvc.startService();
    }
   
    public static void main(String[] args){
        try {
            GlobalContext globalContext;
            if(args.length > 0){
                globalContext = new GlobalContext(false,args[0]);
            }else{
                globalContext = new GlobalContext(false);
            }
            XregistryServer xregistryService = new XregistryServer(globalContext);
            xregistryService.start();
        } catch (XregistryException e) {
            log.caught(e);
View Full Code Here

Examples of xregistry.context.GlobalContext

public class AdminShell extends AbstractShell {
    private Command[] commands;

    public AdminShell(String registryWsdlUrl) throws XregistryException {
        super(new AdminClient(new GlobalContext(true),registryWsdlUrl));
        commands = new Command[] {
                new Command("addG", registryClient, "<groupID> <desciption>") {
                    public String[] handleCommand(ArrayList<String> args)
                            throws XregistryException {
                        ((AdminClient) getClient()).createGroup(args.get(0),args.get(1));
View Full Code Here

Examples of xregistry.context.GlobalContext

    public Command[] getCommands() {
        return commands;
    }

    public DocumentRegistryShell(String registryWsdlUrl) throws XregistryException {
        super(new DocumentRegistryClient(new GlobalContext(true), registryWsdlUrl));
        commands = new Command[] { new Command("app2Hosts", registryClient) {
            public String[] handleCommand(ArrayList<String> args) throws XregistryException {
                return ((DocumentRegistryClient) getClient()).app2Hosts(args.get(0));
            }
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.