当前位置: 首页>>代码示例>>Java>>正文


Java UIDGenerator.generateUID方法代码示例

本文整理汇总了Java中org.apache.axiom.util.UIDGenerator.generateUID方法的典型用法代码示例。如果您正苦于以下问题:Java UIDGenerator.generateUID方法的具体用法?Java UIDGenerator.generateUID怎么用?Java UIDGenerator.generateUID使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.axiom.util.UIDGenerator的用法示例。


在下文中一共展示了UIDGenerator.generateUID方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: OutInAxisOperation

import org.apache.axiom.util.UIDGenerator; //导入方法依赖的package包/类
public OutInAxisOperation() {
    super();
    //setup a temporary name
    QName tmpName = new QName(this.getClass().getName() + "_" + UIDGenerator.generateUID());
    this.setName(tmpName);
    setMessageExchangePattern(WSDL2Constants.MEP_URI_OUT_IN);
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:8,代码来源:OutInAxisOperation.java

示例2: attachPolicy

import org.apache.axiom.util.UIDGenerator; //导入方法依赖的package包/类
public void attachPolicy(Policy policy) {
	String key = policy.getName();
	if (key == null) {
		key = policy.getId();
		if (key == null) {
			key = UIDGenerator.generateUID();
			policy.setId(key);
		}
	}
	attachPolicyComponent(key, policy);
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:12,代码来源:PolicySubject.java

示例3: OutOnlyAxisOperation

import org.apache.axiom.util.UIDGenerator; //导入方法依赖的package包/类
public OutOnlyAxisOperation() {
    super();
    //setup a temporary name
    QName tmpName = new QName(this.getClass().getName() + "_" + UIDGenerator.generateUID());
    this.setName(tmpName);
    createMessage();
    setMessageExchangePattern(WSDL2Constants.MEP_URI_OUT_ONLY);
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:9,代码来源:OutOnlyAxisOperation.java

示例4: AxisOperation

import org.apache.axiom.util.UIDGenerator; //导入方法依赖的package包/类
/** Default constructor */
public AxisOperation() {
    mepURI = WSDL2Constants.MEP_URI_IN_OUT;
    modulerefs = new ArrayList<String>();
    moduleConfigmap = new HashMap<String, ModuleConfiguration>();
    faultMessages = new ArrayList<AxisMessage>();
    //setup a temporary name
    QName tmpName = new QName(this.getClass().getName() + "_" + UIDGenerator.generateUID());
    this.setName(tmpName);
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:11,代码来源:AxisOperation.java

示例5: RobustOutOnlyAxisOperation

import org.apache.axiom.util.UIDGenerator; //导入方法依赖的package包/类
public RobustOutOnlyAxisOperation() {
    super();
    //setup a temporary name
    QName tmpName = new QName(this.getClass().getName() + "_" + UIDGenerator.generateUID());
    this.setName(tmpName);
    setMessageExchangePattern(WSDL2Constants.MEP_URI_ROBUST_OUT_ONLY);
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:8,代码来源:RobustOutOnlyAxisOperation.java

示例6: InOnlyAxisOperation

import org.apache.axiom.util.UIDGenerator; //导入方法依赖的package包/类
public InOnlyAxisOperation() {
    super();
    //setup a temporary name
    QName tmpName = new QName(this.getClass().getName() + "_" + UIDGenerator.generateUID());
    this.setName(tmpName);
    createMessage();
    setMessageExchangePattern(WSDL2Constants.MEP_URI_IN_ONLY);
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:9,代码来源:InOnlyAxisOperation.java

示例7: TwoChannelAxisOperation

import org.apache.axiom.util.UIDGenerator; //导入方法依赖的package包/类
public TwoChannelAxisOperation() {
    super();
    //setup a temporary name
    QName tmpName = new QName(this.getClass().getName() + "_" + UIDGenerator.generateUID());
    this.setName(tmpName);
    createMessages();
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:8,代码来源:TwoChannelAxisOperation.java

示例8: createPolicyReference

import org.apache.axiom.util.UIDGenerator; //导入方法依赖的package包/类
public static PolicyReference createPolicyReference(Policy policy) {
	PolicyReference policyReference = new PolicyReference();
	String key = policy.getName();
	if (key == null) {
		key = policy.getId();
		if (key == null) {
			key = UIDGenerator.generateUID();
			policy.setId(key);
		}
		policyReference.setURI("#" + key);
	} else {
		policyReference.setURI(key);
	}
	return policyReference;
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:16,代码来源:PolicyUtil.java

示例9: writeExternal

import org.apache.axiom.util.UIDGenerator; //导入方法依赖的package包/类
/**
 * Save the contents of this object.
 * <p/>
 * NOTE: Transient fields and static fields are not saved.
 * Also, objects that represent "static" data are
 * not saved, except for enough information to be
 * able to find matching objects when the message
 * context is re-constituted.
 *
 * @param out The stream to write the object contents to
 * @throws IOException
 */
public void writeExternal(ObjectOutput o) throws IOException {
    SafeObjectOutputStream out = SafeObjectOutputStream.install(o);
    // write out contents of this object

    //---------------------------------------------------------
    // in order to handle future changes to the message 
    // context definition, be sure to maintain the 
    // object level identifiers
    //---------------------------------------------------------
    // serialization version ID
    out.writeLong(serialVersionUID);

    // revision ID
    out.writeInt(revisionID);

    //---------------------------------------------------------
    // various simple fields
    //---------------------------------------------------------

    out.writeLong(getLastTouchedTime());

    if (id == null) {
        // generate an ID to use when this object is restored
        id = UIDGenerator.generateUID();
    }
    out.writeObject(id);

    //---------------------------------------------------------
    // properties
    //---------------------------------------------------------
    out.writeMap(getProperties());

    //---------------------------------------------------------
    // AxisServiceGroup
    //---------------------------------------------------------
    metaAxisServiceGroup = null;
    if (axisServiceGroup != null) {
        metaAxisServiceGroup = new MetaDataEntry(axisServiceGroup.getClass().getName(),
                                                 axisServiceGroup.getServiceGroupName());
    }
    out.writeObject(metaAxisServiceGroup);

    //---------------------------------------------------------
    // parent 
    //---------------------------------------------------------

    // the parent is the ConfigurationContext object, which
    // at this time, is not being saved.
    // instead, we will need to register this ServiceGroupObject
    // with the existing ConfigurationContext object when
    // this object is reconstituted

}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:66,代码来源:ServiceGroupContext.java

示例10: InOutAxisOperation

import org.apache.axiom.util.UIDGenerator; //导入方法依赖的package包/类
public InOutAxisOperation() {
    super();
    //setup a temporary name
    QName tmpName = new QName(this.getClass().getName() + "_" + UIDGenerator.generateUID());
    this.setName(tmpName);
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:7,代码来源:InOutAxisOperation.java

示例11: getLogCorrelationIDString

import org.apache.axiom.util.UIDGenerator; //导入方法依赖的package包/类
/**
 * Get the ID associated with this object instance.
 *
 * @return A string that can be output to a log file as an identifier
 *         for this object instance.  It is suitable for matching related log
 *         entries.
 */
public String getLogCorrelationIDString() {
    if (logCorrelationIDString == null) {
        logCorrelationIDString = myClassName + "@" + UIDGenerator.generateUID();
    }
    return logCorrelationIDString;
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:14,代码来源:EndpointReference.java

示例12: getLogCorrelationID

import org.apache.axiom.util.UIDGenerator; //导入方法依赖的package包/类
/**
 * Get a "raw" version of the logCorrelationID.  The logCorrelationID
 * is guaranteed to be unique and may be persisted along with the rest
 * of the message context.
 *
 * @return A string that can be output to a log file as an identifier
 *         for this MessageContext.  It is suitable for matching related log
 *         entries.
 */
public String getLogCorrelationID() {
    if (logCorrelationID == null) {
        logCorrelationID = UIDGenerator.generateUID();
    }
    return logCorrelationID;
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:16,代码来源:MessageContext.java


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