org.apache.directory.server.dns.store.jndi.operations
Class GetRecords

java.lang.Object
  extended by org.apache.directory.server.dns.store.jndi.operations.GetRecords
All Implemented Interfaces:
java.io.Serializable, DnsOperation

public class GetRecords
extends java.lang.Object
implements DnsOperation

A JNDI context operation for looking up Resource Records from an embedded JNDI provider.

Version:
$Rev$, $Date$
Author:
Apache Directory Project
See Also:
Serialized Form

Constructor Summary
GetRecords(QuestionRecord question)
          Creates the action to be used against the embedded JNDI provider.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetRecords

public GetRecords(QuestionRecord question)
Creates the action to be used against the embedded JNDI provider.

Parameters:
question -
Method Detail

execute

public java.util.Set<ResourceRecord> execute(javax.naming.directory.DirContext ctx,
                                             javax.naming.Name base)
                                      throws java.lang.Exception
Note that the base is a relative path from the exiting context. It is not a DN.

Specified by:
execute in interface DnsOperation
Parameters:
ctx - The context to execute the command with
base - The base DN for working with the context
Returns:
Set The result returned by the command
Throws:
java.lang.Exception - The exception thrown by the command


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.