|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.gee.spectacle.webserver.ChannelManager
public class ChannelManager
Class ChannelManager provides a Java API to create and remove channels from an a12r publication server.
| Field Summary |
|---|
| Fields inherited from interface info.aduna.gee.publication.servlets.ApiConstants |
|---|
CREATE_EMAIL_KEY, CREATE_NAME_KEY, CREATE_PASSWORD_KEY, CREATE_TIMETOLIVE_KEY, MESSAGE_KEY, RESULT_KEY, RETURN_CODE_KEY |
| Fields inherited from interface info.aduna.gee.publication.net.FileNames |
|---|
ASA_FILE_NAME, BAK_FILE_NAME, CAT_FILE_NAME, CFG_FILE_NAME, CHS_FILE_NAME, DAT_FILE_NAME, HLP_FILE_NAME, LOCAL_FILE_PREFIX, SBS_FILE_NAME, SSS_FILE_NAME, WIF_FILE_NAME |
| Fields inherited from interface info.aduna.gee.publication.UserTypes |
|---|
API_BIT, COVER_BUILDER_BIT, ENGINE_BIT, GUEST_BITS, OWNER_BITS, PRO_BITS, PROUSER_BIT, SERVER_BIT, SHOP_BIT, SHOW_BIT, SHOW_BITS, VISITOR_BIT |
| Constructor Summary | |
|---|---|
ChannelManager()
|
|
| Method Summary | |
|---|---|
static Channel |
create(String server,
String name,
String password,
String email,
int timeToLive)
Create a new channel and login to it. |
static String |
getServer(String server)
|
static String |
getServerPath(String server)
|
static void |
remove(Channel channel)
Remove the specified channel. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChannelManager()
| Method Detail |
|---|
public static Channel create(String server,
String name,
String password,
String email,
int timeToLive)
throws ChannelException
server - The name of the server or the complete server path, e.g. "https://www.securehost.com:7565/"name - The name of the new channel, or null. If
unspecified, a new unique name will be
generated for the channel.password - The password to be used to authorize for the
channel, or null. If unspecified, a password
will be generated.email - The email address to which the password is sent,
or null.timeToLive - The maximum idle-time in seconds for the new
channel after which it is automatically
destroyed, or 0.
ChannelException - if a problem occurred during creation or
while logging in.Channel.login(),
Channel.getName(),
Channel.getPassword(),
remove(Channel)
public static void remove(Channel channel)
throws ChannelException
ChannelException - if a problem occurred while removing the
channelpublic static String getServerPath(String server)
server - either a server ("myhost") or already a serverPath ("https://www.mysecurehost.com:9898/")
public static String getServer(String server)
server - either a server ("myhost") or already a serverPath ("https://www.mysecurehost.com:9898/")
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||