org.apache.directory.shared.ldap.codec.controls
Class CascadeControlCodec

java.lang.Object
  extended by org.apache.directory.shared.asn1.AbstractAsn1Object
      extended by org.apache.directory.shared.ldap.codec.controls.CascadeControlCodec
All Implemented Interfaces:
Asn1Object

public class CascadeControlCodec
extends AbstractAsn1Object

Version:
$Rev$
Author:
Apache Directory Project

Field Summary
 
Fields inherited from class org.apache.directory.shared.asn1.AbstractAsn1Object
parent
 
Constructor Summary
CascadeControlCodec()
          Default constructor
 
Method Summary
 int computeLength()
          Returns 0 everytime.
 java.nio.ByteBuffer encode(java.nio.ByteBuffer buffer)
          Encodes the control: does nothing but returns an empty buffer.
 
Methods inherited from class org.apache.directory.shared.asn1.AbstractAsn1Object
addLength, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CascadeControlCodec

public CascadeControlCodec()
Default constructor

Method Detail

computeLength

public int computeLength()
Returns 0 everytime.

Specified by:
computeLength in interface Asn1Object
Specified by:
computeLength in class AbstractAsn1Object
Returns:
The object's computed length

encode

public java.nio.ByteBuffer encode(java.nio.ByteBuffer buffer)
                           throws EncoderException
Encodes the control: does nothing but returns an empty buffer.

Specified by:
encode in interface Asn1Object
Overrides:
encode in class AbstractAsn1Object
Parameters:
buffer - The buffer where to put the PDU
Returns:
The PDU.
Throws:
EncoderException - if the buffer can't be encoded


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.