本文整理了Java中org.apache.abdera.factory.Factory.newUuidUri()
方法的一些代码示例,展示了Factory.newUuidUri()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Factory.newUuidUri()
方法的具体详情如下:
包路径:org.apache.abdera.factory.Factory
类名称:Factory
方法名:newUuidUri
[英]Generate a new random UUID URI
[中]生成一个新的随机UUID URI
代码示例来源:origin: org.apache.abdera/abdera-core
public StreamBuilder writeId() {
return writeId(abdera.getFactory().newUuidUri());
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.abdera
public StreamBuilder writeId() {
return writeId(abdera.getFactory().newUuidUri());
}
代码示例来源:origin: org.apache.abdera/abdera-parser
public IRIElement newId() {
return setId(this.getFactory().newUuidUri(), false);
}
代码示例来源:origin: org.apache.abdera/abdera-parser
public IRIElement newId() {
return setId(this.getFactory().newUuidUri(), false);
}
代码示例来源:origin: org.apache.abdera/abdera-server
protected void setEntryIdIfNull(Entry entry) throws Exception {
// if there is no id in Entry, assign one.
if (entry.getId() != null) {
return;
}
String uuidUri = abdera.getFactory().newUuidUri();
String[] segments = uuidUri.split(":");
String entryId = segments[segments.length - 1];
entry.setId(createEntryIdUri(entryId));
}
代码示例来源:origin: org.fuzzydb.atom/org.fuzzydb.abdera.util
protected void setEntryIdIfNull(RequestContext request, Entry entry) throws Exception {
// if there is no id in Entry, assign one.
if (entry.getId() != null) {
return;
}
String uuidUri = request.getAbdera().getFactory().newUuidUri();
String[] segments = uuidUri.split(":");
String entryId = segments[segments.length - 1];
entry.setId(createEntryIdUri(entryId));
}
代码示例来源:origin: org.fuzzydb.atom/org.fuzzydb.abdera.util
entry.getIdElement().setValue(factory.newUuidUri());
entry.addLink("atom/feed/" + entry.getId().toString(),
"edit");
内容来源于网络,如有侵权,请联系作者删除!