|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.shared.asn1.AbstractAsn1Object
org.apache.directory.shared.ldap.codec.LdapMessageCodec
org.apache.directory.shared.ldap.codec.extended.ExtendedRequestCodec
public class ExtendedRequestCodec
A ExtendedRequest Message. Its syntax is : ExtendedRequest ::= [APPLICATION 23] SEQUENCE { requestName [0] LDAPOID, requestValue [1] OCTET STRING OPTIONAL }
| Field Summary |
|---|
| Fields inherited from class org.apache.directory.shared.ldap.codec.LdapMessageCodec |
|---|
ldapMessageLength |
| Fields inherited from class org.apache.directory.shared.asn1.AbstractAsn1Object |
|---|
parent |
| Constructor Summary | |
|---|---|
ExtendedRequestCodec()
Creates a new ExtendedRequest object. |
|
| Method Summary | |
|---|---|
protected int |
computeLengthProtocolOp()
Compute the ExtendedRequest length ExtendedRequest : 0x77 L1 | +--> 0x80 L2 name [+--> 0x81 L3 value] L1 = Length(0x80) + Length(L2) + L2 [+ Length(0x81) + Length(L3) + L3] Length(ExtendedRequest) = Length(0x77) + Length(L1) + L1 |
protected void |
encodeProtocolOp(java.nio.ByteBuffer buffer)
Encode the ExtendedRequest message to a PDU. |
MessageTypeEnum |
getMessageType()
Get the message type |
java.lang.String |
getMessageTypeName()
Get the message type Name |
java.lang.String |
getRequestName()
Get the extended request name |
byte[] |
getRequestValue()
Get the extended request value |
void |
setRequestName(OID requestName)
Set the extended request name |
void |
setRequestValue(byte[] requestValue)
Set the extended request value |
java.lang.String |
toString()
Get a String representation of an Extended Request |
| Methods inherited from class org.apache.directory.shared.ldap.codec.LdapMessageCodec |
|---|
addControl, addControls, computeLength, encode, getCodecControl, getControls, getControls, getCurrentControl, getMessageId, initControls, setMessageId, toString |
| Methods inherited from class org.apache.directory.shared.asn1.AbstractAsn1Object |
|---|
addLength, encode, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ExtendedRequestCodec()
| Method Detail |
|---|
public MessageTypeEnum getMessageType()
getMessageType in class LdapMessageCodecpublic java.lang.String getMessageTypeName()
getMessageTypeName in class LdapMessageCodecpublic java.lang.String getRequestName()
public void setRequestName(OID requestName)
requestName - The request name to set.public byte[] getRequestValue()
public void setRequestValue(byte[] requestValue)
requestValue - The request value to set.protected int computeLengthProtocolOp()
computeLengthProtocolOp in class LdapMessageCodec
protected void encodeProtocolOp(java.nio.ByteBuffer buffer)
throws EncoderException
encodeProtocolOp in class LdapMessageCodecbuffer - The buffer where to put the PDU
EncoderExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||