public class AddressDefinition extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AddressDefinition.Type
Defined address types
|
Modifier and Type | Field and Description |
---|---|
static AddressDefinition |
DEFAULT
A default endpoint
|
static AddressDefinition |
RESPONSE
A response type endpoint
|
Constructor and Description |
---|
AddressDefinition(String value)
Constructs an address definition of type
AddressDefinition.Type.URL with the given url |
AddressDefinition(String id,
AddressDefinition.Type type,
String value)
Constructs and address definition of the given type with the given identifier and value
|
AddressDefinition(String id,
AddressDefinition.Type type,
String value,
double weight)
Constructs and address definition of the given type with the given identifier and value for the given weight
|
AddressDefinition(String id,
String value)
Constructs an address definition of type
AddressDefinition.Type.URL with the given url and identifier |
Modifier and Type | Method and Description |
---|---|
String |
getId()
Gets the identifier of the address
|
AddressDefinition.Type |
getType()
Gets the type of the address
|
String |
getValue()
Gets the url or the url prefix of the address depending on the typ
|
double |
getWeight()
Gets the weight of the address
|
public static final AddressDefinition RESPONSE
public static final AddressDefinition DEFAULT
public AddressDefinition(String value)
AddressDefinition.Type.URL
with the given urlvalue
- the url of the addresspublic AddressDefinition(String id, String value)
AddressDefinition.Type.URL
with the given url and identifierid
- the identifier of the addressvalue
- the url of the addresspublic AddressDefinition(String id, AddressDefinition.Type type, String value)
id
- the identifier of the addresstype
- the type of the addressvalue
- the value of the address, which is either a complete url or a url prefixpublic AddressDefinition(String id, AddressDefinition.Type type, String value, double weight)
id
- the identifier of the addresstype
- the type of the addressvalue
- the value of the address, which is either a complete url or a url prefixweight
- the weight of the addresspublic String getId()
public double getWeight()
public AddressDefinition.Type getType()
public String getValue()
Copyright © 2010–2016 AdroitLogic. All rights reserved.