Get the command string that will restore this screen.
@return The URL for this screen.
968353
public String getScreenURL()
    {
        String strURL = super.getScreenURL();
        if (this.getClass().getName().equals(GridScreen.class.getName()))
            strURL = this.addURLParam(strURL, DBParams.RECORD, this.getMainRecord().getClass().getName());
        else
            strURL = this.addURLParam(strURL, DBParams.SCREEN, this.getClass().getName());
        return strURL;
    }
1217798
public String getController() {
        final StringBuilder controller = new StringBuilder();
        if (getProtocol() != null) {
            controller.append(getProtocol()).append("://");
        }
        if (getHost() != null) {
            controller.append(getHost());
        } else {
            controller.append("localhost");
        }
        if (getPort() > 0) {
            controller.append(':').append(getPort());
        }
        return controller.toString();
    }
530631
public String[] getCommandLine() {
        String[] argsAry = argsString != null ? split(argsString) : EMPTY_ARRAY;
        List<String> argsList = new ArrayList<String>();

        int startIndex = 0;

        for (CommandOption opt : optionsList) {
            String argName = opt.getName();
            String argValueString = opt.getValue();

            argsList.add((argName.length() == 1 ? "-" : "--") + argName);

            if (argValueString != null) {
                argsList.add(quote(argValueString));
            }
        }

        String[] resAry = new String[argsAry.length + argsList.size()];

        for (String argString : argsList) {
            resAry[startIndex++] = argString;
        }

        // vsRes = new String[args.length + m_vArguments.size()];
        System.arraycopy(argsAry, 0, resAry, startIndex, argsAry.length);

        return resAry;
    }
828396
@Nullable
  private String[] getReplacementCmd(String cmd) {
    if (mCommandAlias == null || !mCommandAlias.containsKey(cmd)) {
      return null;
    }
    return mCommandAlias.get(cmd);
  }
1120653
public String getCurrentUrl() {
    Activity activity = serverInstrumentation.getCurrentActivity();
    if (activity == null) {
      return null;
    }
    return "and-activity://" + activity.getLocalClassName();
  }
822164
public alluxio.grpc.FileSystemCommand getCommand() {
    return command_ == null ? alluxio.grpc.FileSystemCommand.getDefaultInstance() : command_;
  }
1025523
public Object getFieldState()
    {
        if (this.getScreenField().getConverter() == null)
            return null;
        String string = this.getScreenField().getConverter().getString();
        if (string == null)
            string = Constants.BLANK;
        return string;
    }
1006176
public String getURL()
  {
    if (! isWindows())
      return escapeURL("file:" + getFullPath());

    String path = getFullPath();
    int length = path.length();
    CharBuffer cb = new CharBuffer();

    // #2725, server/1495
    cb.append("file:");

    char ch;
    int offset = 0;
    // For windows, convert /c: to c:
    if (length >= 3
        && path.charAt(0) == '/'
        && path.charAt(2) == ':'
        && ('a' <= (ch = path.charAt(1)) && ch <= 'z'
            || 'A' <= ch && ch <= 'Z')) {
      // offset = 1;
    }
    else if (length >= 3
             && path.charAt(0) == '/'
             && path.charAt(1) == ':'
             && path.charAt(2) == '/') {
      cb.append('/');
      cb.append('/');
      cb.append('/');
      cb.append('/');
      offset = 3;
    }

    for (; offset < length; offset++) {
      ch = path.charAt(offset);

      if (ch == '\\')
        cb.append('/');
      else
        cb.append(ch);
    }

    return escapeURL(cb.toString());

  }
1255104
private <T extends CommandType> T getCommand() {
        if (command == null) {
            if (getPayload() instanceof String) {
                this.command = (T) marshaller.unmarshal(new StringSource(getPayload(String.class)));
            }
        }

        return (T) command;
    }
95205
public String getHelpText() {
		@SuppressWarnings("unchecked")
		ArrayList<Argument> arguments = (ArrayList<Argument>) this.args.clone();
		String ret = programDescription + "\n";
		ret += "Usage: " + executableName + " ";
		for (Argument arg : this.args) {
			if (arg.isParam) {
				ret += !arg.isRequiredArg() 
						? "["
						: "";
				ret += arg.longOption;
				
				ret += !arg.isRequiredArg() 
						? "]"
						: "";
				ret += arg.isMultipleAllowed()
						? "..."
						: "";
				ret += " ";
				
				arguments.remove(arg);
			}
		}
		for (Argument arg : arguments) {
			if (arg.isRequiredArg()) {
				ret += !arg.isRequiredArg() 
						? "["
						: "";
				ret += arg.getLongOption() == null ? "-" + arg.getOption()
						: "--" + arg.getLongOption();
				
				ret += !arg.isRequiredArg() 
						? "]"
						: "";
				ret += arg.isMultipleAllowed()
						? "..."
						: "";
				ret += " ";
			}
		}
		ret += "[OPTION]";
		ret += arguments.size() > 1
				? "... "
				: " ";
		ret += "\n" + usageHint + "\n";
		ArrayList<String> col1 = new ArrayList<String>();
		ArrayList<String> col2 = new ArrayList<String>();
		for (Argument option : arguments) {
			String line = option.getOption() != null ? String.format("  %-5s",
					"-" + option.option
							+ (option.getLongOption() != null ? "," : ""))
					: String.format("  %-5s", "");
			line += option.getLongOption() != null ? "--"
					+ option.longOption
					+ (option.getValueHint().length() > 0
							&& option.takesValue() ? "="
							+ option.getValueHint() : "") : "";
			col1.add(line);
			col2.add(option.helpText);
		}
		ret += theColumnator((String[]) col1.toArray(new String[] {}),
				(String[]) col2.toArray(new String[] {}), 2, 80);
		return ret;
	}
1167894
private String getDisplayString() {

        return Messages.get().key(
            Messages.GUI_LOCATION_DISPLAY_3,
            m_editValue.getAddress(),
            m_editValue.getLatitudeString(),
            m_editValue.getLongitudeString());
    }
667078
public String getScreenURL()
    {
        String strURL = super.getScreenURL();
        String strTypeParam = HEADER_RECORD;
        String strType = this.getHeaderRecord().getTableNames(false);
        strURL = this.addURLParam(strURL, strTypeParam, strType);
        return strURL;
    }
1042165
protected String getContainerUrl() {
    String containerUrl = System.getProperty(CONTAINER_URL);
    if (containerUrl == null) {
      // fallback to look for a thread local variable. Only useful for testing
      // of JicUNit itself
      containerUrl = ContainerUrlHolder.get();
    }
    return containerUrl;
  }
1195569
public String url() {
        try {
            return driver.getCurrentUrl();
        } catch (Exception e) {
            log.warn(e);
            return null;
        }
    }
266327
public String getHtmlFieldParam()
    {
        String strFieldName = this.getScreenField().getSFieldParam(null, false);

        if (this.getScreenField().getParentScreen() instanceof GridScreen)
        { // These are command buttons such as "Form" or "Detail"
            GridScreen gridScreen = (GridScreen)this.getScreenField().getParentScreen();
            Record record = gridScreen.getMainRecord();
            try {
                Object objBookmark = record.getHandle(DBConstants.OBJECT_ID_HANDLE);
                if (objBookmark == null)
                    objBookmark = record.getHandle(DBConstants.BOOKMARK_HANDLE);
                if (objBookmark != null)
                    strFieldName = strFieldName + '@' + objBookmark.toString();
            } catch (DBException ex)    {
                ex.printStackTrace();
            }
        }

        try {
            strFieldName = URLEncoder.encode(strFieldName, DBConstants.URL_ENCODING);
        } catch (java.io.UnsupportedEncodingException ex) {
            ex.printStackTrace();
        }
        return strFieldName;
    }
230502
private URL getUrl() {
        ClassLoader loader = null;
        try {
            loader = Thread.currentThread().getContextClassLoader();
        } catch (Exception e) {
            // do nothing
        }

        if (loader == null) {
            loader = ClassPathResource.class.getClassLoader();
        }

        URL url = loader.getResource(this.resourceName);
        if (url == null) {
            // try to check for mis-used starting slash
            // TODO: see TODO below
            if (this.resourceName.startsWith("/")) {
                url = loader.getResource(this.resourceName.replaceFirst("[\\\\/]", ""));
                if (url != null)
                    return url;
            } else {
                // try to add slash, to make clear it's not an issue
                // TODO: change this mechanic to actual path purifier
                url = loader.getResource("/" + this.resourceName);
                if (url != null)
                    return url;
            }
            throw new IllegalStateException("Resource '" + this.resourceName + "' cannot be found.");
        }
        return url;
    }
1118269
@Column(header = Messages.GUI_HISTORY_DIALOG_COL_PATH_0, order = 40, expandRatio = 1.0f, view = "wide")
    public String getPath() {

        String rootPath = m_bean.getRootPath();
        CmsObject cms = A_CmsUI.getCmsObject();
        String result = cms.getRequestContext().removeSiteRoot(rootPath);
        return result;
    }