View Javadoc

1   /*
2    * Copyright 2007-2012 the original author or authors.
3    *
4    * Licensed under the Apache 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.apache.org/licenses/LICENSE-2.0
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  
17  package org.springbyexample.web.servlet.image;
18  
19  import java.io.Serializable;
20  
21  /**
22   * Thumbnail bean.
23   * 
24   * @author David Winterfeldt
25   */
26  public class ThumbnailBean implements Serializable {
27  
28  	private static final long serialVersionUID = -8975928779745981523L;
29  
30  	protected String imagePath = null;
31  	protected String thumbnailPath = null;
32  
33  	/**
34  	 * Constructor.
35  	 */
36  	public ThumbnailBean() {}
37  
38  	/**
39  	 * Constructor.
40  	 */
41  	public ThumbnailBean(String imagePath, String thumbnailPath) {
42  		this.imagePath = imagePath;
43  		this.thumbnailPath = thumbnailPath;
44  	}
45  	
46  	/**
47  	 * Gets main image path.
48  	 */
49  	public String getImagePath() {
50  		return imagePath;
51  	}
52  
53  	/**
54  	 * Sets main image path.
55  	 */
56  	public void setImagePath(String imagePath) {
57  		this.imagePath = imagePath;
58  	}
59  
60  
61  	/**
62  	 * Gets thumbail's image path.
63  	 */
64  	public String getThumbnailPath() {
65  		return thumbnailPath;
66  	}
67  
68  	/**
69  	 * Sets thumbail's image path.
70  	 */
71  	public void setThumbnailPath(String thumbnailPath) {
72  		this.thumbnailPath = thumbnailPath;
73  	}
74  	
75  }