Subversion Repositories XServices

Rev

Rev 81 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 81 Rev 134
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
 
-
 
21
import org.apache.cxf.aegis.type.java5.XmlType;
-
 
22
 
20
 
23
 
21
 
24
/**
22
/**
25
 * Host information.
23
 * Host information.
26
 * @author Brian Rosenberger, bru@brutex.de
24
 * @author Brian Rosenberger, bru@brutex.de
27
 */
25
 */
28
@XmlType(name=HostinfoType.XML_NAME, namespace=BrutexNamespaces.WS_XSERVICES)
26
@javax.xml.bind.annotation.XmlType(name=HostinfoType.XML_NAME, namespace=BrutexNamespaces.WS_XSERVICES)
29
public class HostinfoType {
27
public class HostinfoType {
30
 
28
 
31
	public final static String XML_NAME="hostinfo";
29
	public final static String XML_NAME="hostinfo";
32
    private String name;
30
    private String name;
33
    private String domain;
31
    private String domain;
34
    private String ip4;
32
    private String ip4;
35
    private String ip6;
33
    private String ip6;
36
        
34
        
37
	/**
35
	/**
38
	 * Create a new HostinfoType. 
36
	 * Create a new HostinfoType. 
39
	 */
37
	 */
40
	public HostinfoType() {
38
	public HostinfoType() {
41
    }
39
    }
42
	
40
	
43
	/**
41
	/**
44
	 * Create a new HostinfoType.
42
	 * Create a new HostinfoType.
45
	 * 
43
	 * 
46
	 * @param name
44
	 * @param name
47
	 * @param domain
45
	 * @param domain
48
	 * @param ip4
46
	 * @param ip4
49
	 * @param ip6
47
	 * @param ip6
50
	 */
48
	 */
51
	public HostinfoType(String name, String domain, String ip4, String ip6) {
49
	public HostinfoType(String name, String domain, String ip4, String ip6) {
52
		this.name = name;
50
		this.name = name;
53
		this.domain = domain;
51
		this.domain = domain;
54
		this.ip4 = ip4;
52
		this.ip4 = ip4;
55
		this.ip6 = ip6;
53
		this.ip6 = ip6;
56
	}
54
	}
57
 
55
 
58
	/**
56
	/**
59
	 * Get the host name.
57
	 * Get the host name.
60
	 * 
58
	 * 
61
	 * @return the name
59
	 * @return the name
62
	 */
60
	 */
63
	public String getName() {
61
	public String getName() {
64
		return name;
62
		return name;
65
	}
63
	}
66
	/**
64
	/**
67
	 *  Set the host name.
65
	 *  Set the host name.
68
	 *  
66
	 *  
69
	 * @param name the name to set
67
	 * @param name the name to set
70
	 */
68
	 */
71
	public void setName(String name) {
69
	public void setName(String name) {
72
		this.name = name;
70
		this.name = name;
73
	}
71
	}
74
	/**
72
	/**
75
	 * Get the host domain.
73
	 * Get the host domain.
76
	 * 
74
	 * 
77
	 * @return the domain
75
	 * @return the domain
78
	 */
76
	 */
79
	public String getDomain() {
77
	public String getDomain() {
80
		return domain;
78
		return domain;
81
	}
79
	}
82
	/**
80
	/**
83
	 * Set the host domain.
81
	 * Set the host domain.
84
	 * 
82
	 * 
85
	 * @param domain the domain to set
83
	 * @param domain the domain to set
86
	 */
84
	 */
87
	public void setDomain(String domain) {
85
	public void setDomain(String domain) {
88
		this.domain = domain;
86
		this.domain = domain;
89
	}
87
	}
90
	/**
88
	/**
91
	 * Get the IP address version 4 representation for this host.
89
	 * Get the IP address version 4 representation for this host.
92
	 * @return the ip4
90
	 * @return the ip4
93
	 */
91
	 */
94
	public String getIp4() {
92
	public String getIp4() {
95
		return ip4;
93
		return ip4;
96
	}
94
	}
97
	/**
95
	/**
98
	 * Set the IP address version 4.
96
	 * Set the IP address version 4.
99
	 * @param ip4 the ip4 to set
97
	 * @param ip4 the ip4 to set
100
	 */
98
	 */
101
	public void setIp4(String ip4) {
99
	public void setIp4(String ip4) {
102
		this.ip4 = ip4;
100
		this.ip4 = ip4;
103
	}
101
	}
104
	/**
102
	/**
105
	 * Get the IP address version 6 representation for this host.
103
	 * Get the IP address version 6 representation for this host.
106
	 * @return the ip6
104
	 * @return the ip6
107
	 */
105
	 */
108
	public String getIp6() {
106
	public String getIp6() {
109
		return ip6;
107
		return ip6;
110
	}
108
	}
111
	/**
109
	/**
112
	 * Set the IP address version 6 representation for this host.
110
	 * Set the IP address version 6 representation for this host.
113
	 * @param ip6 the ip6 to set
111
	 * @param ip6 the ip6 to set
114
	 */
112
	 */
115
	public void setIp6(String ip6) {
113
	public void setIp6(String ip6) {
116
		this.ip6 = ip6;
114
		this.ip6 = ip6;
117
	}
115
	}
118
}
116
}