org.apache.directory.api.ldap.model.message
Class IntermediateResponseImpl

java.lang.Object
  extended by org.apache.directory.api.ldap.model.message.AbstractMessage
      extended by org.apache.directory.api.ldap.model.message.AbstractResponse
          extended by org.apache.directory.api.ldap.model.message.AbstractResultResponse
              extended by org.apache.directory.api.ldap.model.message.IntermediateResponseImpl
All Implemented Interfaces:
IntermediateResponse, Message, Response, ResultResponse

public class IntermediateResponseImpl
extends AbstractResultResponse
implements IntermediateResponse

IntermediateResponse implementation

Author:
Apache Directory Project

Field Summary
protected  String responseName
          ResponseName for the intermediate response
protected  byte[] responseValue
          Response Value for the intermediate response
 
Fields inherited from class org.apache.directory.api.ldap.model.message.AbstractResultResponse
ldapResult
 
Fields inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage
controls
 
Fields inherited from interface org.apache.directory.api.ldap.model.message.IntermediateResponse
TYPE
 
Constructor Summary
IntermediateResponseImpl(int id)
           
 
Method Summary
 boolean equals(Object obj)
          Checks to see if an object equals this IntemediateResponse.
 String getResponseName()
          Gets the OID uniquely identifying this Intermediate response (a.k.a.
 byte[] getResponseValue()
          Gets the reponseName specific encoded
 int hashCode()
          
 void setResponseName(String oid)
          Sets the OID uniquely identifying this Intermediate response (a.k.a.
 void setResponseValue(byte[] value)
          Sets the response value
 String toString()
          Get a String representation of an IntermediateResponse
 
Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractResultResponse
getLdapResult
 
Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.directory.api.ldap.model.message.Message
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId
 

Field Detail

responseName

protected String responseName
ResponseName for the intermediate response


responseValue

protected byte[] responseValue
Response Value for the intermediate response

Constructor Detail

IntermediateResponseImpl

public IntermediateResponseImpl(int id)
Method Detail

getResponseValue

public byte[] getResponseValue()
Gets the reponseName specific encoded

Specified by:
getResponseValue in interface IntermediateResponse
Returns:
the response value

setResponseValue

public void setResponseValue(byte[] value)
Sets the response value

Specified by:
setResponseValue in interface IntermediateResponse
Parameters:
value - the response value.

getResponseName

public String getResponseName()
Gets the OID uniquely identifying this Intermediate response (a.k.a. its name).

Specified by:
getResponseName in interface IntermediateResponse
Returns:
the OID of the Intermediate response type.

setResponseName

public void setResponseName(String oid)
Sets the OID uniquely identifying this Intermediate response (a.k.a. its name).

Specified by:
setResponseName in interface IntermediateResponse
Parameters:
oid - the OID of the Intermediate response type.

hashCode

public int hashCode()

Overrides:
hashCode in class AbstractResultResponse
Returns:
the instance's hash code
See Also:
Object.hashCode()

equals

public boolean equals(Object obj)
Checks to see if an object equals this IntemediateResponse.

Overrides:
equals in class AbstractResultResponse
Parameters:
obj - the object to be checked for equality
Returns:
true if the obj equals this IntemediateResponse, false otherwise

toString

public String toString()
Get a String representation of an IntermediateResponse

Overrides:
toString in class AbstractResultResponse
Returns:
An IntermediateResponse String


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