public class ExtendedResponseProtocolOp extends ProtocolOp
Constructor and Description |
---|
ExtendedResponseProtocolOp(int resultCode)
Creates a new extended response protocol op with the provided result code.
|
ExtendedResponseProtocolOp(int resultCode,
LocalizableMessage errorMessage)
Creates a new extended response protocol op with the provided result code
and error message.
|
ExtendedResponseProtocolOp(int resultCode,
LocalizableMessage errorMessage,
org.forgerock.opendj.ldap.Dn matchedDN,
List<String> referralURLs)
Creates a new extended response protocol op with the provided information.
|
ExtendedResponseProtocolOp(int resultCode,
LocalizableMessage errorMessage,
org.forgerock.opendj.ldap.Dn matchedDN,
List<String> referralURLs,
String oid,
org.forgerock.opendj.ldap.ByteString value)
Creates a new extended response protocol op with the provided information.
|
Modifier and Type | Method and Description |
---|---|
LocalizableMessage |
getErrorMessage()
Retrieves the error message for this response.
|
org.forgerock.opendj.ldap.Dn |
getMatchedDN()
Retrieves the matched DN for this response.
|
String |
getOID()
Retrieves the OID for this extended response.
|
String |
getProtocolOpName()
Retrieves the name for this protocol op type.
|
List<String> |
getReferralURLs()
Retrieves the set of referral URLs for this response.
|
int |
getResultCode()
Retrieves the result code for this response.
|
byte |
getType()
Retrieves the BER type for this protocol op.
|
org.forgerock.opendj.ldap.ByteString |
getValue()
Retrieves the value for this extended response.
|
void |
toString(StringBuilder buffer)
Appends a string representation of this LDAP protocol op to the provided
buffer.
|
void |
toString(StringBuilder buffer,
int indent)
Appends a multi-line string representation of this LDAP protocol op to the
provided buffer.
|
void |
write(org.forgerock.opendj.io.Asn1Writer stream)
Writes this protocol op to an ASN.1 output stream.
|
toString
public ExtendedResponseProtocolOp(int resultCode)
resultCode
- The result code for this response.public ExtendedResponseProtocolOp(int resultCode, LocalizableMessage errorMessage)
resultCode
- The result code for this response.errorMessage
- The error message for this response.public ExtendedResponseProtocolOp(int resultCode, LocalizableMessage errorMessage, org.forgerock.opendj.ldap.Dn matchedDN, List<String> referralURLs)
resultCode
- The result code for this response.errorMessage
- The error message for this response.matchedDN
- The matched DN for this response.referralURLs
- The referral URLs for this response.public ExtendedResponseProtocolOp(int resultCode, LocalizableMessage errorMessage, org.forgerock.opendj.ldap.Dn matchedDN, List<String> referralURLs, String oid, org.forgerock.opendj.ldap.ByteString value)
resultCode
- The result code for this response.errorMessage
- The error message for this response.matchedDN
- The matched DN for this response.referralURLs
- The referral URLs for this response.oid
- The OID for this extended response.value
- The value for this extended response.public int getResultCode()
public LocalizableMessage getErrorMessage()
null
if none
is available.public org.forgerock.opendj.ldap.Dn getMatchedDN()
null
if none is
available.public List<String> getReferralURLs()
null
if none are available.public String getOID()
null
if none
was provided.public org.forgerock.opendj.ldap.ByteString getValue()
null
if none
was provided.public byte getType()
ProtocolOp
getType
in class ProtocolOp
public String getProtocolOpName()
ProtocolOp
getProtocolOpName
in class ProtocolOp
public void write(org.forgerock.opendj.io.Asn1Writer stream) throws IOException
ProtocolOp
write
in class ProtocolOp
stream
- The ASN.1 output stream to write to.IOException
- If a problem occurs while writing to the stream.public void toString(StringBuilder buffer)
ProtocolOp
toString
in class ProtocolOp
buffer
- The buffer to which the string should be appended.public void toString(StringBuilder buffer, int indent)
ProtocolOp
toString
in class ProtocolOp
buffer
- The buffer to which the information should be appended.indent
- The number of spaces from the margin that the lines should
be indented.Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.