Пример #1
0
  public String getParameter(String input) {

    // <Begin_getParameter_String>
    String value = null;
    if (applet != null) {
      value = applet.getParameter(input);
    } else {
      value = (String) com.adventnet.apiutils.Utility.getParameter(input);
    }
    if (value == null) {
      if (input.equals("MS_MODE")) value = "3";
      if (input.equals("RESOURCE_PROPERTIES")) value = "SecurityAdministrationResources";
    }
    return value;

    // <End_getParameter_String>
  }
Пример #2
0
  public String getParameter(String input) {

    // <Begin_getParameter_String>
    String value = null;
    if (applet != null) {
      value = applet.getParameter(input);
    } else {
      value = (String) com.adventnet.apiutils.Utility.getParameter(input);
    }
    if (value == null) {
      if (input.equals("HOST")) value = "localhost"; // No Internationalisation
      if (input.equals("PORT")) value = "161"; // No Internationalisation
    }
    return value;

    // <End_getParameter_String>
  }