Subversion Repositories XServices

Rev

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