You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by dp...@apache.org on 2012/06/19 11:39:45 UTC
svn commit: r1351618 [3/3] - in /jackrabbit/oak/trunk: ./ oak-core/
oak-it/mk/ oak-it/mk/src/main/java/org/apache/jackrabbit/mk/test/
oak-it/osgi/ oak-it/osgi/src/test/java/org/apache/jackrabbit/oak/osgi/
oak-mk-api/ oak-mk-api/src/ oak-mk-api/src/main...
Added: jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/getJournal.html
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/getJournal.html?rev=1351618&view=auto
==============================================================================
--- jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/getJournal.html (added)
+++ jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/getJournal.html Tue Jun 19 09:39:41 2012
@@ -0,0 +1,51 @@
+<html>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+<head>
+<title>µKernel prototype: getJournal</title>
+<meta http-equiv="content-type" content="text/html; charset=utf-8"></meta>
+<link rel="stylesheet" type="text/css" href="main.css"></link>
+</head>
+
+<body>
+ <script src="header.js"></script>
+ <div class="content">
+ <h1>Revision Operations: getJournal</h1>
+ <form method="POST" target="result">
+ <table class="formtable">
+ <tr>
+ <td>From Revision ID</td>
+ <td><input class="text" type="text" name="from_revision_id" id="from_revision_id" value=""></td>
+ </tr>
+ <tr>
+ <td>To Revision ID</td>
+ <td><input class="text" type="text" name="to_revision_id" id="to_revision_id" value=""></td>
+ </tr>
+ <tr>
+ <td>Filter</td>
+ <td><input class="text" type="text" name="filter" id="filter" value=""></td>
+ </tr>
+ <tr><td> </td><td>
+ <input type="submit"><br></td></tr></table>
+ </form>
+ <p>
+ <iframe name="result" height="400" width="950" src="about:blank"></iframe>
+ </p>
+ <script src="footer.js"></script>
+ </div>
+</body>
+</html>
Propchange: jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/getJournal.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/getLength.html
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/getLength.html?rev=1351618&view=auto
==============================================================================
--- jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/getLength.html (added)
+++ jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/getLength.html Tue Jun 19 09:39:41 2012
@@ -0,0 +1,43 @@
+<html>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+<head>
+<title>µKernel prototype: getLength</title>
+<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
+<link rel="stylesheet" type="text/css" href="main.css"/>
+</head>
+
+<body>
+ <script src="header.js"></script>
+ <div class="content">
+ <h1>Blob Operations: getLength</h1>
+ <form method="POST" target="result">
+ <table class="formtable">
+ <tr>
+ <td>Blob ID</td>
+ <td><input class="text" type="text" name="blob_id" id="blob_id" value=""></td>
+ </tr>
+ <tr><td> </td><td>
+ <input type="submit"><br></td></tr></table>
+ </form>
+ <p>
+ <iframe name="result" height="400" width="950" src="about:blank"></iframe>
+ </p>
+ <script src="footer.js"></script>
+ </div>
+</body>
+</html>
Propchange: jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/getLength.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/getNodes.html
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/getNodes.html?rev=1351618&view=auto
==============================================================================
--- jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/getNodes.html (added)
+++ jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/getNodes.html Tue Jun 19 09:39:41 2012
@@ -0,0 +1,63 @@
+<html>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+<head>
+<title>µKernel prototype: getNodes</title>
+<meta http-equiv="content-type" content="text/html; charset=utf-8"></meta>
+<link rel="stylesheet" type="text/css" href="main.css"></link>
+</head>
+
+<body>
+ <script src="header.js"></script>
+ <div class="content">
+ <h1>Read Operations: getNodes</h1>
+ <form method="POST" target="result">
+ <table class="formtable">
+ <tr>
+ <td>Path</td>
+ <td><input class="text" type="text" name="path" id="path" value="/"></td>
+ </tr>
+ <tr>
+ <td>Revision ID</td>
+ <td><input class="text" type="text" name="revision_id" id="revision_id" value=""></td>
+ </tr>
+ <tr>
+ <td>Depth</td>
+ <td><input class="text" type="text" name="depth" id="depth" value="1"></td>
+ </tr>
+ <tr>
+ <td>Offset</td>
+ <td><input class="text" type="text" name="offset" id="offset" value="0"></td>
+ </tr>
+ <tr>
+ <td>Count</td>
+ <td><input class="text" type="text" name="count" id="count" value="-1"></td>
+ </tr>
+ <tr>
+ <td>Filter</td>
+ <td><input class="text" type="text" name="filter" id="filter" value=""></td>
+ </tr>
+ <tr><td> </td><td>
+ <input type="submit"><br></td></tr></table>
+ </form>
+ <p>
+ <iframe name="result" height="400" width="950" src="about:blank"></iframe>
+ </p>
+ <script src="footer.js"></script>
+ </div>
+</body>
+</html>
Propchange: jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/getNodes.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/getRevisionHistory.html
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/getRevisionHistory.html?rev=1351618&view=auto
==============================================================================
--- jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/getRevisionHistory.html (added)
+++ jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/getRevisionHistory.html Tue Jun 19 09:39:41 2012
@@ -0,0 +1,47 @@
+<html>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+<head>
+<title>µKernel prototype: getRevisionHistory</title>
+<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
+<link rel="stylesheet" type="text/css" href="main.css"/>
+</head>
+
+<body>
+ <script src="header.js"></script>
+ <div class="content">
+ <h1>Revision Operations: getRevisionHistory</h1>
+ <form method="POST" target="result">
+ <table class="formtable">
+ <tr>
+ <td>Since</td>
+ <td><input class="text" type="text" name="since" id="since" value="0"></td>
+ </tr>
+ <tr>
+ <td>Max Entries</td>
+ <td><input class="text" type="text" name="max_entries" id="max_entries" value="10"></td>
+ </tr>
+ <tr><td> </td><td>
+ <input type="submit"><br></td></tr></table>
+ </form>
+ <p>
+ <iframe name="result" height="400" width="950" src="about:blank"></iframe>
+ </p>
+ <script src="footer.js"></script>
+ </div>
+</body>
+</html>
Propchange: jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/getRevisionHistory.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/header.js
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/header.js?rev=1351618&view=auto
==============================================================================
--- jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/header.js (added)
+++ jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/header.js Tue Jun 19 09:39:41 2012
@@ -0,0 +1,17 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+document.write('<div class="header"><div class="logo"><a href="http://jackrabbit.apache.org/" align="right"><img src="logo.png" align="right"></a></div><a href="index.html">µKernel</a><br>prototype</div>');
Propchange: jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/header.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/header.js
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision Rev Url
Added: jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/index.html
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/index.html?rev=1351618&view=auto
==============================================================================
--- jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/index.html (added)
+++ jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/index.html Tue Jun 19 09:39:41 2012
@@ -0,0 +1,53 @@
+<html>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+<head>
+<title>µKernel prototype</title>
+<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
+<link rel="stylesheet" type="text/css" href="main.css"/>
+</head>
+
+<body>
+ <script src="header.js"></script>
+ <div class="content">
+ <p>
+ <h4>Revision Operations</h4>
+ <a href="getHeadRevision.html">getHeadRevision</a><br>
+ <a href="getRevisionHistory.html">getRevisionHistory</a><br>
+ <a href="waitForCommit.html">waitForCommit</a><br>
+ <a href="getJournal.html">getJournal</a><br>
+ <a href="diff.html">diff</a><br>
+
+ <h4>Read Operations</h4>
+ <a href="nodeExists.html">nodeExists</a><br>
+ <a href="getNodes.html">getNodes</a><br>
+ <a href="getChildNodeCount.html">getChildNodeCount</a><br>
+
+ <h4>Write Operations</h4>
+ <a href="commit.html">commit</a><br>
+ <a href="branch.html">branch</a><br>
+ <a href="merge.html">merge</a><br>
+
+ <h4>Blob Operations</h4>
+ <a href="getLength.html">getLength</a><br>
+ <a href="read.html">read</a><br>
+ <a href="write.html">write</a><br>
+ </p>
+ </div>
+ <script src="footer.js"></script>
+</body>
+</html>
Propchange: jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/index.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/logo.png
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/logo.png?rev=1351618&view=auto
==============================================================================
Binary file - no diff available.
Propchange: jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/logo.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/main.css
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/main.css?rev=1351618&view=auto
==============================================================================
--- jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/main.css (added)
+++ jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/main.css Tue Jun 19 09:39:41 2012
@@ -0,0 +1,167 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+body {
+ background: #eee url(bg-body.png) top center repeat-y;
+ color: #333;
+ font-family: Georgia, Times New Roman;
+ margin: 0 auto 0;
+ padding: 0;
+}
+
+.logo {
+ float: right;
+}
+
+.twocols {
+ background: #eee url(bg-twocols.png) top center repeat-y;
+}
+
+a, a:visited {
+ color: #58a;
+ text-decoration: none;
+}
+
+a:hover {
+ background-color: #ffc;
+ text-decoration: underline;
+}
+
+img {
+ border-style: none;
+}
+
+.header {
+ background: #fff;
+ margin: 0 auto 0;
+ text-align: left;
+ padding: 9px 0 29px 0;
+ width: 960px;
+ border-top: 10px solid #ccc;
+}
+
+.header a {
+ font-family: Helvetica, Verdana;
+ letter-spacing: -1px;
+ font-size: 31px;
+ font-weight: bold;
+ color: #58a;
+ text-decoration: none;
+ padding: 0 10px 0 0;
+ margin: 0;
+}
+
+.header a:hover {
+ color: #69d;
+ text-decoration: underline;
+}
+
+.leftcol {
+ width: 440px;
+ margin: 0 20px 0 0;
+ padding: 5px 0 5px 0;
+}
+
+.rightcol {
+ width: 440px;
+ margin: 0 20px 0 0;
+ padding: 5px 0 5px 0;
+}
+
+.formtable {
+ margin-top: 20px;
+ width: 600px;
+ padding: 0;
+ clear: both;
+}
+
+.formtable td {
+ padding: 5px;
+ width: 300px;
+ border-top: dotted #ddd 1px;
+}
+
+.formtable input.text {
+ width: 300px;
+}
+
+
+.content {
+ width: 960px;
+ margin: 0 auto 0;
+ padding: 0;
+ clear: both;
+}
+
+.content p {
+ padding: 0 0 15px 0;
+ margin: 0;
+ line-height: 20px;
+ font-size: 14px;
+}
+
+.content p img {
+ float: left;
+ border: none;
+ margin-right: 15px;
+ margin-bottom: 10px;
+}
+
+.content h1 {
+ border-top: 2px solid olive;
+ color: #58a;
+ font-family: Helvetica,Verdana;
+ font-size: 18px;
+ font-weight: bold;
+ line-height: 20px;
+ margin: 0;
+ padding: 5px 0;
+}
+
+.content h1 a {
+ color: #58a;
+ margin-left: -5px;
+ padding: 0 10px 0 5px;
+ text-decoration: none;
+}
+
+.content h1 a:hover {
+ background-color: #ffc;
+ color: #68b;
+}
+
+.content h2 {
+ color: olive;
+ font-size: 12px;
+ font-family: Helvetica, Verdana;
+ font-weight: bold;
+ margin: 20px 0 5px 0;
+ padding: 3px 0 3px 0;
+ border-top: 2px solid olive;
+ border-bottom: 1px dotted #ccc;
+}
+
+.footer {
+ font-size: 12px;
+ background: #fff;
+ width: 960px;
+ margin: 0 auto 0;
+ padding: 10px 0 10px 0;
+ text-align: left;
+ border-top: 1px solid #ccc;
+ clear: both;
+}
\ No newline at end of file
Propchange: jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/main.css
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/main.css
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision Rev Url
Added: jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/merge.html
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/merge.html?rev=1351618&view=auto
==============================================================================
--- jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/merge.html (added)
+++ jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/merge.html Tue Jun 19 09:39:41 2012
@@ -0,0 +1,47 @@
+<html>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+<head>
+<title>µKernel prototype: branch</title>
+<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
+<link rel="stylesheet" type="text/css" href="main.css"/>
+</head>
+
+<body>
+ <script src="header.js"></script>
+ <div class="content">
+ <h1>Write Operations: merge</h1>
+ <form method="POST" target="result">
+ <table class="formtable">
+ <tr>
+ <td>Branch Revision ID</td>
+ <td><input class="text" type="text" name="branch_revision_id" id="branch_revision_id" value=""></td>
+ </tr>
+ <tr>
+ <td>Message</td>
+ <td><input class="text" type="text" name="message" id="message" value=""></td>
+ </tr>
+ <tr><td> </td><td>
+ <input type="submit"><br></td></tr></table>
+ </form>
+ <p>
+ <iframe name="result" height="400" width="950" src="about:blank"></iframe>
+ </p>
+ <script src="footer.js"></script>
+ </div>
+</body>
+</html>
Propchange: jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/merge.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/nodeExists.html
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/nodeExists.html?rev=1351618&view=auto
==============================================================================
--- jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/nodeExists.html (added)
+++ jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/nodeExists.html Tue Jun 19 09:39:41 2012
@@ -0,0 +1,47 @@
+<html>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+<head>
+<title>µKernel prototype: nodeExists</title>
+<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
+<link rel="stylesheet" type="text/css" href="main.css"/>
+</head>
+
+<body>
+ <script src="header.js"></script>
+ <div class="content">
+ <h1>Read Operations: nodeExists</h1>
+ <form method="POST" target="result">
+ <table class="formtable">
+ <tr>
+ <td>Path</td>
+ <td><input class="text" type="text" name="path" id="path" value="/"></td>
+ </tr>
+ <tr>
+ <td>Revision ID</td>
+ <td><input class="text" type="text" name="revision_id" id="revision_id" value=""></td>
+ </tr>
+ <tr><td> </td><td>
+ <input type="submit"><br></td></tr></table>
+ </form>
+ <p>
+ <iframe name="result" height="400" width="950" src="about:blank"></iframe>
+ </p>
+ <script src="footer.js"></script>
+ </div>
+</body>
+</html>
Propchange: jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/nodeExists.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/read.html
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/read.html?rev=1351618&view=auto
==============================================================================
--- jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/read.html (added)
+++ jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/read.html Tue Jun 19 09:39:41 2012
@@ -0,0 +1,43 @@
+<html>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+<head>
+<title>µKernel prototype: read</title>
+<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
+<link rel="stylesheet" type="text/css" href="main.css"/>
+</head>
+
+<body>
+ <script src="header.js"></script>
+ <div class="content">
+ <h1>Blob Operations: read</h1>
+ <form method="POST" target="result">
+ <table class="formtable">
+ <tr>
+ <td>Blob ID</td>
+ <td><input class="text" type="text" name="blob_id" id="blob_id" value=""></td>
+ </tr>
+ <tr><td> </td><td>
+ <input type="submit"><br></td></tr></table>
+ </form>
+ <p>
+ <iframe name="result" height="400" width="950" src="about:blank"></iframe>
+ </p>
+ <script src="footer.js"></script>
+ </div>
+</body>
+</html>
Propchange: jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/read.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/waitForCommit.html
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/waitForCommit.html?rev=1351618&view=auto
==============================================================================
--- jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/waitForCommit.html (added)
+++ jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/waitForCommit.html Tue Jun 19 09:39:41 2012
@@ -0,0 +1,47 @@
+<html>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+<head>
+<title>µKernel prototype: waitForCommit</title>
+<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
+<link rel="stylesheet" type="text/css" href="main.css"/>
+</head>
+
+<body>
+ <script src="header.js"></script>
+ <div class="content">
+ <h1>Revision Operations: waitForCommit</h1>
+ <form method="POST" target="result">
+ <table class="formtable">
+ <tr>
+ <td>Revision ID</td>
+ <td><input class="text" type="text" name="revision_id" id="revision_id" value=""></td>
+ </tr>
+ <tr>
+ <td>Max Wait Millis</td>
+ <td><input class="text" type="text" name="max_wait_millis" id="max_wait_millis" value="10000"></td>
+ </tr>
+ <tr><td> </td><td>
+ <input type="submit"><br></td></tr></table>
+ </form>
+ <p>
+ <iframe name="result" height="400" width="950" src="about:blank"></iframe>
+ </p>
+ <script src="footer.js"></script>
+ </div>
+</body>
+</html>
Propchange: jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/waitForCommit.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/write.html
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/write.html?rev=1351618&view=auto
==============================================================================
--- jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/write.html (added)
+++ jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/write.html Tue Jun 19 09:39:41 2012
@@ -0,0 +1,43 @@
+<html>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+<head>
+<title>µKernel prototype: write</title>
+<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
+<link rel="stylesheet" type="text/css" href="main.css"/>
+</head>
+
+<body>
+ <script src="header.js"></script>
+ <div class="content">
+ <h1>Blob Operations: write</h1>
+ <form method="POST" enctype="multipart/form-data" target="result">
+ <table class="formtable">
+ <tr>
+ <td>File</td>
+ <td><input class="file" type="file" name="file" id="file"/></td>
+ </tr>
+ <tr><td> </td><td>
+ <input type="submit"><br></td></tr></table>
+ </form>
+ <p>
+ <iframe name="result" height="400" width="950" src="about:blank"></iframe>
+ </p>
+ <script src="footer.js"></script>
+ </div>
+</body>
+</html>
Propchange: jackrabbit/oak/trunk/oak-mk-remote/src/main/resources/org/apache/jackrabbit/mk/server/write.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: jackrabbit/oak/trunk/oak-mk-remote/src/test/java/org/apache/jackrabbit/mk/server/BoundaryInputStreamTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-mk-remote/src/test/java/org/apache/jackrabbit/mk/server/BoundaryInputStreamTest.java?rev=1351618&view=auto
==============================================================================
--- jackrabbit/oak/trunk/oak-mk-remote/src/test/java/org/apache/jackrabbit/mk/server/BoundaryInputStreamTest.java (added)
+++ jackrabbit/oak/trunk/oak-mk-remote/src/test/java/org/apache/jackrabbit/mk/server/BoundaryInputStreamTest.java Tue Jun 19 09:39:41 2012
@@ -0,0 +1,65 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.jackrabbit.mk.server;
+
+import junit.framework.TestCase;
+
+import java.io.ByteArrayInputStream;
+import java.io.ByteArrayOutputStream;
+import java.util.Random;
+import java.util.Arrays;
+
+import org.apache.jackrabbit.mk.util.IOUtils;
+
+public class BoundaryInputStreamTest extends TestCase {
+
+ private static final String BOUNDARY = "------ClientFormBoundaryHB5WJrSAPZjfwtqt--";
+
+ private static final Random RANDOM = new Random();
+
+ @Override
+ protected void setUp() throws Exception {
+ super.setUp();
+ }
+
+ /**
+ * Create a very small boundary input stream, where the boundary will be
+ * split between two reads.
+ */
+ public void testSmallReads() throws Exception {
+ byte[] content = new byte[1024];
+ RANDOM.nextBytes(content);
+
+ ByteArrayOutputStream out = new ByteArrayOutputStream();
+ out.write(content);
+ out.write("\r\n".getBytes());
+ out.write(BOUNDARY.getBytes());
+
+ byte[] noise = new byte[content.length];
+ RANDOM.nextBytes(noise);
+ out.write(noise);
+
+ BoundaryInputStream in = new BoundaryInputStream(
+ new ByteArrayInputStream(out.toByteArray()), BOUNDARY, 1);
+ out = new ByteArrayOutputStream(8192);
+ IOUtils.copy(in, out);
+
+ byte[] result = out.toByteArray();
+ assertEquals(content.length, result.length);
+ assertTrue(Arrays.equals(content, result));
+ }
+}
Propchange: jackrabbit/oak/trunk/oak-mk-remote/src/test/java/org/apache/jackrabbit/mk/server/BoundaryInputStreamTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: jackrabbit/oak/trunk/oak-mk-remote/src/test/java/org/apache/jackrabbit/mk/server/BoundaryInputStreamTest.java
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision Rev Url
Modified: jackrabbit/oak/trunk/oak-mk/pom.xml
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-mk/pom.xml?rev=1351618&r1=1351617&r2=1351618&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-mk/pom.xml (original)
+++ jackrabbit/oak/trunk/oak-mk/pom.xml Tue Jun 19 09:39:41 2012
@@ -39,12 +39,9 @@
<configuration>
<instructions>
<Export-Package>
- org.apache.jackrabbit.mk.api,
- org.apache.jackrabbit.mk.server,
org.apache.jackrabbit.mk.json,
org.apache.jackrabbit.mk.util,
org.apache.jackrabbit.mk.core,
- org.apache.jackrabbit.mk.client,
org.apache.jackrabbit.mk.blobs
</Export-Package>
</instructions>
@@ -82,6 +79,13 @@
<scope>provided</scope>
</dependency>
+ <!-- api dependency -->
+ <dependency>
+ <groupId>org.apache.jackrabbit</groupId>
+ <artifactId>oak-mk-api</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
<!-- commons dependency -->
<dependency>
<groupId>org.apache.jackrabbit</groupId>
Modified: jackrabbit/oak/trunk/pom.xml
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/pom.xml?rev=1351618&r1=1351617&r2=1351618&view=diff
==============================================================================
--- jackrabbit/oak/trunk/pom.xml (original)
+++ jackrabbit/oak/trunk/pom.xml Tue Jun 19 09:39:41 2012
@@ -38,7 +38,9 @@
<modules>
<module>oak-parent</module>
<module>oak-commons</module>
+ <module>oak-mk-api</module>
<module>oak-mk</module>
+ <module>oak-mk-remote</module>
<module>oak-core</module>
<module>oak-jcr</module>
<module>oak-sling</module>