Subversion Repositories XServices

Rev

Rev 80 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 80 Rev 81
1
/*
1
/*
2
 *   Copyright 2012 Brian Rosenberger (Brutex Network)
2
 *   Copyright 2012 Brian Rosenberger (Brutex Network)
3
 *
3
 *
4
 *   Licensed under the Apache License, Version 2.0 (the "License");
4
 *   Licensed under the Apache License, Version 2.0 (the "License");
5
 *   you may not use this file except in compliance with 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
6
 *   You may obtain a copy of the License at
7
 *
7
 *
8
 *       http://www.apache.org/licenses/LICENSE-2.0
8
 *       http://www.apache.org/licenses/LICENSE-2.0
9
 *
9
 *
10
 *   Unless required by applicable law or agreed to in writing, software
10
 *   Unless required by applicable law or agreed to in writing, software
11
 *   distributed under the License is distributed on an "AS IS" BASIS,
11
 *   distributed under the License is distributed on an "AS IS" BASIS,
12
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 *   See the License for the specific language governing permissions and
13
 *   See the License for the specific language governing permissions and
14
 *   limitations under the License.
14
 *   limitations under the License.
15
 */
15
 */
16
 
16
 
17
package net.brutex.xservices.types;
17
package net.brutex.xservices.types;
18
 
18
 
19
import net.brutex.xservices.util.BrutexNamespaces;
19
import net.brutex.xservices.util.BrutexNamespaces;
20
 
20
 
21
import org.apache.cxf.aegis.type.java5.XmlType;
21
import org.apache.cxf.aegis.type.java5.XmlType;
22
 
22
 
23
 
23
 
24
/**
24
/**
25
 *
25
 * Host information.
26
 * @author Brian Rosenberger, bru@brutex.de
26
 * @author Brian Rosenberger, bru@brutex.de
27
 */
27
 */
28
@XmlType(name=HostinfoType.XML_NAME, namespace=BrutexNamespaces.WS_XSERVICES)
28
@XmlType(name=HostinfoType.XML_NAME, namespace=BrutexNamespaces.WS_XSERVICES)
29
public class HostinfoType {
29
public class HostinfoType {
30
 
30
 
31
	public final static String XML_NAME="hostinfo";
31
	public final static String XML_NAME="hostinfo";
-
 
32
    private String name;
-
 
33
    private String domain;
-
 
34
    private String ip4;
-
 
35
    private String ip6;
32
    
36
        
33
	/**
37
	/**
34
	 * Create a new HostinfoType. 
38
	 * Create a new HostinfoType. 
35
	 */
39
	 */
36
	public HostinfoType() {
40
	public HostinfoType() {
37
    }
41
    }
38
	
42
	
39
	/**
43
	/**
40
	 * Create a new HostinfoType.
44
	 * Create a new HostinfoType.
41
	 * 
45
	 * 
42
	 * @param name
46
	 * @param name
43
	 * @param domain
47
	 * @param domain
44
	 * @param ip4
48
	 * @param ip4
45
	 * @param ip6
49
	 * @param ip6
46
	 */
50
	 */
47
	public HostinfoType(String name, String domain, String ip4, String ip6) {
51
	public HostinfoType(String name, String domain, String ip4, String ip6) {
48
		this.name = name;
52
		this.name = name;
49
		this.domain = domain;
53
		this.domain = domain;
50
		this.ip4 = ip4;
54
		this.ip4 = ip4;
51
		this.ip6 = ip6;
55
		this.ip6 = ip6;
52
	}
56
	}
53
 
-
 
54
    private String name;
-
 
55
    private String domain;
-
 
56
    private String ip4;
-
 
57
    private String ip6;
-
 
58
    
-
 
59
    
57
 
60
	/**
58
	/**
61
	 * Get the host name.
59
	 * Get the host name.
62
	 * 
60
	 * 
63
	 * @return the name
61
	 * @return the name
64
	 */
62
	 */
65
	public String getName() {
63
	public String getName() {
66
		return name;
64
		return name;
67
	}
65
	}
68
	/**
66
	/**
69
	 *  Set the host name.
67
	 *  Set the host name.
70
	 *  
68
	 *  
71
	 * @param name the name to set
69
	 * @param name the name to set
72
	 */
70
	 */
73
	public void setName(String name) {
71
	public void setName(String name) {
74
		this.name = name;
72
		this.name = name;
75
	}
73
	}
76
	/**
74
	/**
77
	 * Get the host domain.
75
	 * Get the host domain.
78
	 * 
76
	 * 
79
	 * @return the domain
77
	 * @return the domain
80
	 */
78
	 */
81
	public String getDomain() {
79
	public String getDomain() {
82
		return domain;
80
		return domain;
83
	}
81
	}
84
	/**
82
	/**
85
	 * Set the host domain.
83
	 * Set the host domain.
86
	 * 
84
	 * 
87
	 * @param domain the domain to set
85
	 * @param domain the domain to set
88
	 */
86
	 */
89
	public void setDomain(String domain) {
87
	public void setDomain(String domain) {
90
		this.domain = domain;
88
		this.domain = domain;
91
	}
89
	}
92
	/**
90
	/**
93
	 * Get the IP address version 4 representation for this host.
91
	 * Get the IP address version 4 representation for this host.
94
	 * @return the ip4
92
	 * @return the ip4
95
	 */
93
	 */
96
	public String getIp4() {
94
	public String getIp4() {
97
		return ip4;
95
		return ip4;
98
	}
96
	}
99
	/**
97
	/**
100
	 * Set the IP address version 4.
98
	 * Set the IP address version 4.
101
	 * @param ip4 the ip4 to set
99
	 * @param ip4 the ip4 to set
102
	 */
100
	 */
103
	public void setIp4(String ip4) {
101
	public void setIp4(String ip4) {
104
		this.ip4 = ip4;
102
		this.ip4 = ip4;
105
	}
103
	}
106
	/**
104
	/**
107
	 * Get the IP address version 6 representation for this host.
105
	 * Get the IP address version 6 representation for this host.
108
	 * @return the ip6
106
	 * @return the ip6
109
	 */
107
	 */
110
	public String getIp6() {
108
	public String getIp6() {
111
		return ip6;
109
		return ip6;
112
	}
110
	}
113
	/**
111
	/**
114
	 * Set the IP address version 6 representation for this host.
112
	 * Set the IP address version 6 representation for this host.
115
	 * @param ip6 the ip6 to set
113
	 * @param ip6 the ip6 to set
116
	 */
114
	 */
117
	public void setIp6(String ip6) {
115
	public void setIp6(String ip6) {
118
		this.ip6 = ip6;
116
		this.ip6 = ip6;
119
	}
117
	}
120
}
118
}