Package org.cipango.diameter.util

Source Code of org.cipango.diameter.util.CommandUtil

package org.cipango.diameter.util;

import org.cipango.diameter.DiameterCommand;
import org.cipango.diameter.Dictionary;
import org.cipango.diameter.Factory;

public class CommandUtil
{
  public static DiameterCommand getAnswer(DiameterCommand request)
  {
    assert request.isRequest();
   
    DiameterCommand answer = Dictionary.getInstance().getAnswer(request.getCode());
    if (answer == null)
      answer = Factory.newAnswer(request.getCode(), "Unknown-Answer");
    return answer;
  }
}
TOP

Related Classes of org.cipango.diameter.util.CommandUtil

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.