org.ldaptive.intermediate
Class AbstractIntermediateResponse

java.lang.Object
  extended by org.ldaptive.intermediate.AbstractIntermediateResponse
All Implemented Interfaces:
IntermediateResponse, Message<ResponseControl>, ResponseMessage
Direct Known Subclasses:
SyncInfoMessage

public abstract class AbstractIntermediateResponse
extends Object
implements IntermediateResponse

Base class for ldap intermediate response messages.

Version:
$Revision: 2885 $ $Date: 2014-02-05 16:28:49 -0500 (Wed, 05 Feb 2014) $
Author:
Middleware Services

Constructor Summary
AbstractIntermediateResponse(String oid, ResponseControl[] c, int i)
          Creates a new abstract intermediate response.
 
Method Summary
 boolean equals(Object o)
          
 ResponseControl getControl(String oid)
          Returns the first response control with the supplied OID for this response message.
 ResponseControl[] getControls()
          Returns the controls for this message.
 int getMessageId()
          Returns the message ID for this response message.
 String getOID()
          Returns the OID for this response.
abstract  int hashCode()
          Returns the hash code for this object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ldaptive.intermediate.IntermediateResponse
decode
 

Constructor Detail

AbstractIntermediateResponse

public AbstractIntermediateResponse(String oid,
                                    ResponseControl[] c,
                                    int i)
Creates a new abstract intermediate response.

Parameters:
oid - OID of this message
c - response controls
i - message id
Method Detail

getOID

public String getOID()
Returns the OID for this response.

Specified by:
getOID in interface IntermediateResponse
Returns:
oid

getControls

public ResponseControl[] getControls()
Returns the controls for this message.

Specified by:
getControls in interface Message<ResponseControl>
Returns:
controls

getControl

public ResponseControl getControl(String oid)
Returns the first response control with the supplied OID for this response message.

Specified by:
getControl in interface ResponseMessage
Parameters:
oid - of the response control to return
Returns:
response control or null if control could not be found

getMessageId

public int getMessageId()
Returns the message ID for this response message.

Specified by:
getMessageId in interface ResponseMessage
Returns:
message id

equals

public boolean equals(Object o)

Overrides:
equals in class Object

hashCode

public abstract int hashCode()
Returns the hash code for this object.

Overrides:
hashCode in class Object
Returns:
hash code


Copyright © 2003-2015 Virginia Tech. All Rights Reserved.