public class AppInfo
extends Object
implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
LOCAL_HOST
default LOCAL HOST.
|
static String |
LOCAL_IP4
default LOCAL IP4.
|
static String |
LOCAL_IP6
default LOCAL IP6.
|
Constructor and Description |
---|
AppInfo()
Instantiates a new AppInfo.
|
Modifier and Type | Method and Description |
---|---|
String |
getAppHome()
Gets the app home folder.
|
String |
getAppRoot()
Gets the app root folder.
|
String |
getClientAddr()
Gets the client address.
|
String |
getClientHost()
Gets the client host name.
|
static String |
getEncodedFileName(String name)
Gets the encoded file name.
|
static String |
getEncodedName(String name)
Gets the encoded name.
|
String |
getUniqueId()
Gets the unique id.
|
String |
getUniqueName()
Gets the unique name.
|
static boolean |
isEncodedName(String value)
Checks if given name is encoded.
|
void |
setAppHome(String value)
Sets the app home folder.
|
void |
setAppRoot(String value)
Sets the app root folder.
|
void |
setClientAddr(String value)
Sets the client address.
|
void |
setClientHost(String value)
Sets the client host name.
|
void |
setUniqueId(String value)
Sets the unique id.
|
public static final String LOCAL_IP4
public static final String LOCAL_IP6
public static final String LOCAL_HOST
public static final String getEncodedFileName(String name)
name
- the namepublic static final String getEncodedName(String name)
name
- the namepublic static final boolean isEncodedName(String value)
value
- the valuepublic String getAppHome()
public String getAppRoot()
public String getClientAddr()
public String getClientHost()
public String getUniqueId()
public String getUniqueName()
getAppHome() + "/" + getUniqueName()
.public void setAppHome(String value)
value
- the new app home folderpublic void setAppRoot(String value)
value
- the new app rootpublic void setClientAddr(String value)
value
- the new client addresspublic void setClientHost(String value)
value
- the new client host namepublic void setUniqueId(String value)
value
- the new unique idCopyright © 2010-2020 Toolsverse. All Rights Reserved.