View Javadoc

1   /*
2    * Copyright 2009-2010 Capgemini Licensed under the Apache License, Version 2.0
3    * (the "License"); you may not use this file except in compliance with the
4    * License. You may obtain a copy of the License at
5    * 
6    * http://www.apache.org/licenses/LICENSE-2.0
7    * 
8    * Unless required by applicable law or agreed to in writing, software
9    * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
10   * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
11   * License for the specific language governing permissions and limitations under
12   * the License.
13   */
14  package net.sourceforge.statelessfilter.filter;
15  
16  import java.util.ArrayList;
17  import java.util.HashMap;
18  import java.util.List;
19  
20  import net.sourceforge.statelessfilter.backend.ISessionBackend;
21  import net.sourceforge.statelessfilter.processor.IRequestProcessor;
22  
23  import org.apache.commons.lang.StringUtils;
24  
25  /**
26   * Holds references to installed backends and configuration informations
27   * 
28   * @author Nicolas Richeton - Capgemini
29   * 
30   */
31  public class Configuration {
32      
33      public static final String BUFFERING_FALSE="false" ;
34      public static final String BUFFERING_HEADERS="headers" ;
35      public static final String BUFFERING_FULL="full" ;
36      
37  	public HashMap<String, ISessionBackend> backends = new HashMap<String, ISessionBackend>();
38  	public HashMap<String, String> backendsAttributeMapping = new HashMap<String, String>();
39  	public String defaultBackend = StringUtils.EMPTY;
40  	public String isBufferingRequired = BUFFERING_FALSE;
41  	public List<IRequestProcessor> requestProcessors = new ArrayList<IRequestProcessor>();
42  	public boolean useDirty = false;
43  }