Author: greddin
Date: Thu Apr 27 08:47:12 2006
New Revision: 397573

URL: http://svn.apache.org/viewcvs?rev=397573&view=rev
Log:
STR-2730

First hack at an interface for TilesContext.  This interface will serve to 
replace Servlet API dependencies in Tiles.


Added:
    struts/sandbox/trunk/tiles/src/java/org/apache/tiles/TilesContext.java   
(with props)

Added: struts/sandbox/trunk/tiles/src/java/org/apache/tiles/TilesContext.java
URL: 
http://svn.apache.org/viewcvs/struts/sandbox/trunk/tiles/src/java/org/apache/tiles/TilesContext.java?rev=397573&view=auto
==============================================================================
--- struts/sandbox/trunk/tiles/src/java/org/apache/tiles/TilesContext.java 
(added)
+++ struts/sandbox/trunk/tiles/src/java/org/apache/tiles/TilesContext.java Thu 
Apr 27 08:47:12 2006
@@ -0,0 +1,78 @@
+/*
+ * $Id$
+ *
+ * Copyright 1999-2004 The Apache Software Foundation.
+ * 
+ * Licensed 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.tiles;
+
+import java.util.Map;
+
+/**
+ * Contains hooks to the application execution environment.
+ *
+ * @version $Rev$ $Date$
+ */
+public interface TilesContext {
+    
+    /**
+     * Returns a mutable Map that maps application scope attribute names to 
+     * their values.
+     */
+    public Map getApplicationScope();
+    
+    /**
+     * Return an immutable Map that maps header names to the first (or only) 
+     * header value (as a String).
+     */
+    public Map getHeader();
+    
+    /**
+     * Return an immutable Map that maps header names to the set of all values 
+     * specified in the request (as a String array). Header names must be 
+     * matched in a case-insensitive manner.
+     */
+    public Map getHeaderValues();
+    
+    /**
+     * Return an immutable Map that maps context application initialization 
+     * parameters to their values.
+     */
+    public Map getInitParmas();
+    
+    /**
+     * Return an immutable Map that maps request parameter names to the first 
+     * (or only) value (as a String).
+     */
+    public Map getParam();
+    
+    /**
+     * Return an immutable Map that maps request parameter names to the set of 
+     * all values (as a String array).
+     */
+    public Map getParamValues();
+    
+    /**
+     * Return a mutable Map that maps request scope attribute names to their 
+     * values.
+     */
+    public Map getRequestScope();
+    
+    /**
+     * Return a mutable Map that maps session scope attribute names to their 
+     * values.
+     */
+    public Map getSessionScope();
+}

Propchange: 
struts/sandbox/trunk/tiles/src/java/org/apache/tiles/TilesContext.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
struts/sandbox/trunk/tiles/src/java/org/apache/tiles/TilesContext.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to