- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.apache.abdera.model.Workspace
类的一些代码示例,展示了Workspace
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Workspace
类的具体详情如下:
包路径:org.apache.abdera.model.Workspace
类名称:Workspace
[英]An Atom Publishing Protocol Introspection Document workspace element.
Per APP Draft-08
The "app:workspace" element contains information elements about the
collections of resources available for editing. The app:workspace
element MUST contain one or more app:collection elements.
appWorkspace =
element app:workspace {
appCommonAttributes,
( atomTitle
& appCollection
& extensionElement* )
}
[中]Atom发布协议自省文档工作区元素。
根据APP草稿-08
The "app:workspace" element contains information elements about the
collections of resources available for editing. The app:workspace
element MUST contain one or more app:collection elements.
appWorkspace =
element app:workspace {
appCommonAttributes,
( atomTitle
& appCollection
& extensionElement* )
}
代码示例来源:origin: org.apache.abdera/abdera-server
public Workspace asWorkspaceElement(RequestContext request) {
Workspace workspace = request.getAbdera().getFactory().newWorkspace();
workspace.setTitle(title);
for (CollectionInfo collection : this.collections)
workspace.addCollection(collection.asCollectionElement(request));
return workspace;
}
}
代码示例来源:origin: org.apache.abdera/abdera-parser
public Collection getCollection(String workspace, String collection) {
Collection col = null;
Workspace w = getWorkspace(workspace);
if (w != null) {
col = w.getCollection(collection);
}
return col;
}
代码示例来源:origin: org.apache.abdera/abdera-parser
public Collection getCollectionThatAccepts(String... types) {
Collection collection = null;
for (Workspace workspace : getWorkspaces()) {
collection = workspace.getCollectionThatAccepts(types);
if (collection != null)
break;
}
return collection;
}
代码示例来源:origin: org.xcmis/xcmis-restatom
ws.setTitle(info.getRepositoryName());
RepositoryInfoTypeElement repoInfoElement = ws.addExtension(AtomCMIS.REPOSITORY_INFO);
repoInfoElement.addSimpleExtension(AtomCMIS.REPOSITORY_ID, info.getRepositoryId());
repoInfoElement.addSimpleExtension(AtomCMIS.REPOSITORY_NAME, info.getRepositoryName());
String collectionType = cmisCollectionInfo.getCollectionType();
if (AtomCMIS.COLLECTION_TYPE_ROOT.equals(collectionType))
ws.addCollection(((CmisCollectionInfo)collectionInfo).asCollectionElement(request, repoPath, info
.getRootFolderId()));
else
ws.addCollection(((CmisCollectionInfo)collectionInfo).asCollectionElement(request, repoPath));
代码示例来源:origin: org.apache.tuscany.sca/tuscany-binding-atom-runtime
workspace.setTitle(title);
} else {
workspace.setTitle("workspace");
workspace.setBaseUri( new IRI( workspaceURL ));
Collection collection = workspace.addCollection("collection", href );
Feed feed = getFeed( request );
if ( feed != null ) {
collection.addCategories().setFixed(false);
workspace.addCollection(collection);
service.addWorkspace(workspace);
代码示例来源:origin: org.apache.abdera/abdera-parser
public Workspace addWorkspace(String title) {
complete();
FOMFactory fomfactory = (FOMFactory)factory;
Workspace workspace = fomfactory.newWorkspace(this);
workspace.setTitle(title);
return workspace;
}
代码示例来源:origin: org.fuzzydb.atom/org.fuzzydb.abdera.util
private Document<Service> init_service_doc(Abdera abdera) {
Factory factory = abdera.getFactory();
Service service = factory.newService();
Workspace workspace = service.addWorkspace("Simple");
try {
Collection collection = workspace.addCollection("Simple", "atom/feed");
collection.setAccept("entry");
collection.addCategories().setFixed(false);
} catch (Exception e) {
e.printStackTrace();
} // FIXME: Document this exception
return service.getDocument();
}
代码示例来源:origin: org.apache.abdera/abdera-extensions-json
jstream.writeField("xml:base", element.getResolvedBaseUri());
Workspace workspace = (Workspace)element;
writeElement("title", workspace.getTitleElement(), jstream);
writeList("collections", workspace.getCollections(), jstream);
writeExtensions((ExtensibleElement)element, jstream);
jstream.endObject();
代码示例来源:origin: org.apache.abdera/abdera-parser
public List<Collection> getCollectionsThatAccept(MimeType... types) {
List<Collection> collections = new ArrayList<Collection>();
for (Workspace workspace : getWorkspaces()) {
List<Collection> colls = workspace.getCollectionsThatAccept(types);
collections.addAll(colls);
}
return collections;
}
代码示例来源:origin: org.xcmis/xcmis-restatom
.append("renditionFilter={renditionFilter}").toString());
objectById.setType(AtomCMIS.URITEMPLATE_OBJECTBYID);
UriTemplateTypeElement objectByIdElement = ws.addExtension(AtomCMIS.URITEMPLATE);
objectByIdElement.build(objectById);
.append("renditionFilter={renditionFilter}").toString());
objectByPath.setType(AtomCMIS.URITEMPLATE_OBJECTBYPATH);
UriTemplateTypeElement folderByPathElement = ws.addExtension(AtomCMIS.URITEMPLATE);
folderByPathElement.build(objectByPath);
.append("includeRelationships={includeRelationships}").toString());
query.setType(AtomCMIS.URITEMPLATE_QUERY);
UriTemplateTypeElement queryElement = ws.addExtension(AtomCMIS.URITEMPLATE);
queryElement.build(query);
typeById.setTemplate(repoPath + "/typebyid/{id}");
typeById.setType(AtomCMIS.URITEMPLATE_TYPEBYID);
UriTemplateTypeElement typeByIdElement = ws.addExtension(AtomCMIS.URITEMPLATE);
typeByIdElement.build(typeById);
.append("maxItems={maxItems}").toString());
changes.setType(AtomCMIS.URITEMPLATE_CHANGES);
UriTemplateTypeElement changesElement = ws.addExtension(AtomCMIS.URITEMPLATE);
changesElement.build(changes);
代码示例来源:origin: org.xcmis/xcmis-restatom
ws.setTitle(repoInfo.getRepositoryName());
RepositoryInfoTypeElement repoInfoElement = ws.addExtension(AtomCMIS.REPOSITORY_INFO);
repoInfoElement.build(repoInfo);
String collectionType = cmisCollectionInfo.getCollectionType();
if (AtomCMIS.COLLECTION_TYPE_ROOT.equals(collectionType))
ws.addCollection(((CmisCollectionInfo)collectionInfo).asCollectionElement(request, repoPath, repoInfo
.getRootFolderId()));
else
ws.addCollection(((CmisCollectionInfo)collectionInfo).asCollectionElement(request, repoPath));
代码示例来源:origin: org.apache.abdera/abdera-parser
public List<Collection> getCollectionsThatAccept(String... types) {
List<Collection> collections = new ArrayList<Collection>();
for (Workspace workspace : getWorkspaces()) {
List<Collection> colls = workspace.getCollectionsThatAccept(types);
collections.addAll(colls);
}
return collections;
}
代码示例来源:origin: org.apache.abdera/abdera-server
public Workspace asWorkspaceElement(RequestContext request) {
Workspace workspace = request.getAbdera().getFactory().newWorkspace();
workspace.setTitle(getTitle(null));
for (CollectionInfo collection : getCollections(request))
workspace.addCollection(collection.asCollectionElement(request));
return workspace;
}
}
代码示例来源:origin: org.apache.abdera/abdera-parser
public Collection getCollectionThatAccepts(MimeType... types) {
Collection collection = null;
for (Workspace workspace : getWorkspaces()) {
collection = workspace.getCollectionThatAccepts(types);
if (collection != null)
break;
}
return collection;
}
我的 SSL 握手有一个小问题,当我尝试启动 GET 请求时,服务器返回 java.lang.RuntimeException: javax.net.ssl.SSLHandshakeException
我正在使用 Apache Abdera 将原子多部分数据发布到我的服务器,但遇到了一些我无法确定的奇怪问题。 这看起来像是分块传输编码的问题,但我没有足够的经验来确定。问题表现为服务器抛出错误,指示我
创建 apache Abdera 客户端失败 我的部分代码是 Abdera abdera = new Abdera(); AbderaClient abderaClient = ne
本文整理了Java中org.apache.abdera.writer.WriterFactory类的一些代码示例,展示了WriterFactory类的具体用法。这些代码示例主要来源于Github/St
本文整理了Java中org.apache.abdera.model.Workspace类的一些代码示例,展示了Workspace类的具体用法。这些代码示例主要来源于Github/Stackoverfl
我正在编写一个简单的文章编辑器,它将与 CMS 系统一起使用,该系统提供 Atom API 来添加/编辑文章。为了与 CMS 通信,我使用了 Apache Abdera 库。但是我遇到了字符编码问题。
寻求使用 Apache Abdera Atom 客户端的帮助。我正在尝试将文件发布并放入提要,但我收到 400 错误,提示内容类型必须为 application/x-www-form-urlencod
如何使用 abdera 将状态更新发布到 ibm 连接? 我正在尝试使用以下代码将状态发布到 ibm 连接。 public class PostStatusUpdate { public void p
本文整理了Java中org.apache.abdera.writer.WriterFactory.getWriter()方法的一些代码示例,展示了WriterFactory.getWriter()的具
本文整理了Java中org.apache.abdera.model.Workspace.setTitle()方法的一些代码示例,展示了Workspace.setTitle()的具体用法。这些代码示例主
本文整理了Java中org.apache.abdera.model.Workspace.addCollection()方法的一些代码示例,展示了Workspace.addCollection()的具体
首先,我要非常感谢 Google GData API 的工程师所做的出色工作,并且我想指出这个问题并不是要批评任何东西。它只是指出事情。 谁能给我解释一下吗?据我所知,java 的 google ap
我是一名优秀的程序员,十分优秀!