|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.ucm.look.data.remote.ConfigNet
public class ConfigNet
To configure the data remote service. Need a URL for connect the server and another one to download the binaries files.
Method Summary | |
---|---|
java.lang.String |
getFilesURL(java.lang.String suburl)
Retrieve the URL of an element from Files |
static ConfigNet |
getInstance()
Get an unique instance, Singleton class. |
java.lang.String |
getURL(java.lang.String suburl)
Retrieve the URL of an element from Server |
boolean |
isConnected()
Returns if it exists a server for the app |
void |
setFilesURL(java.lang.String URL)
To change the URL files directory. |
static void |
setNetConfiguration(java.lang.String serverUrl,
java.lang.String filesURL)
Sets the server configuration |
void |
setServerURL(java.lang.String URL)
To change the server url. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.lang.String getFilesURL(java.lang.String suburl)
suburl
- Suburl to know the main URL
public static ConfigNet getInstance()
public java.lang.String getURL(java.lang.String suburl)
suburl
- Suburl to know the main URL
public boolean isConnected()
public void setFilesURL(java.lang.String URL)
URL
- New URLpublic static void setNetConfiguration(java.lang.String serverUrl, java.lang.String filesURL)
serverUrl
- server urlfilesURL
- url where files will be downloadedpublic void setServerURL(java.lang.String URL)
URL
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |