일반 HTTP를 사용하여 Jackrabbit 리포지토리를 평가할 수 있습니까?

StackOverflow https://stackoverflow.com/questions/1667762

  •  13-09-2019
  •  | 
  •  

문제

이해하기 위해 Jackrabbit 1.6에서 기본적으로 구할 수 있어야합니다 (이 블로그 항목을 찾았습니다. http://dev.day.com/microsling/content/blogs/main/jrnativehttp.html)하지만 예제 구성을 찾을 수 없습니다.

도움이 되었습니까?

해결책

로서 언급 된 기사 지적 (링크 추가) :

어쨌든, 그것을 확인하려면 Jackrabbit 1.6 독립형 서버 설명과 몇 가지 예를 찾으십시오 http : // localhost : 8080/webdav-jcr.jsp

독립형 서버를 사용하지 않으면 Jackrabbit War 배포판을 사용할 수 있습니다. 그만큼 표준 web.xml jcr-over-webdav 리모 팅을 노출하도록 이미 구성되어 있습니다 /server, 예를 들어.

http : // localhost : 8080/서버

jcrwebdavserver servlet 구성을 참조하십시오 web.xml, 사용 jcrremotingservlet 배치 읽기/쓰기 (실제로 구현 및 문서화 같은 이름의 슈퍼 클래스):

<!-- ====================================================================== -->
<!-- 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>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top