Is there a way to check if a domain name exists in SWF, instead of iterating the entire domain list?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you are about to register that domain anyway in case, you could simply try to call registerDomain() and catch the DomainAlreadyExistsException:
Obviously this has the side effect of actually registering the domain, if it doesn’t exist yet 😉
Otherwise describeDomain() should allow a similar approach, insofar it will throw an UnknownResourceException in case of a non existing domain: