Class BdxlLocator
- java.lang.Object
-
- network.oxalis.vefa.peppol.lookup.locator.AbstractLocator
-
- network.oxalis.vefa.peppol.lookup.locator.BdxlLocator
-
- All Implemented Interfaces:
MetadataLocator
public class BdxlLocator extends AbstractLocator
Implementation of Business Document Metadata Service Location Version 1.0.- See Also:
- Specification
-
-
Field Summary
Fields Modifier and Type Field Description static InetAddressCLOUDFLARE_PRIMARY_DNSstatic InetAddressCLOUDFLARE_SECONDARY_DNSstatic InetAddressGOOGLE_PRIMARY_DNSstatic InetAddressGOOGLE_SECONDARY_DNS
-
Constructor Summary
Constructors Constructor Description BdxlLocator(String hostname)Initiate a new instance of BDXL lookup functionality using SHA-256 for hashing.BdxlLocator(String hostname, String digestAlgorithm)Initiate a new instance of BDXL lookup functionality.BdxlLocator(String prefix, String hostname, String digestAlgorithm, long timeout, int maxRetries, boolean enablePublicDNS)Initiate a new instance of BDXL lookup functionality.BdxlLocator(String prefix, String hostname, String digestAlgorithm, com.google.common.io.BaseEncoding encoding, long timeout, int maxRetries, boolean enablePublicDNS)Initiate a new instance of BDXL lookup functionality.BdxlLocator(Mode mode)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringhandleRegex(String naptrRegex, String hostname)URIlookup(ParticipantIdentifier participantIdentifier)-
Methods inherited from class network.oxalis.vefa.peppol.lookup.locator.AbstractLocator
lookup
-
-
-
-
Field Detail
-
GOOGLE_PRIMARY_DNS
public static InetAddress GOOGLE_PRIMARY_DNS
-
GOOGLE_SECONDARY_DNS
public static InetAddress GOOGLE_SECONDARY_DNS
-
CLOUDFLARE_PRIMARY_DNS
public static InetAddress CLOUDFLARE_PRIMARY_DNS
-
CLOUDFLARE_SECONDARY_DNS
public static InetAddress CLOUDFLARE_SECONDARY_DNS
-
-
Constructor Detail
-
BdxlLocator
public BdxlLocator(Mode mode)
-
BdxlLocator
public BdxlLocator(String hostname)
Initiate a new instance of BDXL lookup functionality using SHA-256 for hashing.- Parameters:
hostname- Hostname used as base for lookup.
-
BdxlLocator
public BdxlLocator(String hostname, String digestAlgorithm)
Initiate a new instance of BDXL lookup functionality.- Parameters:
hostname- Hostname used as base for lookup.digestAlgorithm- Algorithm used for generation of hostname.
-
BdxlLocator
public BdxlLocator(String prefix, String hostname, String digestAlgorithm, long timeout, int maxRetries, boolean enablePublicDNS)
Initiate a new instance of BDXL lookup functionality.- Parameters:
prefix- Value attached in front of calculated hash.hostname- Hostname used as base for lookup.digestAlgorithm- Algorithm used for generation of hostname.timeout- Lookup timeoutmaxRetries- Maximum number of retriesenablePublicDNS- Enable custom DNS lookup
-
BdxlLocator
public BdxlLocator(String prefix, String hostname, String digestAlgorithm, com.google.common.io.BaseEncoding encoding, long timeout, int maxRetries, boolean enablePublicDNS)
Initiate a new instance of BDXL lookup functionality.- Parameters:
prefix- Value attached in front of calculated hash.hostname- Hostname used as base for lookup.digestAlgorithm- Algorithm used for generation of hostname.encoding- Encoding of hash for hostname.timeout- Lookup timeoutmaxRetries- Maximum number of retriesenablePublicDNS- Enable custom DNS lookup
-
-
Method Detail
-
lookup
public URI lookup(ParticipantIdentifier participantIdentifier) throws LookupException
- Throws:
LookupException
-
-