Author: cziegeler
Date: Thu Nov 22 14:28:03 2012
New Revision: 1412558
URL: http://svn.apache.org/viewvc?rev=1412558&view=rev
Log:
Add new SlingRequestDispatcher interface
Added:
sling/whiteboard/portal/container-api/src/main/java/org/apache/sling/portal/container/api/SlingRequestDispatcher.java
(with props)
Added:
sling/whiteboard/portal/container-api/src/main/java/org/apache/sling/portal/container/api/SlingRequestDispatcher.java
URL:
http://svn.apache.org/viewvc/sling/whiteboard/portal/container-api/src/main/java/org/apache/sling/portal/container/api/SlingRequestDispatcher.java?rev=1412558&view=auto
==============================================================================
---
sling/whiteboard/portal/container-api/src/main/java/org/apache/sling/portal/container/api/SlingRequestDispatcher.java
(added)
+++
sling/whiteboard/portal/container-api/src/main/java/org/apache/sling/portal/container/api/SlingRequestDispatcher.java
Thu Nov 22 14:28:03 2012
@@ -0,0 +1,46 @@
+/*
+ * 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.sling.portal.container.api;
+
+import java.io.IOException;
+import java.io.PrintWriter;
+import java.util.Map;
+
+import javax.servlet.ServletException;
+
+/**
+ * The Sling Request Dispatcher allows to include resources from Sling.
+ * The dispatcher is set as an attribute on the request.
+ *
+ * The dispatcher is only available in the render phase.
+ */
+public interface SlingRequestDispatcher {
+
+ String REQ_ATTR = SlingRequestDispatcher.class.getName();
+
+ String OPTION_RELATIVE_PATH = "relativePath";
+
+ String OPTION_PATH = "path";
+
+ String OPTION_RESOURCE_TYPE = "resourceType";
+
+ String OPTION_EXTENSION = "extension";
+
+ String OPTION_SELECTOR = "selector";
+
+ void include(PrintWriter writer, Map<String, Object> options) throws
IOException, ServletException;
+}
Propchange:
sling/whiteboard/portal/container-api/src/main/java/org/apache/sling/portal/container/api/SlingRequestDispatcher.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
sling/whiteboard/portal/container-api/src/main/java/org/apache/sling/portal/container/api/SlingRequestDispatcher.java
------------------------------------------------------------------------------
svn:keywords = author date id revision rev url
Propchange:
sling/whiteboard/portal/container-api/src/main/java/org/apache/sling/portal/container/api/SlingRequestDispatcher.java
------------------------------------------------------------------------------
svn:mime-type = text/plain