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

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


    /**
     * @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

    }
   

    private static void getResourceRecords( DnsContext dnsContext, DnsMessage request ) throws Exception
    {
        RecordStore store = dnsContext.getStore();

        List<QuestionRecord> questions = request.getQuestionRecords();

        Iterator<QuestionRecord> it = questions.iterator();
View Full Code Here

   
    private static void monitorContext( DnsContext dnsContext ) throws Exception
    {
        try
        {
            RecordStore store = dnsContext.getStore();
            List<ResourceRecord> records = dnsContext.getResourceRecords();

            StringBuffer sb = new StringBuffer();
            sb.append( "Monitoring context:" );
            sb.append( "\n\t" + "store:                     " + store );
View Full Code Here

        if ( log.isDebugEnabled() )
        {
            try
            {
                DnsContext dnsContext = ( DnsContext ) session.getAttribute( getContextKey() );
                RecordStore store = dnsContext.getStore();
                List<ResourceRecord> records = dnsContext.getResourceRecords();

                StringBuffer sb = new StringBuffer();
                sb.append( "Monitoring context:" );
                sb.append( "\n\t" + "store:                     " + store );
View Full Code Here

    private TestDnsServer(RecordStore store) {
        this.store = store;
    }

    public static TestDnsServer testResolveA(final String ipAddress) {
        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 testResolveAAAA(final String ipAddress) {
        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 testResolveMX(final int prio, final String mxRecord) {
        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 testResolveTXT(final String txt) {
        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 testResolveNS(final String ns) {
        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

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.