org.jdiameter.server.impl.agent
Class RedirectAgentImpl

java.lang.Object
  extended by org.jdiameter.server.impl.agent.AgentImpl
      extended by org.jdiameter.server.impl.agent.RedirectAgentImpl
All Implemented Interfaces:
EventListener<Request,Answer>, IAgent, IRedirect

public class RedirectAgentImpl
extends AgentImpl
implements IRedirect

Author:
Bartosz Baranowski , Alexandre Mendonca

Field Summary
static int RESULT_INVALID_AVP_VALUE
           
static int RESULT_REDIRECT_INDICATION
           
 
Fields inherited from class org.jdiameter.server.impl.agent.AgentImpl
container, realmTable
 
Fields inherited from interface org.jdiameter.server.api.agent.IRedirect
RHU_ALL_APPLICATION, RHU_ALL_HOST, RHU_ALL_REALM, RHU_ALL_SESSION, RHU_ALL_USER, RHU_DONT_CACHE, RHU_PROPERTY, RHU_REALM_AND_APPLICATION
 
Constructor Summary
RedirectAgentImpl(IContainer container, IRealmTable realmTable)
           
 
Method Summary
 Answer processRequest(IRequest request, IRealm matchedRealm)
          This method use for process new network requests.
 void receivedSuccessMessage(Request request, Answer answer)
           
 void timeoutExpired(Request request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESULT_REDIRECT_INDICATION

public static final int RESULT_REDIRECT_INDICATION
See Also:
Constant Field Values

RESULT_INVALID_AVP_VALUE

public static final int RESULT_INVALID_AVP_VALUE
See Also:
Constant Field Values
Constructor Detail

RedirectAgentImpl

public RedirectAgentImpl(IContainer container,
                         IRealmTable realmTable)
Parameters:
container -
peerTable -
realmTable -
Method Detail

processRequest

public Answer processRequest(IRequest request,
                             IRealm matchedRealm)
Description copied from interface: IAgent
This method use for process new network requests.

Specified by:
processRequest in interface IAgent
Parameters:
request - request message
Returns:
answer immediate answer messsage. Method may return null and an Answer will be sent later on

receivedSuccessMessage

public void receivedSuccessMessage(Request request,
                                   Answer answer)
Specified by:
receivedSuccessMessage in interface EventListener<Request,Answer>

timeoutExpired

public void timeoutExpired(Request request)
Specified by:
timeoutExpired in interface EventListener<Request,Answer>


Copyright © 2014. All Rights Reserved.