View Javadoc

1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   *   http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied.  See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
18   */
19  package javax.faces.context;
20  
21  import java.util.Collection;
22  import java.util.Map;
23  import java.util.Set;
24  import javax.faces.FacesWrapper;
25  
26  /**
27   * @since 2.2
28   */
29  public abstract class FlashWrapper extends Flash implements FacesWrapper<Flash>
30  {
31  
32      @Override
33      public boolean isKeepMessages()
34      {
35          return getWrapped().isKeepMessages();
36      }
37  
38      @Override
39      public boolean isRedirect()
40      {
41          return getWrapped().isRedirect();
42      }
43  
44      @Override
45      public void keep(String key)
46      {
47          getWrapped().keep(key);
48      }
49  
50      @Override
51      public void putNow(String key, Object value)
52      {
53          getWrapped().putNow(key, value);
54      }
55  
56      @Override
57      public void setKeepMessages(boolean newValue)
58      {
59          getWrapped().setKeepMessages(newValue);
60      }
61  
62      @Override
63      public void setRedirect(boolean newValue)
64      {
65          getWrapped().setRedirect(newValue);
66      }
67  
68      @Override
69      public void doPrePhaseActions(FacesContext context)
70      {
71          getWrapped().doPrePhaseActions(context);
72      }
73  
74      @Override
75      public void doPostPhaseActions(FacesContext context)
76      {
77          getWrapped().doPostPhaseActions(context);
78      }
79  
80      public int size()
81      {
82          return getWrapped().size();
83      }
84  
85      public boolean isEmpty()
86      {
87          return getWrapped().isEmpty();
88      }
89  
90      public boolean containsKey(Object key)
91      {
92          return getWrapped().containsKey(key);
93      }
94  
95      public boolean containsValue(Object value)
96      {
97          return getWrapped().containsValue(value);
98      }
99  
100     public Object get(Object key)
101     {
102         return getWrapped().get(key);
103     }
104 
105     public Object put(String key, Object value)
106     {
107         return getWrapped().put(key, value);
108     }
109 
110     public Object remove(Object key)
111     {
112         return getWrapped().remove(key);
113     }
114 
115     public void putAll(Map<? extends String, ? extends Object> m)
116     {
117         getWrapped().putAll(m);
118     }
119 
120     public void clear()
121     {
122         getWrapped().clear();
123     }
124 
125     public Set<String> keySet()
126     {
127         return getWrapped().keySet();
128     }
129 
130     public Collection<Object> values()
131     {
132         return getWrapped().values();
133     }
134 
135     public Set<Entry<String, Object>> entrySet()
136     {
137         return getWrapped().entrySet();
138     }
139     
140     public abstract Flash getWrapped();
141 }