public class ExtendedRequestProtocolOp extends ProtocolOp
Constructor and Description |
---|
ExtendedRequestProtocolOp(String oid)
Creates a new extended request protocol op with the specified OID and no value.
|
ExtendedRequestProtocolOp(String oid,
ByteString value)
Creates a new extended request protocol op with the specified OID and value.
|
Modifier and Type | Method and Description |
---|---|
String |
getOID()
Retrieves the OID for this extended request.
|
String |
getProtocolOpName()
Retrieves the name for this protocol op type.
|
byte |
getType()
Retrieves the BER type for this protocol op.
|
ByteString |
getValue()
Retrieves the value for this extended request.
|
void |
toString(StringBuilder buffer)
Appends a string representation of this LDAP protocol op to the provided buffer.
|
void |
write(Asn1Writer stream)
Writes this protocol op to an ASN.1 output stream.
|
toString
public ExtendedRequestProtocolOp(String oid)
oid
- The OID for this extended request.public ExtendedRequestProtocolOp(String oid, ByteString value)
oid
- The OID for this extended request.value
- The value for this extended request.public String getOID()
public ByteString getValue()
null
if there is no value.public byte getType()
ProtocolOp
getType
in class ProtocolOp
public String getProtocolOpName()
ProtocolOp
getProtocolOpName
in class ProtocolOp
public void write(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.Copyright 2010-2018 ForgeRock AS.