Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 15945 invoked from network); 14 Apr 2007 00:48:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Apr 2007 00:48:54 -0000 Received: (qmail 30088 invoked by uid 500); 14 Apr 2007 00:49:00 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 30034 invoked by uid 500); 14 Apr 2007 00:49:00 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 30023 invoked by uid 99); 14 Apr 2007 00:49:00 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Apr 2007 17:49:00 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Apr 2007 17:48:54 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 0BD041A9838; Fri, 13 Apr 2007 17:48:34 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r528725 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/interceptor/context/GetRootDSEServiceContext.java Date: Sat, 14 Apr 2007 00:48:33 -0000 To: commits@directory.apache.org From: elecharny@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070414004834.0BD041A9838@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: elecharny Date: Fri Apr 13 17:48:33 2007 New Revision: 528725 URL: http://svn.apache.org/viewvc?view=rev&rev=528725 Log: Created the GetRootDSEServiceContext to be used by all the interceptors Added: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/interceptor/context/GetRootDSEServiceContext.java Added: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/interceptor/context/GetRootDSEServiceContext.java URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/interceptor/context/GetRootDSEServiceContext.java?view=auto&rev=528725 ============================================================================== --- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/interceptor/context/GetRootDSEServiceContext.java (added) +++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/interceptor/context/GetRootDSEServiceContext.java Fri Apr 13 17:48:33 2007 @@ -0,0 +1,58 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * + */ +package org.apache.directory.server.core.interceptor.context; + +import org.apache.directory.shared.ldap.name.LdapDN; + +/** + * A GetRootDSE context used for Interceptors. It contains all the informations + * needed for the getRootDSE operation, and used by all the interceptors + * + * @author Apache Directory Project + * @version $Rev$, $Date$ + */ +public class GetRootDSEServiceContext extends AbstractServiceContext +{ + /** + * Creates a new instance of GetRootDSEServiceContext. + */ + public GetRootDSEServiceContext() + { + super(); + } + + /** + * Creates a new instance of GetRootDSEServiceContext. + * + * @param dn The entry DN used to get the rootDSE + */ + public GetRootDSEServiceContext( LdapDN dn ) + { + super( dn ); + } + + /** + * @see Object#toString() + */ + public String toString() + { + return "GetRootDSEContext with DN '" + getDn().getUpName() + "'"; + } +}