本文整理汇总了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;
}
示例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());
}
}
示例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));
}
示例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);
}
示例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;
}
示例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);
}
示例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);
}
示例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);
}
}
示例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());
}
}
示例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);
}
}
示例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());
}
}
示例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;
}
示例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();
}
}
示例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;
}