本文整理汇总了Java中org.globus.axis.util.Util类的典型用法代码示例。如果您正苦于以下问题:Java Util类的具体用法?Java Util怎么用?Java Util使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Util类属于org.globus.axis.util包,在下文中一共展示了Util类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initTransport
import org.globus.axis.util.Util; //导入依赖的package包/类
/**
* Initialize transport for axis (add httpg)
*
* @throws SRMException
*/
private void initTransport() throws SRMException
{
//logger.log(Level.INFO,"--->>> Init SRM v11 Transport <<< ---");
srmServiceLocator = new SRMServerV1Locator();
// Register new protocol HTTPG
SimpleProvider provider = new SimpleProvider();
// Uses Globus Proxy !
GSIHTTPSender gsisender = new GSIHTTPSender();
SimpleTargetedChain chain = new SimpleTargetedChain(gsisender);
provider.deployTransport("httpg", chain);
Util.registerTransport();
// ===========================================
// ===========================================
// connectiont time out ?
srmServiceLocator.setEngine(new AxisClient(provider));
try
{
this._srmService = srmServiceLocator.getISRM(srmUri.toURL());
// Set Axis socket connection timeout
((Stub) this._srmService).setTimeout(connectionTimeout);
}
catch (Exception e)
{
throw SRMException.createConnectionException("SRM Connection Error. Connection failed to:" + srmUri, e);
}
}
示例2: configure
import org.globus.axis.util.Util; //导入依赖的package包/类
public void configure(Stub stub) throws CommunicationStyleException{
try{
Util.registerTransport();
stub._setProperty(GSIConstants.GSI_TRANSPORT, GSIConstants.ENCRYPTION);
if (credential != null) {
GSSCredential gss = new GlobusGSSCredentialImpl(credential, GSSCredential.INITIATE_AND_ACCEPT);
stub._setProperty(org.globus.axis.gsi.GSIConstants.GSI_CREDENTIALS, gss);
}
}catch(Exception e){
e.printStackTrace();
throw new CommunicationStyleException(e.getMessage());
}
}
示例3: configure
import org.globus.axis.util.Util; //导入依赖的package包/类
public void configure(Stub stub) throws CommunicationStyleException {
try {
Util.registerTransport();
stub._setProperty(GSIConstants.GSI_TRANSPORT, GSIConstants.ENCRYPTION);
stub._setProperty(Constants.GSI_ANONYMOUS, Boolean.TRUE);
} catch (Exception e) {
e.printStackTrace();
throw new CommunicationStyleException(e.getMessage());
}
}