Examples of XRegistryClientException


Examples of org.ogce.xregistry.utils.XRegistryClientException

      while ((line = br.readLine()) != null) {
        if (!line.contains("xregistry.XregistryException"))
          continue;

        String[] split = line.split(":", 3);
        return new XRegistryClientException(split[2], th);
      }
      return new XRegistryClientException(th);
    } catch (Exception e) {
      // no op
    } finally {
      if (br != null) {
        try {
View Full Code Here

Examples of org.ogce.xregistry.utils.XRegistryClientException

  public void deployStreamSource(XRegistryClient client, String name,
      String wsdlURL) throws XRegistryClientException {
    QName qname = new QName(STREAM_SOURCE_NS, name);
    if (isResourceExist(client, qname)) {
      throw new XRegistryClientException("Resource Already exist by qname:"
          + qname);
    }
    client.registerResource(qname, wsdlURL);
  }
View Full Code Here

Examples of org.ogce.xregistry.utils.XRegistryClientException

   */
    public XRegistryClient(String nonSecureXRegistryUrl) throws XRegistryClientException{
      //if the service wsdl end point is secure then a secure connection has to be created
      //by passing security credentials.
      if (nonSecureXRegistryUrl.startsWith("https")) {
        throw new XRegistryClientException("This is a secure service, security information has to be passed" +
            "Only non-secured services can be connected by passing only epr.");
      }
      //Double Check to make sure the service end point has ?wsdl needed for WSIF
      if (!nonSecureXRegistryUrl.endsWith("?wsdl")) {
       nonSecureXRegistryUrl += "?wsdl";
View Full Code Here

Examples of org.ogce.xregistry.utils.XRegistryClientException

        } else {
          try {   
          this.xregistryStub =XRegistryConnection.createSSLSecureServiceStub(hostkeyPath, trustedCerts, xregistryServiceWsdlUrl);
          log.info("Created a SSL Credential Secured XRegistry Connection Stub");
        } catch (FileNotFoundException e) {
          throw new XRegistryClientException(e.getLocalizedMessage(),e);
        } catch (GeneralSecurityException e) {
          throw new XRegistryClientException(e.getLocalizedMessage(),e);
        } catch (IOException e) {
          throw new XRegistryClientException(e.getLocalizedMessage(),e);
        }
      }
     }
View Full Code Here

Examples of org.ogce.xregistry.utils.XRegistryClientException

              getCapability.setActorType(actorType);
              getCapability.setAction(action);
              GetCapabilityResponseDocument capabilityResponse = xregistryStub.getCapability(document);
              return capabilityResponse.getGetCapabilityResponse().getTokenArray();
          }else{
              throw new XRegistryClientException("one of the resourceID or actor must present");
          }
      }   
View Full Code Here

Examples of org.ogce.xregistry.utils.XRegistryClientException

        gssCredential = renewProxy();
      }
    }
    } catch (Exception e) {
      System.out.println("Failed to load proxy credential from ProxyManager");
      throw new XRegistryClientException(e.getLocalizedMessage(),e);
    }

    return gssCredential;
  }
View Full Code Here

Examples of org.ogce.xregistry.utils.XRegistryClientException

        FileInputStream fis = new FileInputStream(hostcertsKeyFile);
        GlobusCredential globusCred = new GlobusCredential(fis);
        this.gssCredential = new GlobusGSSCredentialImpl(globusCred, GSSCredential.INITIATE_AND_ACCEPT);
      }
    } catch (FileNotFoundException e) {
      throw new XRegistryClientException(e.getLocalizedMessage(),e);
    } catch (GlobusCredentialException e) {
      throw new XRegistryClientException(e.getLocalizedMessage(),e);
    } catch (GSSException e) {
      throw new XRegistryClientException(e.getLocalizedMessage(),e);
    }
    return gssCredential;
  }
View Full Code Here

Examples of org.ogce.xregistry.utils.XRegistryClientException

        System.out.println("Proxy file renewed to " + proxyloc + " for the user " + myproxyUserName + " with " + myproxyLifeTime + " lifetime.");

      }
      return proxy;
    } catch (Exception e) {
      throw new XRegistryClientException(e.getLocalizedMessage(),e);
    }
  }
View Full Code Here

Examples of org.ogce.xregistry.utils.XRegistryClientException

        }
      }

    } catch (Exception e) {
      throw new XRegistryClientException(e.getLocalizedMessage(),e);
    }

  }
View Full Code Here

Examples of org.ogce.xregistry.utils.XRegistryClientException

      WSIFClient client = XmlBeansWSIFRuntime.getDefault().newClientFor(serv.getPort());
      ((XsulSoapPort) client.getPort()).setInvoker(invoker);
      return (IXregistryPortType)client.generateDynamicStub(IXregistryPortType.class);
     
    } catch (WSIFException e) {
      throw new XRegistryClientException(e);
    } catch (XsulException e) {
      throw new XRegistryClientException(e);
    } catch (XmlBuilderException e) {
      throw new XRegistryClientException(e);
    }
  }
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.