SLING-2256 - making the missing-auth-mapping parameter configurable

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1189896 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/main/java/org/apache/sling/jcr/davex/impl/servlets/SlingDavExServlet.java b/src/main/java/org/apache/sling/jcr/davex/impl/servlets/SlingDavExServlet.java
index e3e6ba7..ca57b25 100644
--- a/src/main/java/org/apache/sling/jcr/davex/impl/servlets/SlingDavExServlet.java
+++ b/src/main/java/org/apache/sling/jcr/davex/impl/servlets/SlingDavExServlet.java
@@ -48,12 +48,12 @@
  * service registry.
  *
  */
-@Component(label = "%dav.name", description = "%dav.description")
-@Properties( { @Property(name = "alias", value = "/server"),
-        @Property(name = "init.resource-path-prefix", value = "/server"),
+@Component(label = "%dav.name", description = "%dav.description", metatype = true)
+@Properties( { @Property(name = "alias", value = "/server", propertyPrivate = true),
+        @Property(name = "init.resource-path-prefix", value = "/server", propertyPrivate = true),
         @Property(name = "init.missing-auth-mapping", value = ""),
-        @Property(name = "service.description", value = "Sling JcrRemoting Servlet"),
-        @Property(name = "service.vendor", value = "The Apache Software Foundation") })
+        @Property(name = "service.description", value = "Sling JcrRemoting Servlet", propertyPrivate = true),
+        @Property(name = "service.vendor", value = "The Apache Software Foundation", propertyPrivate = true) })
 public class SlingDavExServlet extends JcrRemotingServlet {
 
     private static final String INIT_KEY_PREFIX = "init.";
diff --git a/src/main/resources/OSGI-INF/metatype/metatype.properties b/src/main/resources/OSGI-INF/metatype/metatype.properties
index de8962e..7f0c8f3 100644
--- a/src/main/resources/OSGI-INF/metatype/metatype.properties
+++ b/src/main/resources/OSGI-INF/metatype/metatype.properties
@@ -33,6 +33,10 @@
  requests to this servlet do not pass by the Sling Main Servlet and request \
  processing.
 
+init.missing-auth-mapping.name = missing-auth-mapping
+init.missing-auth-mapping.description = The value for the missing-auth-mapping \
+ init parameter.
+
 dav.root.name = Root Path
 dav.root.description = The root path at which the DavEx Servlet is \
  accessible. The default value is "/server".