Class CancelResponseImpl
- java.lang.Object
-
- org.apache.directory.api.ldap.model.message.AbstractMessage
-
- org.apache.directory.api.ldap.model.message.AbstractResponse
-
- org.apache.directory.api.ldap.model.message.AbstractResultResponse
-
- org.apache.directory.api.ldap.model.message.AbstractExtendedResponse
-
- org.apache.directory.api.ldap.extras.extended.cancel.CancelResponseImpl
-
- All Implemented Interfaces:
CancelResponse
,ExtendedResponse
,Message
,Response
,ResultResponse
public class CancelResponseImpl extends AbstractExtendedResponse implements CancelResponse
The response sent back from the server after the Cancel extended operation is performed.- Author:
- Apache Directory Project
-
-
Field Summary
-
Fields inherited from interface org.apache.directory.api.ldap.extras.extended.cancel.CancelResponse
EXTENSION_OID
-
-
Constructor Summary
Constructors Constructor Description CancelResponseImpl()
Create a new CancelResponse instanceCancelResponseImpl(int messageId)
Create a new CancelResponse instanceCancelResponseImpl(int messageId, ResultCodeEnum rcode)
Create a new CancelResponse object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Checks to see if an object equals this ExtendedRequest.String
getResponseName()
Gets the OID uniquely identifying this extended response (a.k.a. its name).int
hashCode()
-
Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractExtendedResponse
setResponseName, toString
-
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 interface org.apache.directory.api.ldap.model.message.ExtendedResponse
setResponseName
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.Message
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.ResultResponse
getLdapResult
-
-
-
-
Constructor Detail
-
CancelResponseImpl
public CancelResponseImpl(int messageId, ResultCodeEnum rcode)
Create a new CancelResponse object- Parameters:
messageId
- The messageIdrcode
- the result code
-
CancelResponseImpl
public CancelResponseImpl(int messageId)
Create a new CancelResponse instance- Parameters:
messageId
- The request's messageId
-
CancelResponseImpl
public CancelResponseImpl()
Create a new CancelResponse instance
-
-
Method Detail
-
getResponseName
public String getResponseName()
Gets the OID uniquely identifying this extended response (a.k.a. its name). It's a null value for the Cancel response- Specified by:
getResponseName
in interfaceExtendedResponse
- Overrides:
getResponseName
in classAbstractExtendedResponse
- Returns:
- the OID of the extended response type.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractExtendedResponse
- Returns:
- the instance's hash code
- See Also:
Object.hashCode()
-
equals
public boolean equals(Object obj)
Description copied from class:AbstractExtendedResponse
Checks to see if an object equals this ExtendedRequest.- Overrides:
equals
in classAbstractExtendedResponse
- Parameters:
obj
- the object to be checked for equality- Returns:
- true if the obj equals this ExtendedRequest, false otherwise
- See Also:
Object.equals(Object)
-
-