com.novell.ldap.rfc2251.RfcSearchResultDone Maven / Gradle / Ivy
/* **************************************************************************
* $OpenLDAP: pkg/jldap/com/novell/ldap/rfc2251/RfcSearchResultDone.java,v 1.16 2002/11/05 23:48:31 vtag Exp $
*
* Copyright (C) 1999, 2000, 2001 Novell, Inc. All Rights Reserved.
*
* THIS WORK IS SUBJECT TO U.S. AND INTERNATIONAL COPYRIGHT LAWS AND
* TREATIES. USE, MODIFICATION, AND REDISTRIBUTION OF THIS WORK IS SUBJECT
* TO VERSION 2.0.1 OF THE OPENLDAP PUBLIC LICENSE, A COPY OF WHICH IS
* AVAILABLE AT HTTP://WWW.OPENLDAP.ORG/LICENSE.HTML OR IN THE FILE "LICENSE"
* IN THE TOP-LEVEL DIRECTORY OF THE DISTRIBUTION. ANY USE OR EXPLOITATION
* OF THIS WORK OTHER THAN AS AUTHORIZED IN VERSION 2.0.1 OF THE OPENLDAP
* PUBLIC LICENSE, OR OTHER PRIOR WRITTEN CONSENT FROM NOVELL, COULD SUBJECT
* THE PERPETRATOR TO CRIMINAL AND CIVIL LIABILITY.
******************************************************************************/
package com.novell.ldap.rfc2251;
import java.io.IOException;
import java.io.InputStream;
import com.novell.ldap.*;
import com.novell.ldap.asn1.*;
/**
* Represents an LDAP Search Result Done Response.
*
*
* SearchResultDone ::= [APPLICATION 5] LDAPResult
*
*/
public class RfcSearchResultDone extends RfcLDAPResult
{
//*************************************************************************
// Constructors for SearchResultDone
//*************************************************************************
/**
* Decode a search result done from the input stream.
*/
public RfcSearchResultDone(ASN1Decoder dec, InputStream in, int len)
throws IOException
{
super(dec, in, len);
return;
}
/**
* Constructs an RfcSearchResultDone from parameters.
*
* @param resultCode the result code of the operation
*
* @param matchedDN the matched DN returned from the server
*
* @param errorMessage the diagnostic message returned from the server
*
* @param referral the referral(s) returned by the server
*/
public RfcSearchResultDone(ASN1Enumerated resultCode, RfcLDAPDN matchedDN,
RfcLDAPString errorMessage, RfcReferral referral)
{
super(resultCode, matchedDN, errorMessage, referral);
return;
}
//*************************************************************************
// Accessors
//*************************************************************************
/**
* Override getIdentifier to return an application-wide id.
*/
public final ASN1Identifier getIdentifier()
{
return new ASN1Identifier(ASN1Identifier.APPLICATION, true,
LDAPMessage.SEARCH_RESULT);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy