获取 AppName
@return
493659
protected String getAppName() {
		String appName = this.getProperty("app.name", "");
		if (StrKit.isBlank(appName)) {
			throw new IllegalArgumentException("Please Set Your App Name in Your cfg file");
		}
		return appName;
	}
1244436
public String getName() {
    APITrace.CallEvent ce;
    String rv;
    ce = new APITrace.CallEvent();

    rv = super.getName();

    ce.logCall(APITrace.CALL_getName,
               rv,
               null);
    return rv;
  }
1346973
public static ObjectName getAppJawrConfigMBeanObjectName(ServletContext servletContext, String mBeanPrefix) {

		return getMBeanObjectName(getContextPath(servletContext), JAWR_APP_CONFIG_MANAGER_TYPE, mBeanPrefix, null);
	}
1359898
def _get_app(self, appname):
        
        try:
            app = APPS.get_app_config(appname)
        except Exception as e:
            self.err(e)
            return
        return app
555436
protected String lookupEeApplicationName() {

    try {
      InitialContext initialContext = new InitialContext();

      String appName = (String) initialContext.lookup(JAVA_APP_APP_NAME_PATH);
      String moduleName = (String) initialContext.lookup(MODULE_NAME_PATH);

      // make sure that if an EAR carries multiple PAs, they are correctly
      // identified by appName + moduleName
      if (moduleName != null && !moduleName.equals(appName)) {
        return appName + "/" + moduleName;
      } else {
        return appName;
      }
    }
    catch (NamingException e) {
      throw LOG.ejbPaCannotAutodetectName(e);
    }
  }
450780
public String getAppNameAndID() {
        StringBuffer sb = new StringBuffer(" AppName=");
        sb.append(_appName);
        sb.append("; Id=").append(_sessionId);
        return sb.toString();
    }
37810
public GetAppResponse queryApp(String app) {
        GetAppRequest request = new GetAppRequest();
        request.setApp(app);
        return queryApp(request);
    }
1355627
@Override
    public String getName() {
        String name;
        if (getSoftwareSystem() != null) {
            name = getSoftwareSystem().getName() + " - Deployment";
        } else {
            name = "Deployment";
        }

        if (!StringUtils.isNullOrEmpty(getEnvironment())) {
            name = name + " - " + getEnvironment();
        }

        return name;
    }
1196847
@Override
	public String getName()
	{
		StringBuilder result = new StringBuilder();
		String prefix = "";

		for (IPOContext ctxt : this)
		{
			String name = ctxt.getName();

			if (name.length() > 0)
			{
				result.append(prefix);
				result.append(name);
				prefix = ", ";
			}
		}

		return result.toString();
	}
257253
public static String getTableNameForAppid(String appIdentifier) {
		if (StringUtils.isBlank(appIdentifier)) {
			return null;
		} else {
			if (isSharedAppid(appIdentifier)) {
				// app is sharing a table with other apps
				appIdentifier = SHARED_TABLE;
			}
			return (App.isRoot(appIdentifier) || appIdentifier.startsWith(Config.PARA.concat("-"))) ?
					appIdentifier : Config.PARA + "-" + appIdentifier;
		}
	}
838187
public static function GetAppPath () {
		$called_class = static::class;
		$offset = strpos($called_class, "\\") + 1;
		$offset = strpos($called_class, "\\", $offset) + 1;
		$offset = strpos($called_class, "\\", $offset) + 1;
		return str_replace("\\", '/', substr($called_class, 0, strpos($called_class, "\\", $offset)));
	}
865737
public String getName() {
        if (null == this.name && null != this.byteArray) {
            try {
                this.name = new String(this.byteArray, HeaderStorage.ENGLISH_CHARSET);
            } catch (UnsupportedEncodingException uee) {
                // no FFDC required
                // Invalid key name
                throw new IllegalArgumentException("Unsupported non-English name: " + new String(this.byteArray));
            }
        }
        return this.name;
    }
408109
public String getAppServerName()
    {
        String strServer = this.getProperty(Params.REMOTE_HOST);
        if ((strServer == null) || (strServer.length() == 0))
        {
            URL urlCodeBase = this.getCodeBase();
            if (urlCodeBase != null)
            {
                strServer = urlCodeBase.getHost();
                int port = urlCodeBase.getPort();
                if ((port != -1) && (port != 80))
                    if (!strServer.contains(":"))
                        strServer = strServer + ':' + port;
            }
        }
        return strServer;
    }
37899
private synchronized AppModuleName addAppModuleNames(String appName, String moduleAndAppName) {
        HashSet<String> moduleNames = null;
        String moduleName = moduleAndAppName.split("#")[1];
        if (appModules.containsKey(appName)) {
            moduleNames = (HashSet<String>) appModules.get(appName);
            moduleNames.add(moduleName);
        } else {
            moduleNames = new HashSet<String>();
            moduleNames.add(moduleName);
            appModules.put(appName, moduleNames);
        }

        if (tc.isDebugEnabled())
            Tr.debug(tc, "addAppModuleNames(): modules added = " + appModules.toString() + " for app: " + appName);

        AppModuleName retVal = new AppModuleName();
        retVal.appName = appName;
        retVal.moduleName = moduleName;
        return retVal;
    }
149285
protected static String getApplicationName(Context ctx) {
        try {
            ApplicationInfo applicationInfo = ctx.getApplicationInfo();
            int stringId = applicationInfo.labelRes;
            if (stringId == 0) {
                if (applicationInfo.nonLocalizedLabel != null) {
                    return applicationInfo.nonLocalizedLabel.toString();
                }
            } else {
                return ctx.getString(stringId);
            }
        } catch (Exception e) {
            Log.e(TAG, "Error getting application name.", e);
        }

        return null;
    }
909869
public byte[] getApplicationData() {
        return this.applicationData == null || this.applicationData.length == 0
                ? null
                : Arrays.copyOf(this.applicationData, this.applicationData.length);
    }
380471
def get_app_names(self):
        
        app_names = set()
        for name in self.apps:
            app_names.add(name)

        return app_names