0
|
1 /*
|
|
2 * Copyright (c) 2009 Srikalyan Swayampakula.. All rights reserved.
|
|
3 *
|
|
4 * Author : Srikalyan Swayampakula. .
|
|
5 * Name of the File : Response.java .
|
|
6 * Created on : Nov 22, 2009 at 4:28:56 PM .
|
|
7 *
|
|
8 * Redistribution and use in source and binary forms, with or without
|
|
9 * modification, are permitted provided that the following conditions
|
|
10 * are met:
|
|
11 *
|
|
12 * 1. Redistributions of source code must retain the above
|
|
13 * copyright notice, this list of conditions and the following
|
|
14 * disclaimer.
|
|
15 * 2. Redistributions in binary form must reproduce the above
|
|
16 * copyright notice, this list of conditions and the following
|
|
17 * disclaimer in the documentation and/or other materials
|
|
18 * provided with the distribution.
|
|
19 * 3. Neither the name of the University of Georgia nor the names
|
|
20 * of its contributors may be used to endorse or promote
|
|
21 * products derived from this software without specific prior
|
|
22 * written permission.
|
|
23 *
|
|
24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
|
|
25 * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
|
26 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
27 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
28 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
29 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
30 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
31 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
32 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
34 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
|
35 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
|
36 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
37 */
|
|
38 package lsdis;
|
|
39
|
|
40 import java.util.List;
|
|
41
|
|
42 /**
|
|
43 *
|
|
44 * @author Srikalyan Swayampakula.
|
|
45 */
|
|
46 public class Response
|
|
47 {
|
|
48
|
|
49 private List<Doc> docs;
|
|
50 private List<Param> params;
|
|
51 private List<Representation> representations;
|
|
52 private int status;
|
|
53
|
|
54 public Response()
|
|
55 {
|
|
56 }
|
|
57
|
|
58 public Response(List<Doc> docs, List<Param> params, List<Representation> representations, int status)
|
|
59 {
|
|
60 this.docs = docs;
|
|
61 this.params = params;
|
|
62 this.representations = representations;
|
|
63 this.status = status;
|
|
64 }
|
|
65
|
|
66 public List<Doc> getDocs()
|
|
67 {
|
|
68 return docs;
|
|
69 }
|
|
70
|
|
71 public void setDocs(List<Doc> docs)
|
|
72 {
|
|
73 this.docs = docs;
|
|
74 }
|
|
75
|
|
76 public List<Param> getParams()
|
|
77 {
|
|
78 return params;
|
|
79 }
|
|
80
|
|
81 public void setParams(List<Param> params)
|
|
82 {
|
|
83 this.params = params;
|
|
84 }
|
|
85
|
|
86 public List<Representation> getRepresentations()
|
|
87 {
|
|
88 return representations;
|
|
89 }
|
|
90
|
|
91 public void setRepresentations(List<Representation> representations)
|
|
92 {
|
|
93 this.representations = representations;
|
|
94 }
|
|
95
|
|
96 public int getStatus()
|
|
97 {
|
|
98 return status;
|
|
99 }
|
|
100
|
|
101 public void setStatus(int status)
|
|
102 {
|
|
103 this.status = status;
|
|
104 }
|
|
105 }
|