org.apache.directory.api.ldap.extras.extended.ads_impl.gracefulDisconnect
Class GracefulDisconnectResponseDecorator

java.lang.Object
  extended by org.apache.directory.api.ldap.codec.api.MessageDecorator<M>
      extended by org.apache.directory.api.ldap.codec.decorators.ResponseDecorator<R>
          extended by org.apache.directory.api.ldap.codec.api.ExtendedResponseDecorator<GracefulDisconnectResponse>
              extended by org.apache.directory.api.ldap.extras.extended.ads_impl.gracefulDisconnect.GracefulDisconnectResponseDecorator
All Implemented Interfaces:
Decorator<GracefulDisconnectResponse>, GracefulDisconnectResponse, ExtendedResponse, Message, Response, ResultResponse

public class GracefulDisconnectResponseDecorator
extends ExtendedResponseDecorator<GracefulDisconnectResponse>
implements GracefulDisconnectResponse

A Decorator for CancelResponses.

Author:
Apache Directory Project

Field Summary
 
Fields inherited from class org.apache.directory.api.ldap.codec.api.ExtendedResponseDecorator
responseValue
 
Fields inherited from class org.apache.directory.api.ldap.codec.api.MessageDecorator
messageLength
 
Fields inherited from interface org.apache.directory.api.ldap.extras.extended.GracefulDisconnectResponse
EXTENSION_OID
 
Fields inherited from interface org.apache.directory.api.ldap.model.message.ExtendedResponse
TYPE
 
Constructor Summary
GracefulDisconnectResponseDecorator(LdapApiService codec, byte[] responseValue)
          Creates a new instance of CancelResponseDecorator.
GracefulDisconnectResponseDecorator(LdapApiService codec, GracefulDisconnectResponse decoratedMessage)
          Creates a new instance of CancelResponseDecorator.
 
Method Summary
 int getDelay()
          Gets the delay before disconnection, in seconds.
 Referral getReplicatedContexts()
          Gets the replicated contexts.
 byte[] getResponseValue()
          Gets the response OID specific encoded response values.
 int getTimeOffline()
          Gets the offline time after disconnection, in minutes.
 void setDelay(int delay)
          Sets the delay befor disconnection, in seconds.
 void setResponseValue(byte[] responseValue)
          Sets the response OID specific encoded response values.
 void setTimeOffline(int timeOffline)
          Sets the time offline after disconnection, in minutes.
 
Methods inherited from class org.apache.directory.api.ldap.codec.api.ExtendedResponseDecorator
computeLength, encode, getExtendedResponseLength, getResponseName, getResponseNameBytes, setExtendedResponseLength, setResponseName, setResponseNameBytes
 
Methods inherited from class org.apache.directory.api.ldap.codec.decorators.ResponseDecorator
getLdapResult, setLdapResult
 
Methods inherited from class org.apache.directory.api.ldap.codec.api.MessageDecorator
addAllControls, addControl, get, getCodecService, getControl, getControls, getControlsLength, getCurrentControl, getDecorated, getDecorator, getMessageId, getMessageLength, getType, hasControl, put, removeControl, setControlsLength, setMessageId, setMessageLength, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.directory.api.ldap.model.message.ExtendedResponse
getResponseName, setResponseName
 
Methods inherited from interface org.apache.directory.api.ldap.model.message.ResultResponse
getLdapResult
 
Methods inherited from interface org.apache.directory.api.ldap.model.message.Message
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId
 

Constructor Detail

GracefulDisconnectResponseDecorator

public GracefulDisconnectResponseDecorator(LdapApiService codec,
                                           GracefulDisconnectResponse decoratedMessage)
Creates a new instance of CancelResponseDecorator.

Parameters:
codec -
decoratedMessage -

GracefulDisconnectResponseDecorator

public GracefulDisconnectResponseDecorator(LdapApiService codec,
                                           byte[] responseValue)
                                    throws DecoderException
Creates a new instance of CancelResponseDecorator.

Parameters:
codec -
responseValue -
Throws:
DecoderException
Method Detail

getResponseValue

public byte[] getResponseValue()
Gets the response OID specific encoded response values.

Overrides:
getResponseValue in class ExtendedResponseDecorator<GracefulDisconnectResponse>
Returns:
the response specific encoded response values.

setResponseValue

public void setResponseValue(byte[] responseValue)
Sets the response OID specific encoded response values.

Overrides:
setResponseValue in class ExtendedResponseDecorator<GracefulDisconnectResponse>
Parameters:
responseValue - the response specific encoded response values.

getDelay

public int getDelay()
Gets the delay before disconnection, in seconds.

Specified by:
getDelay in interface GracefulDisconnectResponse
Returns:
the delay before disconnection

setDelay

public void setDelay(int delay)
Sets the delay befor disconnection, in seconds.

Specified by:
setDelay in interface GracefulDisconnectResponse
Parameters:
delay - the new delay before disconnection

getTimeOffline

public int getTimeOffline()
Gets the offline time after disconnection, in minutes.

Specified by:
getTimeOffline in interface GracefulDisconnectResponse
Returns:
the offline time after disconnection

setTimeOffline

public void setTimeOffline(int timeOffline)
Sets the time offline after disconnection, in minutes.

Specified by:
setTimeOffline in interface GracefulDisconnectResponse
Parameters:
timeOffline - the new time offline after disconnection

getReplicatedContexts

public Referral getReplicatedContexts()
Gets the replicated contexts.

Specified by:
getReplicatedContexts in interface GracefulDisconnectResponse
Returns:
the replicated contexts


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