public class SubjectAreaDefinitionSample extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getServerName(String[] args)
This method gets the server name that the sample will use to issue calls to the server.
|
static String |
getUrl(String[] args)
This method gets the url that the sample will use to issue calls to the server.
|
static String |
getUserId(String[] args)
This method gets the userId that the sample will use to issue calls to the server.
|
static void |
main(String[] args)
The main program takes the URL root for the server.
|
public static void main(String[] args) throws IOException
args - URL root for the OMAG server platform; OMAG server name; userIdIOException - IO Exceptionpublic static String getUrl(String[] args) throws IOException
If arguments are supplied then the first parameter is used as a url.
If no url is supplied then prompt the user to enter a valid url, enter means to use the default url.
args - arguments suppliedIOException - IO exception occurred while getting input from the user.public static String getServerName(String[] args) throws IOException
If arguments are supplied then the second parameter is used as a server name.
If no name is supplied then prompt the user to enter a valid server name, enter means to use the default server name.
args - arguments suppliedIOException - IO exception occurred while getting input from the user.public static String getUserId(String[] args) throws IOException
If arguments are supplied then the third parameter is used as a userId.
If no userId is supplied then prompt the user to enter a valid userId, enter means to use the default userId.
args - arguments suppliedIOException - IO exception occurred while getting input from the user.Copyright © 2018–2019 ODPi. All rights reserved.