org.apache.directory.shared.ldap.codec.search.controls
Class SubEntryControl

java.lang.Object
  extended byorg.apache.directory.shared.asn1.Asn1Object
      extended byorg.apache.directory.shared.ldap.codec.search.controls.SubEntryControl

public class SubEntryControl
extends org.apache.directory.shared.asn1.Asn1Object

A searchRequest control.

Version:
$Rev: 379008 $
Author:
Apache Directory Project

Field Summary
 
Fields inherited from class org.apache.directory.shared.asn1.Asn1Object
parent
 
Constructor Summary
SubEntryControl()
           
 
Method Summary
 int computeLength()
          Compute the SubEntryControl length 0x01 0x01 [0x00|0xFF]
 java.nio.ByteBuffer encode(java.nio.ByteBuffer buffer)
          Encodes the subEntry control.
 boolean isVisible()
          Check if the subEntry is visible
 void setVisibility(boolean visibility)
          Set the visibility flag
 java.lang.String toString()
          Return a String representing this EntryChangeControl.
 
Methods inherited from class org.apache.directory.shared.asn1.Asn1Object
addLength, getCurrentLength, getExpectedLength, getParent, setCurrentLength, setExpectedLength, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SubEntryControl

public SubEntryControl()
Method Detail

isVisible

public boolean isVisible()
Check if the subEntry is visible

Returns:
true or false.

setVisibility

public void setVisibility(boolean visibility)
Set the visibility flag

Parameters:
visibility - The visibility flag : true or false

computeLength

public int computeLength()
Compute the SubEntryControl length 0x01 0x01 [0x00|0xFF]


encode

public java.nio.ByteBuffer encode(java.nio.ByteBuffer buffer)
                           throws org.apache.directory.shared.asn1.codec.EncoderException
Encodes the subEntry control.

Parameters:
buffer - The encoded sink
Returns:
A ByteBuffer that contains the encoded PDU
Throws:
org.apache.directory.shared.asn1.codec.EncoderException - If anything goes wrong.

toString

public java.lang.String toString()
Return a String representing this EntryChangeControl.



Copyright © 2003-2006 . All Rights Reserved.