2
據我所知,它應該是本地可用的Jackrabbit 1.6(我發現這個博客條目http://dev.day.com/microsling/content/blogs/main/jrnativehttp.html),但我找不到任何示例配置。是否可以使用純HTTP評估Jackrabbit存儲庫?
據我所知,它應該是本地可用的Jackrabbit 1.6(我發現這個博客條目http://dev.day.com/microsling/content/blogs/main/jrnativehttp.html),但我找不到任何示例配置。是否可以使用純HTTP評估Jackrabbit存儲庫?
由於mentioned article指出(鏈接補充):
總之,要檢查它運行的 Jackrabbit 1.6 standalone server和 找到說明和一些例子 在 http://localhost:8080/webdav-jcr.jsp
如果您不要使用獨立的服務器,你可以使用Jackrabbit war發行版。 standard web.xml已經配置爲在/server
處公開JCR-over-webdav遠程處理,例如。
看到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>
我設法得到它的工作使用jcr2spi HTTP ://jackrabbit.apache.org/jackrabbit-spi.html – 2009-11-07 17:38:25