Subversion Repositories XServices

Rev

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

Rev 74 Rev 80
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
 *
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
    
32
    
33
	/**
33
	/**
34
	 * 
34
	 * Create a new HostinfoType. 
35
	 */
35
	 */
36
	public HostinfoType() {
36
	public HostinfoType() {
37
    }
37
    }
38
	
38
	
39
	/**
39
	/**
-
 
40
	 * Create a new HostinfoType.
-
 
41
	 * 
40
	 * @param name
42
	 * @param name
41
	 * @param domain
43
	 * @param domain
42
	 * @param ip4
44
	 * @param ip4
43
	 * @param ip6
45
	 * @param ip6
44
	 */
46
	 */
45
	public HostinfoType(String name, String domain, String ip4, String ip6) {
47
	public HostinfoType(String name, String domain, String ip4, String ip6) {
46
		this.name = name;
48
		this.name = name;
47
		this.domain = domain;
49
		this.domain = domain;
48
		this.ip4 = ip4;
50
		this.ip4 = ip4;
49
		this.ip6 = ip6;
51
		this.ip6 = ip6;
50
	}
52
	}
51
 
53
 
52
    private String name;
54
    private String name;
53
    private String domain;
55
    private String domain;
54
    private String ip4;
56
    private String ip4;
55
    private String ip6;
57
    private String ip6;
56
    
58
    
57
    
59
    
58
	/**
60
	/**
-
 
61
	 * Get the host name.
-
 
62
	 * 
59
	 * @return the name
63
	 * @return the name
60
	 */
64
	 */
61
	public String getName() {
65
	public String getName() {
62
		return name;
66
		return name;
63
	}
67
	}
64
	/**
68
	/**
-
 
69
	 *  Set the host name.
-
 
70
	 *  
65
	 * @param name the name to set
71
	 * @param name the name to set
66
	 */
72
	 */
67
	public void setName(String name) {
73
	public void setName(String name) {
68
		this.name = name;
74
		this.name = name;
69
	}
75
	}
70
	/**
76
	/**
-
 
77
	 * Get the host domain.
-
 
78
	 * 
71
	 * @return the domain
79
	 * @return the domain
72
	 */
80
	 */
73
	public String getDomain() {
81
	public String getDomain() {
74
		return domain;
82
		return domain;
75
	}
83
	}
76
	/**
84
	/**
-
 
85
	 * Set the host domain.
-
 
86
	 * 
77
	 * @param domain the domain to set
87
	 * @param domain the domain to set
78
	 */
88
	 */
79
	public void setDomain(String domain) {
89
	public void setDomain(String domain) {
80
		this.domain = domain;
90
		this.domain = domain;
81
	}
91
	}
82
	/**
92
	/**
-
 
93
	 * Get the IP address version 4 representation for this host.
83
	 * @return the ip4
94
	 * @return the ip4
84
	 */
95
	 */
85
	public String getIp4() {
96
	public String getIp4() {
86
		return ip4;
97
		return ip4;
87
	}
98
	}
88
	/**
99
	/**
-
 
100
	 * Set the IP address version 4.
89
	 * @param ip4 the ip4 to set
101
	 * @param ip4 the ip4 to set
90
	 */
102
	 */
91
	public void setIp4(String ip4) {
103
	public void setIp4(String ip4) {
92
		this.ip4 = ip4;
104
		this.ip4 = ip4;
93
	}
105
	}
94
	/**
106
	/**
-
 
107
	 * Get the IP address version 6 representation for this host.
95
	 * @return the ip6
108
	 * @return the ip6
96
	 */
109
	 */
97
	public String getIp6() {
110
	public String getIp6() {
98
		return ip6;
111
		return ip6;
99
	}
112
	}
100
	/**
113
	/**
-
 
114
	 * Set the IP address version 6 representation for this host.
101
	 * @param ip6 the ip6 to set
115
	 * @param ip6 the ip6 to set
102
	 */
116
	 */
103
	public void setIp6(String ip6) {
117
	public void setIp6(String ip6) {
104
		this.ip6 = ip6;
118
		this.ip6 = ip6;
105
	}
119
	}
106
 
-
 
107
 
-
 
108
}
120
}