Revision 4daf0073 src/com/rackspace/cloud/files/api/client/Container.java
b/src/com/rackspace/cloud/files/api/client/Container.java | ||
---|---|---|
4 | 4 |
|
5 | 5 |
/** |
6 | 6 |
* @author Phillip Toohill dead2hill@gmail.com |
7 |
* |
|
7 |
*
|
|
8 | 8 |
*/ |
9 | 9 |
public class Container extends Entity { |
10 | 10 |
|
11 | 11 |
private static final long serialVersionUID = 5994739895998309675L; |
12 |
|
|
13 |
// Regular attributes
|
|
12 |
|
|
13 |
// Regular attributes |
|
14 | 14 |
private String name; |
15 | 15 |
private int count; |
16 | 16 |
private int bytes; |
17 |
|
|
17 |
|
|
18 | 18 |
// CDN attributes |
19 | 19 |
private boolean cdnEnabled; |
20 | 20 |
private int Ttl; |
... | ... | |
23 | 23 |
|
24 | 24 |
public String toXML() { |
25 | 25 |
String xml = ""; |
26 |
xml = "<container xmlns=\"http://docs.rackspacecloud.com/servers/api/v1.0\" name=\"" + getName()
|
|
27 |
+ "\"></server>"; |
|
26 |
xml = "<container xmlns=\"http://docs.rackspacecloud.com/servers/api/v1.0\" name=\"" |
|
27 |
+ getName() + "\"></server>";
|
|
28 | 28 |
return xml; |
29 | 29 |
} |
30 | 30 |
|
... | ... | |
36 | 36 |
} |
37 | 37 |
|
38 | 38 |
/** |
39 |
* @param name the name to set |
|
39 |
* @param name |
|
40 |
* the name to set |
|
40 | 41 |
*/ |
41 | 42 |
public void setName(String name) { |
42 | 43 |
this.name = name; |
... | ... | |
50 | 51 |
} |
51 | 52 |
|
52 | 53 |
/** |
53 |
* @param count the count to set |
|
54 |
* @param count |
|
55 |
* the count to set |
|
54 | 56 |
*/ |
55 | 57 |
public void setCount(int count) { |
56 | 58 |
this.count = count; |
... | ... | |
64 | 66 |
} |
65 | 67 |
|
66 | 68 |
/** |
67 |
* @param bytes the bytes to set |
|
69 |
* @param bytes |
|
70 |
* the bytes to set |
|
68 | 71 |
*/ |
69 | 72 |
public void setBytes(int bytes) { |
70 | 73 |
this.bytes = bytes; |
... | ... | |
78 | 81 |
} |
79 | 82 |
|
80 | 83 |
/** |
81 |
* @param cdnEnabled the cdnEnabled to set |
|
84 |
* @param cdnEnabled |
|
85 |
* the cdnEnabled to set |
|
82 | 86 |
*/ |
83 | 87 |
public void setCdnEnabled(boolean cdnEnabled) { |
84 | 88 |
this.cdnEnabled = cdnEnabled; |
... | ... | |
92 | 96 |
} |
93 | 97 |
|
94 | 98 |
/** |
95 |
* @param ttl the ttl to set |
|
99 |
* @param ttl |
|
100 |
* the ttl to set |
|
96 | 101 |
*/ |
97 | 102 |
public void setTtl(int ttl) { |
98 | 103 |
Ttl = ttl; |
... | ... | |
106 | 111 |
} |
107 | 112 |
|
108 | 113 |
/** |
109 |
* @param cdnUrl the cdnUrl to set |
|
114 |
* @param cdnUrl |
|
115 |
* the cdnUrl to set |
|
110 | 116 |
*/ |
111 | 117 |
public void setCdnUrl(String cdnUrl) { |
112 | 118 |
this.cdnUrl = cdnUrl; |
... | ... | |
120 | 126 |
} |
121 | 127 |
|
122 | 128 |
/** |
123 |
* @param logRetention the logRetention to set |
|
129 |
* @param logRetention |
|
130 |
* the logRetention to set |
|
124 | 131 |
*/ |
125 | 132 |
public void setLogRetention(boolean logRetention) { |
126 | 133 |
this.logRetention = logRetention; |
127 | 134 |
} |
128 | 135 |
|
129 |
|
|
130 |
} |
|
131 |
|
|
136 |
} |
Also available in: Unified diff