org.apache.directory.api.ldap.model.message
Interface UnbindRequest

All Superinterfaces:
Message, Request
All Known Implementing Classes:
UnbindRequestImpl

public interface UnbindRequest
extends Request

Unbind protocol request message used to end a client session.

Author:
Apache Directory Project

Field Summary
static MessageTypeEnum TYPE
          Unbind request protocol message type
 
Method Summary
 UnbindRequest addAllControls(Control[] controls)
          Adds an array of controls to this Message.
 UnbindRequest addControl(Control control)
          Adds a control to this Message.
 UnbindRequest removeControl(Control control)
          Deletes a control removing it from this Message.
 UnbindRequest setMessageId(int messageId)
          Sets the Message ID for this request
 
Methods inherited from interface org.apache.directory.api.ldap.model.message.Request
hasResponse
 
Methods inherited from interface org.apache.directory.api.ldap.model.message.Message
get, getControl, getControls, getMessageId, getType, hasControl, put
 

Field Detail

TYPE

static final MessageTypeEnum TYPE
Unbind request protocol message type

Method Detail

setMessageId

UnbindRequest setMessageId(int messageId)
Sets the Message ID for this request

Specified by:
setMessageId in interface Message
Parameters:
messageId - The message Id
Returns:
A Message reference

addControl

UnbindRequest addControl(Control control)
                         throws MessageException
Adds a control to this Message.

Specified by:
addControl in interface Message
Parameters:
control - the control to add.
Returns:
A Message reference
Throws:
MessageException - if controls cannot be added to this Message or the control is not known etc.

addAllControls

UnbindRequest addAllControls(Control[] controls)
                             throws MessageException
Adds an array of controls to this Message.

Specified by:
addAllControls in interface Message
Parameters:
controls - the controls to add.
Returns:
A Message reference
Throws:
MessageException - if controls cannot be added to this Message or they are not known etc.

removeControl

UnbindRequest removeControl(Control control)
                            throws MessageException
Deletes a control removing it from this Message.

Specified by:
removeControl in interface Message
Parameters:
control - the control to remove.
Returns:
A Message reference
Throws:
MessageException - if controls cannot be added to this Message or the control is not known etc.


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.