View Javadoc
1   /**
2    * Copyright 2004-2014 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.common.aws.cloudfront;
17  
18  import java.util.List;
19  
20  import com.amazonaws.services.s3.model.ObjectListing;
21  
22  public class IndexContext {
23  
24  	ObjectListing listing;
25  	String welcomeFileKey;
26  	List<String[]> indexData;
27  	String indexHtml;
28  
29  	public IndexContext() {
30  		this(null, null, null);
31  	}
32  
33  	public IndexContext(ObjectListing listing) {
34  		this(listing, null, null);
35  	}
36  
37  	public IndexContext(ObjectListing listing, List<String[]> indexData, String welcomeFileKey) {
38  		super();
39  		this.listing = listing;
40  		this.indexData = indexData;
41  		this.welcomeFileKey = welcomeFileKey;
42  	}
43  
44  	public ObjectListing getListing() {
45  		return listing;
46  	}
47  
48  	public void setListing(ObjectListing listing) {
49  		this.listing = listing;
50  	}
51  
52  	public List<String[]> getIndexData() {
53  		return indexData;
54  	}
55  
56  	public void setIndexData(List<String[]> indexData) {
57  		this.indexData = indexData;
58  	}
59  
60  	public String getWelcomeFileKey() {
61  		return welcomeFileKey;
62  	}
63  
64  	public void setWelcomeFileKey(String welcomeFileKey) {
65  		this.welcomeFileKey = welcomeFileKey;
66  	}
67  
68  	public String getIndexHtml() {
69  		return indexHtml;
70  	}
71  
72  	public void setIndexHtml(String indexHtml) {
73  		this.indexHtml = indexHtml;
74  	}
75  
76  }