Subversion Repositories XServices

Rev

Details | Last modification | View Log | RSS feed

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