org.apache.directory.shared.dsmlv2.reponse
Class BatchResponse

java.lang.Object
  extended by org.apache.directory.shared.dsmlv2.reponse.BatchResponse

public class BatchResponse
extends java.lang.Object

This class represents the Batch Response of a DSML Response

Version:
$Rev$, $Date$
Author:
Apache Directory Project

Constructor Summary
BatchResponse()
          Creates a new instance of BatchResponse.
 
Method Summary
 boolean addResponse(LdapResponseCodec response)
          Adds a reponse
 LdapResponseCodec getCurrentResponse()
          Gets the current reponse
 int getRequestID()
          Gets the ID of the response
 java.util.List getResponses()
          Gets the List of all the reponses
 void setRequestID(int requestID)
          Sets the ID of the response
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatchResponse

public BatchResponse()
Creates a new instance of BatchResponse.

Method Detail

addResponse

public boolean addResponse(LdapResponseCodec response)
Adds a reponse

Parameters:
response - the response to add
Returns:
true (as per the general contract of the Collection.add method)

getCurrentResponse

public LdapResponseCodec getCurrentResponse()
Gets the current reponse

Returns:
the current response

getRequestID

public int getRequestID()
Gets the ID of the response

Returns:
the ID of the response

setRequestID

public void setRequestID(int requestID)
Sets the ID of the response

Parameters:
requestID - the ID to set

getResponses

public java.util.List getResponses()
Gets the List of all the reponses

Returns:
the List of all the responses


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