本文整理汇总了Java中org.globus.wsrf.ResourceContext类的典型用法代码示例。如果您正苦于以下问题:Java ResourceContext类的具体用法?Java ResourceContext怎么用?Java ResourceContext使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ResourceContext类属于org.globus.wsrf包,在下文中一共展示了ResourceContext类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
示例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);
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}