當前位置: 首頁>>代碼示例>>Java>>正文


Java Util類代碼示例

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

}
 
開發者ID:NLeSC,項目名稱:vbrowser,代碼行數:41,代碼來源:SRMClientV1.java

示例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());
	}
}
 
開發者ID:NCIP,項目名稱:cagrid-core,代碼行數:14,代碼來源:SecureTransportWithEncryption.java

示例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());
	}
}
 
開發者ID:NCIP,項目名稱:cagrid-core,代碼行數:11,代碼來源:AnonymousSecureTransportWithEncryption.java


注:本文中的org.globus.axis.util.Util類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。