本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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();
}
示例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;
}
示例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
}
示例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);
}
示例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;
}
示例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;
}