Package org.apache.directory.server.dns.messages

Examples of org.apache.directory.server.dns.messages.QuestionRecord


        Iterator<QuestionRecord> it = questions.iterator();

        while ( it.hasNext() )
        {
            QuestionRecord question = it.next();
            encoder.put( byteBuffer, question );
        }
    }
View Full Code Here


            String domainName = getDomainName( byteBuffer );

            RecordType recordType = RecordType.convert( byteBuffer.getShort() );
            RecordClass recordClass = RecordClass.convert( byteBuffer.getShort() );

            questions.add( new QuestionRecord( domainName, recordType, recordClass ) );
        }

        return questions;
    }
View Full Code Here

    }


    protected QuestionRecord getTestQuestionRecord()
    {
        return new QuestionRecord( "www.example.com", RecordType.A, RecordClass.IN );
    }
View Full Code Here

    }


    protected QuestionRecord getTestMxQuestionRecord()
    {
        return new QuestionRecord( "apache.org", RecordType.MX, RecordClass.IN );
    }
View Full Code Here

    }


    protected QuestionRecord getTestQuestionRecord()
    {
        return new QuestionRecord( "www.example.com", RecordType.A, RecordClass.IN );
    }
View Full Code Here

    }


    protected QuestionRecord getTestMxQuestionRecord()
    {
        return new QuestionRecord( "apache.org", RecordType.MX, RecordClass.IN );
    }
View Full Code Here

        Iterator<QuestionRecord> it = questions.iterator();

        while ( it.hasNext() )
        {
            QuestionRecord question = it.next();
            encoder.put( byteBuffer, question );
        }
    }
View Full Code Here

            String domainName = getDomainName( byteBuffer );

            RecordType recordType = RecordType.convert( byteBuffer.getShort() );
            RecordClass recordClass = RecordClass.convert( byteBuffer.getShort() );

            questions.add( new QuestionRecord( domainName, recordType, recordClass ) );
        }

        return questions;
    }
View Full Code Here

            String domainName = getDomainName( byteBuffer );

            RecordType recordType = RecordType.convert( byteBuffer.getShort() );
            RecordClass recordClass = RecordClass.convert( byteBuffer.getShort() );

            questions.add( new QuestionRecord( domainName, recordType, recordClass ) );
        }

        return questions;
    }
View Full Code Here

TOP

Related Classes of org.apache.directory.server.dns.messages.QuestionRecord

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.