public class GetFlatRecord extends java.lang.Object implements DnsOperation
| Modifier and Type | Field and Description |
|---|---|
private QuestionRecord |
question
The name of the question to get.
|
| Constructor and Description |
|---|
GetFlatRecord(QuestionRecord question)
Creates the action to be used against the embedded JNDI provider.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<ResourceRecord> |
execute(javax.naming.directory.DirContext ctx,
javax.naming.Name base)
Note that the base is a relative path from the exiting context.
|
private java.lang.String |
getAttrOrNull(javax.naming.directory.Attributes attrs,
java.lang.String name) |
private ResourceRecord |
getRecord(javax.naming.directory.Attributes attrs)
Marshals a RecordStoreEntry from an Attributes object.
|
private final QuestionRecord question
public GetFlatRecord(QuestionRecord question)
question - public java.util.Set<ResourceRecord> execute(javax.naming.directory.DirContext ctx, javax.naming.Name base) throws java.lang.Exception
execute in interface DnsOperationctx - The context to execute the command withbase - The base Dn for working with the contextjava.lang.Exception - The exception thrown by the commandprivate ResourceRecord getRecord(javax.naming.directory.Attributes attrs) throws javax.naming.NamingException
attrs - the attributes of the DNS questionjavax.naming.NamingException - if there are any access problemsprivate java.lang.String getAttrOrNull(javax.naming.directory.Attributes attrs,
java.lang.String name)
throws javax.naming.NamingException
javax.naming.NamingException