public abstract class LdapMessageDecorator extends LdapMessageCodec
| Modifier and Type | Field and Description |
|---|---|
protected LdapMessageCodec |
instance
The decorated instance
|
ldapMessageLengthparent| Constructor and Description |
|---|
LdapMessageDecorator(LdapMessageCodec ldapMessage)
Creates a new instance of LdapMessageDecorator.
|
addControls, encode, getCodecControl, initControls, toStringgetTlvIdprotected LdapMessageCodec instance
public LdapMessageDecorator(LdapMessageCodec ldapMessage)
ldapMessage - the message to decoratepublic void addControl(Control control)
LdapMessageCodecaddControl in class LdapMessageCodeccontrol - The Control to addpublic int computeLength()
LdapMessageCodeccomputeLength in interface Asn1ObjectcomputeLength in class LdapMessageCodecpublic int computeLengthProtocolOp()
computeLengthProtocolOp in class LdapMessageCodecpublic ByteBuffer encode(ByteBuffer buffer) throws EncoderException
AbstractAsn1Objectencode in interface Asn1Objectencode in class AbstractAsn1Objectbuffer - The buffer where to put the PDUEncoderException - if the buffer can't be encodedpublic void encodeProtocolOp(ByteBuffer buffer) throws EncoderException
encodeProtocolOp in class LdapMessageCodecEncoderExceptionpublic AbandonRequestCodec getAbandonRequest()
public AddRequestCodec getAddRequest()
public AddResponseCodec getAddResponse()
public BindRequestCodec getBindRequest()
public BindResponseCodec getBindResponse()
public CompareRequestCodec getCompareRequest()
public CompareResponseCodec getCompareResponse()
public List<Control> getControls()
LdapMessageCodecgetControls in class LdapMessageCodecpublic Control getControls(int i)
LdapMessageCodecgetControls in class LdapMessageCodeci - The index of the Control Object to getpublic Control getCurrentControl()
LdapMessageCodecgetCurrentControl in class LdapMessageCodecpublic DelRequestCodec getDelRequest()
public DelResponseCodec getDelResponse()
public ExtendedRequestCodec getExtendedRequest()
public ExtendedResponseCodec getExtendedResponse()
public LdapResponseCodec getLdapResponse()
public int getMessageId()
LdapMessageCodecgetMessageId in class LdapMessageCodecpublic MessageTypeEnum getMessageType()
LdapMessageCodecgetMessageType in class LdapMessageCodecpublic String getMessageTypeName()
LdapMessageCodecgetMessageTypeName in class LdapMessageCodecpublic ModifyDNRequestCodec getModifyDNRequest()
public ModifyDNResponseCodec getModifyDNResponse()
public ModifyRequestCodec getModifyRequest()
public ModifyResponseCodec getModifyResponse()
public SearchRequestCodec getSearchRequest()
public SearchResultDoneCodec getSearchResultDone()
public SearchResultEntryCodec getSearchResultEntry()
public SearchResultReferenceCodec getSearchResultReference()
public UnBindRequestCodec getUnBindRequest()
public void setMessageId(int messageId)
LdapMessageCodecsetMessageId in class LdapMessageCodecmessageId - The message IDpublic void addLength(int length)
throws DecoderException
AbstractAsn1ObjectaddLength in interface Asn1ObjectaddLength in class AbstractAsn1Objectlength - The length to add.DecoderException - Thrown if the current length exceed the expected lengthpublic int getCurrentLength()
AbstractAsn1ObjectgetCurrentLength in interface Asn1ObjectgetCurrentLength in class AbstractAsn1Objectpublic int getExpectedLength()
AbstractAsn1ObjectgetExpectedLength in interface Asn1ObjectgetExpectedLength in class AbstractAsn1Objectpublic AbstractAsn1Object getParent()
AbstractAsn1ObjectgetParent in interface Asn1ObjectgetParent in class AbstractAsn1Objectpublic void setCurrentLength(int currentLength)
AbstractAsn1ObjectsetCurrentLength in interface Asn1ObjectsetCurrentLength in class AbstractAsn1ObjectcurrentLength - The currentLength to set.public void setExpectedLength(int expectedLength)
AbstractAsn1ObjectsetExpectedLength in interface Asn1ObjectsetExpectedLength in class AbstractAsn1ObjectexpectedLength - The expectedLength to set.public void setParent(AbstractAsn1Object parent)
AbstractAsn1ObjectsetParent in class AbstractAsn1Objectparent - The parent to set.Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.