本文整理匯總了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());
}
}