Package org.apache.directory.server.dns.store

Examples of org.apache.directory.server.dns.store.RecordStore


            }
        });
    }

    public static TestDnsServer testResolveCNAME(final String cname) {
        return new TestDnsServer(new RecordStore() {
            @Override
            public Set<ResourceRecord> getRecords(QuestionRecord questionRecord) throws org.apache.directory.server.dns.DnsException {
                Set<ResourceRecord> set = new HashSet<>();

                ResourceRecordModifier rm = new ResourceRecordModifier();
View Full Code Here


            }
        });
    }

    public static TestDnsServer testResolvePTR(final String ptr) {
        return new TestDnsServer(new RecordStore() {
            @Override
            public Set<ResourceRecord> getRecords(QuestionRecord questionRecord) throws org.apache.directory.server.dns.DnsException {
                Set<ResourceRecord> set = new HashSet<>();

                ResourceRecordModifier rm = new ResourceRecordModifier();
View Full Code Here

            }
        });
    }

    public static TestDnsServer testResolveSRV(final int priority, final int weight, final int port, final String target) {
        return new TestDnsServer(new RecordStore() {
            @Override
            public Set<ResourceRecord> getRecords(QuestionRecord questionRecord) throws org.apache.directory.server.dns.DnsException {
                Set<ResourceRecord> set = new HashSet<>();

                ResourceRecordModifier rm = new ResourceRecordModifier();
View Full Code Here

            }
        });
    }

    public static TestDnsServer testLookup4(final String ip) {
        return new TestDnsServer(new RecordStore() {
            @Override
            public Set<ResourceRecord> getRecords(QuestionRecord questionRecord) throws org.apache.directory.server.dns.DnsException {
                Set<ResourceRecord> set = new HashSet<>();

                ResourceRecordModifier rm = new ResourceRecordModifier();
View Full Code Here

            }
        });
    }

    public static TestDnsServer testLookup6() {
        return new TestDnsServer(new RecordStore() {
            @Override
            public Set<ResourceRecord> getRecords(QuestionRecord questionRecord) throws org.apache.directory.server.dns.DnsException {
                Set<ResourceRecord> set = new HashSet<>();

                ResourceRecordModifier rm = new ResourceRecordModifier();
View Full Code Here

    public static TestDnsServer testLookup(final String ip) {
        return testLookup4(ip);
    }

    public static TestDnsServer testLookupNonExisting() {
        return new TestDnsServer(new RecordStore() {
            @Override
            public Set<ResourceRecord> getRecords(QuestionRecord questionRecord) throws org.apache.directory.server.dns.DnsException {
                return null;
            }
        });
View Full Code Here

            }
        });
    }

    public static TestDnsServer testReverseLookup(final String ptr) {
        return new TestDnsServer(new RecordStore() {
            @Override
            public Set<ResourceRecord> getRecords(QuestionRecord questionRecord) throws org.apache.directory.server.dns.DnsException {
                Set<ResourceRecord> set = new HashSet<>();

                ResourceRecordModifier rm = new ResourceRecordModifier();
View Full Code Here

    /**
     * @throws IOException if we cannot bind to the specified ports
     */
    public void start() throws IOException
    {
        RecordStore store = new JndiRecordStoreImpl( getSearchBaseDn(), getSearchBaseDn(), getDirectoryService() );

        if ( ( transports == null ) || ( transports.size() == 0 ) )
        {
            // Default to UDP with port 53
            // We have to create a DatagramAcceptor
View Full Code Here

    /**
     * @throws IOException if we cannot bind to the specified ports
     */
    public void start() throws IOException
    {
        RecordStore store = new JndiRecordStoreImpl( getSearchBaseDn(), getSearchBaseDn(), getDirectoryService() );

        if ( ( transports == null ) || ( transports.size() == 0 ) )
        {
            // Default to UDP with port 53
            // We have to create a DatagramAcceptor
View Full Code Here

    /**
     * @throws IOException if we cannot bind to the specified ports
     */
    public void start() throws IOException
    {
        RecordStore store = new JndiRecordStoreImpl( getSearchBaseDn(), getSearchBaseDn(), getDirectoryService() );

        if ( ( transports == null ) || ( transports.size() == 0 ) )
        {
            // Default to UDP with port 53
            // We have to create a DatagramAcceptor
View Full Code Here

TOP

Related Classes of org.apache.directory.server.dns.store.RecordStore

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.