gpt4 book ai didi

java - 是否可以使用纯 HTTP 评估 Jackrabbit 存储库?

转载 作者:行者123 更新时间:2023-11-30 07:38:39 25 4
gpt4 key购买 nike

据我所知,它应该在 Jackrabbit 1.6 中原生可用(我找到了这个博客条目 http://dev.day.com/microsling/content/blogs/main/jrnativehttp.html),但我找不到任何示例配置。

最佳答案

作为mentioned article指出(已添加链接):

Anyway, to check it out run theJackrabbit 1.6 standalone server andfind the description and some examplesathttp://localhost:8080/webdav-jcr.jsp

如果你不使用独立服务器,你可以使用 Jackrabbit war distribution。 standard web.xml已经配置为在 /server 公开 JCR-over-webdav 远程处理,例如。

http://localhost:8080/server

请参阅 web.xml 中的 JCRWebdavServer servlet 配置, 使用 JcrRemotingServlet批量读/写(实际实现并记录在 super class with the same name 中):

<!-- ====================================================================== -->
<!-- J C R R E M O T I N G S E R V L E T -->
<!-- ====================================================================== -->
<servlet>
<servlet-name>JCRWebdavServer</servlet-name>
<description>
The servlet used to remote JCR calls over HTTP.
</description>
<servlet-class>org.apache.jackrabbit.j2ee.JcrRemotingServlet</servlet-class>
<init-param>
<param-name>missing-auth-mapping</param-name>
<param-value></param-value>
<description>
Defines how a missing authorization header should be handled.
1) If this init-param is missing, a 401 response is generated.
This is suiteable for clients (eg. webdav clients) for which
sending a proper authorization header is not possible if the
server never sent a 401.
2) If this init-param is present with an empty value,
null-credentials are returned, thus forcing an null login
on the repository.
3) If this init-param has a 'user:password' value, the respective
simple credentials are generated.
</description>
</init-param>
<!--
Optional parameter to define the value of the 'WWW-Authenticate' header
-->
<!--
<init-param>
<param-name>authenticate-header</param-name>
<param-value>Basic realm="Jackrabbit Webdav Server"</param-value>
<description>
Defines the value of the 'WWW-Authenticate' header.
</description>
</init-param>
-->
<init-param>
<param-name>resource-path-prefix</param-name>
<param-value>/server</param-value>
<description>
defines the prefix for spooling resources out of the repository.
</description>
</init-param>
<!--
Init parameters specific for JcrRemotingServlet
-->
<!--
<init-param>
<param-name>home</param-name>
<param-value></param-value>
<description>JcrRemotingServlet: Optional home directory for JcrRemotingServlet temporary files (default: "jackrabbit")</description>
</init-param>
<init-param>
<param-name>temp-directory</param-name>
<param-value></param-value>
<description>JcrRemotingServlet: Optional temporary directory name (under home, default: "tmp")</description>
</init-param>
-->
<init-param>
<param-name>batchread-config</param-name>
<param-value>/WEB-INF/batchread.properties</param-value>
<description>JcrRemotingServlet: Optional mapping from node type names to default depth.</description>
</init-param>
<load-on-startup>5</load-on-startup>
</servlet>

关于java - 是否可以使用纯 HTTP 评估 Jackrabbit 存储库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1667762/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com