Create a simple service Lookup with only a serviceName.
Create a simple service Lookup with only a serviceName. Use withPortName and withProtocol to provide optional portName and protocol
Java API
Java API
Create a simple service Lookup with only a serviceName. Use withPortName and withProtocol to provide optional portName and protocol
Create a service Lookup from a string with format: _portName._protocol.serviceName.
Create a service Lookup from a string with format: _portName._protocol.serviceName. (as specified by https://www.ietf.org/rfc/rfc2782.txt)
If the passed string conforms with this format, a SRV Lookup is returned. The serviceName part must be a valid domain name.
The string is parsed and dismembered to build a Lookup as following: Lookup(serviceName).withPortName(portName).withProtocol(protocol)
If the string doesn't not conform with the SRV format, a simple A/AAAA Lookup is returned using the whole string as service name.
Returns true if passed string conforms with SRV format.
Returns true if passed string conforms with SRV format. Otherwise returns false.