Interface DomainResolver


public interface DomainResolver
The DomainResolver provides an interface for DNS querying SipURI synchronously and asynchronously.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<javax.servlet.sip.SipURI>
    locate(javax.servlet.sip.SipURI sipUri)
    query DNS synchronously for SIP Uri.
    void
    locate(javax.servlet.sip.SipURI sipUri, DomainResolverListener drListener, javax.servlet.sip.SipSession sipSession)
    query DNS asynchronously for SIP Uri.
  • Field Details

  • Method Details

    • locate

      List<javax.servlet.sip.SipURI> locate(javax.servlet.sip.SipURI sipUri) throws SipURIResolveException
      query DNS synchronously for SIP Uri.
      Parameters:
      sipUri - sip uri for the DNS query
      Returns:
      List list of results, null if nothing was found.
      Throws:
      SipURIResolveException
    • locate

      void locate(javax.servlet.sip.SipURI sipUri, DomainResolverListener drListener, javax.servlet.sip.SipSession sipSession) throws SipURIResolveException
      query DNS asynchronously for SIP Uri.
      Parameters:
      sipUri - sip uri for the DNS query
      drListener - listener which will be triggered once query is completed.
      sipSession - sip session which this query is related for.
      Throws:
      SipURIResolveException