• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java ResourceContext类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: getWorkflowResource

import org.globus.wsrf.ResourceContext; //导入依赖的package包/类
private TavernaWorkflowServiceImplResource getWorkflowResource() throws ResourceException, ResourceContextException {
	ResourceContext resourceContext = ResourceContext.getResourceContext();
	ResourceHome resourceHome = resourceContext.getResourceHome();
	ResourceKey resourceKey = resourceContext.getResourceKey();
	TavernaWorkflowServiceImplResource resource = (TavernaWorkflowServiceImplResource) resourceHome.find(resourceKey);
	return resource;
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:8,代码来源:TavernaWorkflowServiceImplImpl.java


示例2: stage

import org.globus.wsrf.ResourceContext; //导入依赖的package包/类
public void stage(DataDescriptor dd, DataStagedCallback callback)
		throws Exception {
	setDataStagedCallback(callback);

	File storageFile = new File(getStorageDirectory().getAbsolutePath()
			+ File.separator + (String) getID() + ".cache");
	DataStorageDescriptor desc = new DataStorageDescriptor();

	try {
		// get the resource home of the caller
		MessageContext ctx = MessageContext.getCurrentContext();
		String servicePath = ctx.getTargetService();
		String jndiName = Constants.JNDI_SERVICES_BASE_NAME + servicePath
				+ "/home";
		desc.setCreatorResourceHomeJNDI(jndiName);
		ResourceKey key = ResourceContext.getResourceContext()
				.getResourceKey();
		if (key != null) {
			desc.setCreatorResourceKeyName(key.getName().toString());
			desc.setCreatorResourceKeyValue((String) key.getValue());
		}
	} catch (Exception e) {
		e.printStackTrace();
	}

	desc.setLocation(storageFile.getAbsolutePath());
	if (SecurityUtils.getCallerIdentity() != null) {
		desc.setUserDN(SecurityUtils.getCallerIdentity());
	}
	desc.setDataDescriptor(dd);
	desc.setStatus(Status.Staging);
	desc.setDeleteOnDestroy(shouldDeleteFileOnDestroyDefault);
	setDataStorageDescriptor(desc);
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:35,代码来源:TransferServiceContextResource.java


示例3: getAddressedResource

import org.globus.wsrf.ResourceContext; //导入依赖的package包/类
/**
 * Get the resouce that is being addressed in this current context
 */
public CaNanoLabServiceResource getAddressedResource() throws Exception {
    CaNanoLabServiceResource thisResource;
    thisResource = (CaNanoLabServiceResource) ResourceContext.getResourceContext().getResource();
    return thisResource;
}
 
开发者ID:NCIP,项目名称:cananolab,代码行数:9,代码来源:CaNanoLabServiceResourceHome.java


示例4: getAddressedResource

import org.globus.wsrf.ResourceContext; //导入依赖的package包/类
/**
 * Get the resouce that is being addressed in this current context
 */
public PhotoSharingRegistrationResource getAddressedResource() throws Exception {
    PhotoSharingRegistrationResource thisResource;
    thisResource = (PhotoSharingRegistrationResource) ResourceContext.getResourceContext().getResource();
    return thisResource;
}
 
开发者ID:NCIP,项目名称:cagrid-general,代码行数:9,代码来源:PhotoSharingRegistrationResourceHome.java


示例5: getAddressedResource

import org.globus.wsrf.ResourceContext; //导入依赖的package包/类
/**
 * Get the resouce that is being addressed in this current context
 */
public GalleryResource getAddressedResource() throws Exception {
    GalleryResource thisResource;
    thisResource = (GalleryResource) ResourceContext.getResourceContext().getResource();
    return thisResource;
}
 
开发者ID:NCIP,项目名称:cagrid-general,代码行数:9,代码来源:GalleryResourceHome.java


示例6: getAddressedResource

import org.globus.wsrf.ResourceContext; //导入依赖的package包/类
/**
 * Get the resouce that is being addressed in this current context
 */
public PhotoSharingResource getAddressedResource() throws Exception {
    PhotoSharingResource thisResource;
    thisResource = (PhotoSharingResource) ResourceContext.getResourceContext().getResource();
    return thisResource;
}
 
开发者ID:NCIP,项目名称:cagrid-general,代码行数:9,代码来源:PhotoSharingResourceHome.java


示例7: getAddressedResource

import org.globus.wsrf.ResourceContext; //导入依赖的package包/类
/**
 * Get the resouce that is being addressed in this current context
 */
public StockPortfolioManagerResource getAddressedResource() throws Exception {
    StockPortfolioManagerResource thisResource;
    thisResource = (StockPortfolioManagerResource) ResourceContext.getResourceContext().getResource();
    return thisResource;
}
 
开发者ID:NCIP,项目名称:cagrid-general,代码行数:9,代码来源:StockPortfolioManagerResourceHome.java


示例8: getAddressedResource

import org.globus.wsrf.ResourceContext; //导入依赖的package包/类
/**
 * Get the resouce that is being addressed in this current context
 */
public StockManagerResource getAddressedResource() throws Exception {
    StockManagerResource thisResource;
    thisResource = (StockManagerResource) ResourceContext.getResourceContext().getResource();
    return thisResource;
}
 
开发者ID:NCIP,项目名称:cagrid-general,代码行数:9,代码来源:StockManagerResourceHome.java


示例9: getAddressedResource

import org.globus.wsrf.ResourceContext; //导入依赖的package包/类
/**
 * Get the resouce that is being addressed in this current context
 */
public IdentifiersNAServiceResource getAddressedResource() throws Exception {
    IdentifiersNAServiceResource thisResource;
    thisResource = (IdentifiersNAServiceResource) ResourceContext.getResourceContext().getResource();
    return thisResource;
}
 
开发者ID:NCIP,项目名称:gsid,代码行数:9,代码来源:IdentifiersNAServiceResourceHome.java


示例10: getAddressedResource

import org.globus.wsrf.ResourceContext; //导入依赖的package包/类
/**
 * Get the resouce that is being addressed in this current context
 */
public CBMResource getAddressedResource() throws Exception {
    CBMResource thisResource;
    thisResource = (CBMResource) ResourceContext.getResourceContext().getResource();
    return thisResource;
}
 
开发者ID:NCIP,项目名称:common-biorepository-model,代码行数:9,代码来源:CBMResourceHome.java


示例11: getAddressedResource

import org.globus.wsrf.ResourceContext; //导入依赖的package包/类
/**
 * Get the resouce that is being addressed in this current context
 */
public GlobalModelExchangeResource getAddressedResource() throws Exception {
    GlobalModelExchangeResource thisResource;
    thisResource = (GlobalModelExchangeResource) ResourceContext.getResourceContext().getResource();
    return thisResource;
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:9,代码来源:GlobalModelExchangeResourceHome.java


示例12: getAddressedResource

import org.globus.wsrf.ResourceContext; //导入依赖的package包/类
/**
 * Get the resouce that is being addressed in this current context
 */
public TavernaWorkflowServiceResource getAddressedResource() throws Exception {
    TavernaWorkflowServiceResource thisResource;
    thisResource = (TavernaWorkflowServiceResource) ResourceContext.getResourceContext().getResource();
    return thisResource;
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:9,代码来源:TavernaWorkflowServiceResourceHome.java


示例13: getAddressedResource

import org.globus.wsrf.ResourceContext; //导入依赖的package包/类
/**
 * Get the resouce that is being addressed in this current context
 */
public TavernaWorkflowServiceImplResource getAddressedResource() throws Exception {
    TavernaWorkflowServiceImplResource thisResource;
    thisResource = (TavernaWorkflowServiceImplResource) ResourceContext.getResourceContext().getResource();
    return thisResource;
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:9,代码来源:TavernaWorkflowServiceImplResourceHome.java


示例14: getAddressedResource

import org.globus.wsrf.ResourceContext; //导入依赖的package包/类
/**
 * Get the resouce that is being addressed in this current context
 */
public AuthenticationServiceResource getAddressedResource() throws Exception {
    AuthenticationServiceResource thisResource;
    thisResource = (AuthenticationServiceResource) ResourceContext.getResourceContext().getResource();
    return thisResource;
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:9,代码来源:AuthenticationServiceResourceHome.java


示例15: getAddressedResource

import org.globus.wsrf.ResourceContext; //导入依赖的package包/类
/**
 * Get the resouce that is being addressed in this current context
 */
public TransferServiceContextResource getAddressedResource() throws Exception {
    TransferServiceContextResource thisResource;
    thisResource = (TransferServiceContextResource) ResourceContext.getResourceContext().getResource();
    return thisResource;
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:9,代码来源:TransferServiceContextResourceHome.java


示例16: getAddressedResource

import org.globus.wsrf.ResourceContext; //导入依赖的package包/类
/**
 * Get the resouce that is being addressed in this current context
 */
public TransferServiceResource getAddressedResource() throws Exception {
    TransferServiceResource thisResource;
    thisResource = (TransferServiceResource) ResourceContext.getResourceContext().getResource();
    return thisResource;
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:9,代码来源:TransferServiceResourceHome.java


示例17: getAddressedResource

import org.globus.wsrf.ResourceContext; //导入依赖的package包/类
/**
 * Get the resouce that is being addressed in this current context
 */
public DorianResource getAddressedResource() throws Exception {
    DorianResource thisResource;
    thisResource = (DorianResource) ResourceContext.getResourceContext().getResource();
    return thisResource;
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:9,代码来源:DorianResourceHome.java


示例18: getDelegatedCredential

import org.globus.wsrf.ResourceContext; //导入依赖的package包/类
public org.cagrid.gaards.cds.common.CertificateChain getDelegatedCredential(org.cagrid.gaards.cds.common.PublicKey publicKey) throws RemoteException, org.cagrid.gaards.cds.stubs.types.CDSInternalFault, org.cagrid.gaards.cds.stubs.types.DelegationFault, org.cagrid.gaards.cds.stubs.types.PermissionDeniedFault {
	DelegatedCredentialResource resource = (DelegatedCredentialResource) ResourceContext
			.getResourceContext().getResource();
	return resource.getDelegatedCredential(publicKey);
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:6,代码来源:DelegatedCredentialImpl.java


示例19: getAddressedResource

import org.globus.wsrf.ResourceContext; //导入依赖的package包/类
/**
 * Get the resouce that is being addressed in this current context
 */
public CredentialDelegationServiceResource getAddressedResource() throws Exception {
    CredentialDelegationServiceResource thisResource;
    thisResource = (CredentialDelegationServiceResource) ResourceContext.getResourceContext().getResource();
    return thisResource;
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:9,代码来源:CredentialDelegationServiceResourceHome.java


示例20: getAddressedResource

import org.globus.wsrf.ResourceContext; //导入依赖的package包/类
/**
 * Get the resouce that is being addressed in this current context
 */
public GTSResource getAddressedResource() throws Exception {
    GTSResource thisResource;
    thisResource = (GTSResource) ResourceContext.getResourceContext().getResource();
    return thisResource;
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:9,代码来源:GTSResourceHome.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java FastMoney类代码示例发布时间:2022-05-22
下一篇:
Java InvalidApplicationMasterRequestException类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap