当前位置: 首页>>代码示例>>Java>>正文


Java MalformedURIException类代码示例

本文整理汇总了Java中org.apache.axis.types.URI.MalformedURIException的典型用法代码示例。如果您正苦于以下问题:Java MalformedURIException类的具体用法?Java MalformedURIException怎么用?Java MalformedURIException使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


MalformedURIException类属于org.apache.axis.types.URI包,在下文中一共展示了MalformedURIException类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getNamingAuthorityURI

import org.apache.axis.types.URI.MalformedURIException; //导入依赖的package包/类
public String getNamingAuthorityURI() throws MalformedURIException {
    if (this.webAppContainer == null) {
        return null;
    }

    URI baseURI = this.webAppContainer.getContainerBaseURI();
    String scheme = null;
    if (this.webAppContainer instanceof TomcatSecureServiceContainer) {
        scheme = "https://";

    } else {
        scheme = "http://";
    }

    return scheme + baseURI.getHost() + ":" + baseURI.getPort() + WEBAPP_URL_PATH;
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:17,代码来源:IdentifiersTestInfo.java

示例2: queryAsynchronously

import org.apache.axis.types.URI.MalformedURIException; //导入依赖的package包/类
public gov.nih.nci.cagrid.fqp.resultsretrieval.client.FederatedQueryResultsRetrievalClient queryAsynchronously(org.cagrid.data.dcql.DCQLQuery query,org.cagrid.gaards.cds.delegated.stubs.types.DelegatedCredentialReference delegatedCredentialReference,org.cagrid.fqp.execution.QueryExecutionParameters queryExecutionParameters) throws RemoteException, org.apache.axis.types.URI.MalformedURIException, gov.nih.nci.cagrid.fqp.results.stubs.types.InternalErrorFault, gov.nih.nci.cagrid.fqp.stubs.types.FederatedQueryProcessingFault {
  synchronized(portTypeMutex){
    configureStubSecurity((Stub)portType,"queryAsynchronously");
  gov.nih.nci.cagrid.fqp.stubs.QueryAsynchronouslyRequest params = new gov.nih.nci.cagrid.fqp.stubs.QueryAsynchronouslyRequest();
  gov.nih.nci.cagrid.fqp.stubs.QueryAsynchronouslyRequestQuery queryContainer = new gov.nih.nci.cagrid.fqp.stubs.QueryAsynchronouslyRequestQuery();
  queryContainer.setDCQLQuery(query);
  params.setQuery(queryContainer);
  gov.nih.nci.cagrid.fqp.stubs.QueryAsynchronouslyRequestDelegatedCredentialReference delegatedCredentialReferenceContainer = new gov.nih.nci.cagrid.fqp.stubs.QueryAsynchronouslyRequestDelegatedCredentialReference();
  delegatedCredentialReferenceContainer.setDelegatedCredentialReference(delegatedCredentialReference);
  params.setDelegatedCredentialReference(delegatedCredentialReferenceContainer);
  gov.nih.nci.cagrid.fqp.stubs.QueryAsynchronouslyRequestQueryExecutionParameters queryExecutionParametersContainer = new gov.nih.nci.cagrid.fqp.stubs.QueryAsynchronouslyRequestQueryExecutionParameters();
  queryExecutionParametersContainer.setQueryExecutionParameters(queryExecutionParameters);
  params.setQueryExecutionParameters(queryExecutionParametersContainer);
  gov.nih.nci.cagrid.fqp.stubs.QueryAsynchronouslyResponse boxedResult = portType.queryAsynchronously(params);
  EndpointReferenceType ref = boxedResult.getFederatedQueryResultsRetrievalReference().getEndpointReference();
  return new gov.nih.nci.cagrid.fqp.resultsretrieval.client.FederatedQueryResultsRetrievalClient(ref,getProxy());
  }
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:19,代码来源:FederatedQueryProcessorClient.java

示例3: configureWebSSO

import org.apache.axis.types.URI.MalformedURIException; //导入依赖的package包/类
private void configureWebSSO(Vector<Step> steps, String hostName) {
    String tomcatCertsDir = webSSOServiceContainer.getProperties().getContainerDirectory().getAbsolutePath()
        + File.separator + "certificates";
    String keyPath = tomcatCertsDir + File.separator + hostName + "-key.pem";
    String certPath = tomcatCertsDir + File.separator + hostName + "-cert.pem";
    String dorianServiceURL = null;
    String webSSOServiceURL = null;
    String cdsServiceURL = null;
    try {
        dorianServiceURL = dorianServiceContainer.getContainerBaseURI().toString() + "cagrid/Dorian";
        webSSOServiceURL = "https://localhost:18443/" + hostName;
        cdsServiceURL = cdsServiceContainer.getContainerBaseURI().toString() + "cagrid/CredentialDelegationService";
    } catch (MalformedURIException e) {
        throw new RuntimeException("error retrieving dorian service URL or webSSOServiceURL", e);
    }

    String delegatedApplicationHostIdentity = "/C=US/O=abc/OU=xyz/OU=caGrid/OU=Services/CN=webssoclient";
    String dorianHostIdentity = "/O=osu/CN=host/localhost";
    String cdsHostIdentity = "/O=osu/CN=host/localhost";
    steps.add(new ChangeWebSSOPropertiesStep(tempWebSSOService, certPath, keyPath, dorianServiceURL, cdsServiceURL,
        delegatedApplicationHostIdentity, cdsHostIdentity, dorianHostIdentity));

    steps.add(new ChangeCASPropertiesStep(tempWebSSOService, webSSOServiceURL));
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:25,代码来源:WebSSOSystemTest.java

示例4: runStep

import org.apache.axis.types.URI.MalformedURIException; //导入依赖的package包/类
@Override
public void runStep() throws RemoteException, MalformedURIException {
	
	assertNotNull("Null identifier list", testInfo.getIdentifiers());
	assertNotNull("Null identifier values list", testInfo.getIdentifierData());
	
	// Just pick one
	URI identifier = testInfo.getIdentifiers().get(0);
	IdentifierData values = testInfo.getIdentifierData().get(0);
	
	assertNotNull("Null identifier", identifier);
	assertNotNull("Null values", values);
	
	EndpointReferenceType epr = null;
    try {
        epr = testInfo.getGridSvcEPR();
    } catch (MalformedURIException e) {
        e.printStackTrace();
        fail("Error constructing client:" + e.getMessage());
    }
    
    IdentifiersNAServiceClient client = new IdentifiersNAServiceClient( epr );
    testCreateKeys(client, identifier);
    testReplaceKeys(client, identifier);
    testDeleteKeys(client, identifier);
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:27,代码来源:IdentifiersMaintenanceStep.java

示例5: startWorkflow

import org.apache.axis.types.URI.MalformedURIException; //导入依赖的package包/类
public static WorkflowStatusType startWorkflow(WorkflowPortType[] inputParams, EndpointReferenceType epr) throws MalformedURIException, RemoteException, Exception
{		
	TavernaWorkflowServiceImplClient serviceClient = new TavernaWorkflowServiceImplClient(epr);
	StartInputType startInputElement = null;
	if(!(inputParams == null))
	{
		if(inputParams.length > 0)
		{
			startInputElement = new StartInputType();
			startInputElement.setInputParams(inputParams);
		}			
	}
	WorkflowStatusType workflowStatusElement =  serviceClient.startWorkflow(startInputElement);
	return workflowStatusElement;

}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:17,代码来源:TavernaWorkflowServiceClient.java

示例6: testGetTransportURI

import org.apache.axis.types.URI.MalformedURIException; //导入依赖的package包/类
private static void testGetTransportURI(SRMClientV2 client) throws SRMException, MalformedURIException
{

    // String dir =
    // "srm://carme.htc.biggrid.nl:8446/dpm/htc.biggrid.nl/home/pvier/skoulouz/dir1/dir2";
    // String dir =
    // "srm://tbn18.nikhef.nl:8446/dpm/nikhef.nl/home/pvier/spiros/test2.txt";
    String dir = "srm://srm.grid.sara.nl:8443/pnfs/grid.sara.nl/data/pvier/piter/test.txt";
    URI[] sourceSURLs = new org.apache.axis.types.URI[] { new org.apache.axis.types.URI(dir) };

    // client.srmGetTransportURIs(sourceSURLs,
    // TAccessPattern.TRANSFER_MODE,SRMConstants.GSIFTP_PROTOCOL);

    client.getTransportURIs(sourceSURLs);

}
 
开发者ID:NLeSC,项目名称:vbrowser,代码行数:17,代码来源:TestSRMClientV22_Sara.java

示例7: testCP

import org.apache.axis.types.URI.MalformedURIException; //导入依赖的package包/类
private static void testCP(SRMClientV2 client) throws SRMException, MalformedURIException
{

    org.apache.axis.types.URI[] arrayOfSourceSURLs = new org.apache.axis.types.URI[] { new org.apache.axis.types.URI(
            "srm://tbn18.nikhef.nl:8446/dpm/nikhef.nl/home/pvier/spiros/test2.txt") };
    org.apache.axis.types.URI[] arrayOfTargetSURLs = new org.apache.axis.types.URI[] { new org.apache.axis.types.URI(
            "srm://tbn18.nikhef.nl:8446/dpm/nikhef.nl/home/pvier/spiros/Copytest2.txt") };

    TDirOption option = new TDirOption();
    option.setAllLevelRecursive(false);
    option.setIsSourceADirectory(false);
    option.setNumOfLevels(1);
    TDirOption[] dirOptions = new TDirOption[] { option };

    TRetentionPolicyInfo targetFileRetentionPolicyInfo = new TRetentionPolicyInfo();
    targetFileRetentionPolicyInfo.setAccessLatency(TAccessLatency.ONLINE);
    targetFileRetentionPolicyInfo.setRetentionPolicy(TRetentionPolicy.OUTPUT);

    client.srmCp(arrayOfSourceSURLs, arrayOfTargetSURLs, dirOptions, TOverwriteMode.ALWAYS,
            targetFileRetentionPolicyInfo, TFileStorageType.PERMANENT);

}
 
开发者ID:NLeSC,项目名称:vbrowser,代码行数:23,代码来源:TestSRMClientV22.java

示例8: toURI

import org.apache.axis.types.URI.MalformedURIException; //导入依赖的package包/类
private static Object toURI(Object value) throws PageException {
    if(value instanceof URI) return value;
    if(value instanceof java.net.URI) return value;
    try {
        return new URI(Caster.toString(value));
    } catch (MalformedURIException e) {
        throw Caster.toPageException(e);
    }
}
 
开发者ID:lucee,项目名称:Lucee4,代码行数:10,代码来源:AxisCaster.java

示例9: download

import org.apache.axis.types.URI.MalformedURIException; //导入依赖的package包/类
private void download() throws RemoteException, MalformedURIException, IOException, Exception {
    // Select an experiment of interest.
    CaArrayEntityReference experimentRef = selectExperiment();
    if (experimentRef == null) {
        System.err.println("Could not find experiment with the requested title.");
        return;
    }

    // Select hybridization of interest in the experiment.
    Hybridization hybridization = selectHybridization(experimentRef);
    if (hybridization == null) {
        System.err.println("Could not find hybridization with requested name in the selected experiment.");
        return;
    }

    // Get array design associated with the hybridization.
    ArrayDesign arrayDesign = hybridization.getArrayDesign();
    if (arrayDesign == null) {
        System.err.println("No array design associated with the hybridization.");
        return;
    }
    Set<File> arrayDesignFiles = arrayDesign.getFiles();

    for (File arrayDesignFile : arrayDesignFiles) {
        System.out.println("Downloading array design file " + arrayDesignFile.getMetadata().getName());
        downloadContents(arrayDesignFile.getReference());
    }
}
 
开发者ID:NCIP,项目名称:caarray,代码行数:29,代码来源:DownloadArrayDesignForHybridization.java

示例10: createIntroduceTestPersistentResourceService

import org.apache.axis.types.URI.MalformedURIException; //导入依赖的package包/类
public org.test.persistent.resource.client.IntroduceTestPersistentResourceServiceClient createIntroduceTestPersistentResourceService() throws RemoteException, org.apache.axis.types.URI.MalformedURIException {
  synchronized(portTypeMutex){
    configureStubSecurity((Stub)portType,"createIntroduceTestPersistentResourceService");
  org.test.persistent.stubs.CreateIntroduceTestPersistentResourceServiceRequest params = new org.test.persistent.stubs.CreateIntroduceTestPersistentResourceServiceRequest();
  org.test.persistent.stubs.CreateIntroduceTestPersistentResourceServiceResponse boxedResult = portType.createIntroduceTestPersistentResourceService(params);
  EndpointReferenceType ref = boxedResult.getIntroduceTestPersistentResourceServiceReference().getEndpointReference();
  return new org.test.persistent.resource.client.IntroduceTestPersistentResourceServiceClient(ref);
  }
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:10,代码来源:IntroduceTestPersistentServiceClientGetPersistentResource.java

示例11: createIntroduceTestPersistentNotificationResourceService

import org.apache.axis.types.URI.MalformedURIException; //导入依赖的package包/类
public org.test.persistentnotification.resource.client.IntroduceTestPersistentNotificationResourceServiceClient createIntroduceTestPersistentNotificationResourceService() throws RemoteException, org.apache.axis.types.URI.MalformedURIException {
  synchronized(portTypeMutex){
    configureStubSecurity((Stub)portType,"createIntroduceTestPersistentNotificationResourceService");
  org.test.stubs.CreateIntroduceTestPersistentNotificationResourceServiceRequest params = new org.test.stubs.CreateIntroduceTestPersistentNotificationResourceServiceRequest();
  org.test.stubs.CreateIntroduceTestPersistentNotificationResourceServiceResponse boxedResult = portType.createIntroduceTestPersistentNotificationResourceService(params);
  EndpointReferenceType ref = boxedResult.getIntroduceTestPersistentNotificationResourceServiceReference().getEndpointReference();
  return new org.test.persistentnotification.resource.client.IntroduceTestPersistentNotificationResourceServiceClient(ref);
  }
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:10,代码来源:IntroduceTestServiceGetClient.java

示例12: createGallery

import org.apache.axis.types.URI.MalformedURIException; //导入依赖的package包/类
public org.cagrid.demo.photosharing.gallery.client.GalleryClient createGallery(java.lang.String galleryName) throws RemoteException, org.apache.axis.types.URI.MalformedURIException, org.cagrid.demo.photosharing.stubs.types.PhotoSharingException {
  synchronized(portTypeMutex){
    configureStubSecurity((Stub)portType,"createGallery");
  org.cagrid.demo.photosharing.stubs.CreateGalleryRequest params = new org.cagrid.demo.photosharing.stubs.CreateGalleryRequest();
  params.setGalleryName(galleryName);
  org.cagrid.demo.photosharing.stubs.CreateGalleryResponse boxedResult = portType.createGallery(params);
  EndpointReferenceType ref = boxedResult.getGalleryReference().getEndpointReference();
  return new org.cagrid.demo.photosharing.gallery.client.GalleryClient(ref,getProxy());
  }
}
 
开发者ID:NCIP,项目名称:cagrid-general,代码行数:11,代码来源:PhotoSharingClient.java

示例13: getUmlClassesFromService

import org.apache.axis.types.URI.MalformedURIException; //导入依赖的package包/类
protected UMLClass[] getUmlClassesFromService() throws MalformedURIException, InvalidResourcePropertyException, RemoteResourcePropertyRetrievalException, ResourcePropertyRetrievalException {

      if (umlClassList == null) {
         EndpointReferenceType epr = new EndpointReferenceType();
         AttributedURI uri = new AttributedURI(getServiceUrl());
         epr.setAddress(uri);

         DomainModel domainModel = MetadataUtils.getDomainModel(epr);
         DomainModelExposedUMLClassCollection classCollection = domainModel.getExposedUMLClassCollection();
         umlClassList = classCollection.getUMLClass();

      }
      return umlClassList;
   }
 
开发者ID:NCIP,项目名称:common-biorepository-model,代码行数:15,代码来源:CbmTest.java

示例14: retrieveFileFromTscr

import org.apache.axis.types.URI.MalformedURIException; //导入依赖的package包/类
/**
 * Stores a file from an TransferServiceContextReference.
 * @param filename file to store.
 * @param tscr transfer reference to retrieve file from.
 * @return File that was created.
 * @throws RemoteException unable to connect.
 * @throws MalformedURIException malformed URI.
 * @throws ConnectionException unable to connect.
 */
public static File retrieveFileFromTscr(String filename, TransferServiceContextReference tscr)
throws ConnectionException, MalformedURIException, RemoteException {
    TransferServiceContextClient tclient = new TransferServiceContextClient(tscr.getEndpointReference());
    try {
        InputStream stream = (InputStream) TransferClientHelper.getData(tclient.getDataTransferDescriptor());
        return storeFileFromInputStream(stream, filename);
    } catch (Exception e) {
        throw new ConnectionException("Unable to download stream data from server.", e);
    } finally {
        tclient.destroy();
    }
}
 
开发者ID:NCIP,项目名称:caintegrator,代码行数:22,代码来源:CaGridUtil.java

示例15: requestUserCertificate

import org.apache.axis.types.URI.MalformedURIException; //导入依赖的package包/类
public static GlobusCredential requestUserCertificate(String authenticationServiceURL, String dorianURL,
    Credential cred, CertificateLifetime lifetime, int delegationPathLength) throws InvalidCredentialFault,
    InsufficientAttributeFault, AuthenticationProviderFault, RemoteException, MalformedURIException {
    AuthenticationClient client = new AuthenticationClient(authenticationServiceURL, cred);
    SAMLAssertion saml = client.authenticate();
    GridUserClient dorian = new GridUserClient(dorianURL);
    GlobusCredential proxy = dorian.requestUserCertificate(saml, lifetime);
    return proxy;
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:10,代码来源:GridProxyInit.java


注:本文中的org.apache.axis.types.URI.MalformedURIException类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。