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
-
-
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)Initiate a new instance of BDXL lookup functionality.BdxlLocator(String prefix, String hostname, String digestAlgorithm, com.google.common.io.BaseEncoding encoding)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
-
-
-
-
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)
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.
-
BdxlLocator
public BdxlLocator(String prefix, String hostname, String digestAlgorithm, com.google.common.io.BaseEncoding encoding)
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.
-
-
Method Detail
-
lookup
public URI lookup(ParticipantIdentifier participantIdentifier) throws LookupException
- Throws:
LookupException
-
-