root / src / com / rackspace / cloud / loadbalancer / api / client / Protocol.java @ aeff0a62
History | View | Annotate | Download (950 Bytes)
1 |
package com.rackspace.cloud.loadbalancer.api.client; |
---|---|
2 |
|
3 |
import java.util.ArrayList; |
4 |
import java.util.TreeMap; |
5 |
|
6 |
public class Protocol extends Entity{ |
7 |
|
8 |
/**
|
9 |
*
|
10 |
*/
|
11 |
private static final long serialVersionUID = 9174031376597839482L; |
12 |
private static ArrayList<Protocol> protocols; |
13 |
private String name; |
14 |
private String port; |
15 |
|
16 |
/**
|
17 |
* @param name the name to set
|
18 |
*/
|
19 |
public void setName(String name) { |
20 |
this.name = name;
|
21 |
} |
22 |
/**
|
23 |
* @return the name
|
24 |
*/
|
25 |
public String getName() { |
26 |
return name;
|
27 |
} |
28 |
|
29 |
/**
|
30 |
* @param port the port to set
|
31 |
*/
|
32 |
public void setPort(String port) { |
33 |
this.port = port;
|
34 |
} |
35 |
/**
|
36 |
* @return the port
|
37 |
*/
|
38 |
public String getPort() { |
39 |
return port;
|
40 |
} |
41 |
|
42 |
/**
|
43 |
* @return the protocols
|
44 |
*/
|
45 |
public static ArrayList<Protocol> getProtocols() { |
46 |
return protocols;
|
47 |
} |
48 |
/**
|
49 |
* @param protocols the protocols to set
|
50 |
*/
|
51 |
public static void setProtocols(ArrayList<Protocol> protocols) { |
52 |
Protocol.protocols = protocols; |
53 |
} |
54 |
} |