Subversion Repositories XServices

Rev

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