Cumulus4j API
(1.2.0)

org.cumulus4j.keymanager.front.webapp
Class AppServerService

java.lang.Object
  extended by org.cumulus4j.keymanager.front.webapp.AbstractService
      extended by org.cumulus4j.keymanager.front.webapp.AppServerService

public class AppServerService
extends AbstractService

REST service to manage AppServers.

Author:
Marco หงุ่ยตระกูล-Schulze - marco at nightlabs dot de

Field Summary
 
Fields inherited from class org.cumulus4j.keymanager.front.webapp.AbstractService
keyStoreManager, request
 
Constructor Summary
AppServerService()
          Create an instance.
 
Method Summary
 void deleteAppServer(String keyStoreID, String appServerID)
          Delete the AppServer.
 AppServer getAppServer(String keyStoreID, String appServerID)
          Get an AppServer.
 AppServerList getAppServers(String keyStoreID)
          Get a list of all AppServers managed by this key-server for the specified key-store.
 PutAppServerResponse postAppServer(String keyStoreID, AppServer appServer)
          Compatibility for clients not supporting PUT.
 PutAppServerResponse putAppServer(String keyStoreID, AppServer appServer)
          Put an AppServer.
 
Methods inherited from class org.cumulus4j.keymanager.front.webapp.AbstractService
authenticate, getAuth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppServerService

public AppServerService()
Create an instance.

Method Detail

getAppServer

public AppServer getAppServer(String keyStoreID,
                              String appServerID)
Get an AppServer.

Parameters:
keyStoreID - identifier of the key-store to work with.
appServerID - identifier of app-server to retrieve.
Returns:
the AppServer or null, if no matching AppServer exists.

getAppServers

public AppServerList getAppServers(String keyStoreID)
Get a list of all AppServers managed by this key-server for the specified key-store.

Parameters:
keyStoreID - identifier of the key-store to work with.
Returns:
a list of all AppServers for the specified key-store. Never null, but it may be an empty list.

postAppServer

public PutAppServerResponse postAppServer(String keyStoreID,
                                          AppServer appServer)
Compatibility for clients not supporting PUT. This method does the same as (it delegates to) putAppServer(String, org.cumulus4j.keymanager.front.shared.AppServer). Ajax-Clients (e.g. jQuery in Firefox) seem not to support PUT.


putAppServer

public PutAppServerResponse putAppServer(String keyStoreID,
                                         AppServer appServer)
Put an AppServer.

Parameters:
keyStoreID - identifier of the key-store to work with.
appServer - the AppServer to be put. Note, that its appServerID is ignored! It will be assigned by this method.
Returns:
data that might have been created/changed during the put operation (e.g. the appServerID is assigned during this method call).

deleteAppServer

public void deleteAppServer(String keyStoreID,
                            String appServerID)
Delete the AppServer.

Parameters:
keyStoreID - identifier of the key-store to work with.
appServerID - identifier of app-server to delete.

Cumulus4j API
(1.2.0)

Copyright © 2013 NightLabs Consulting GmbH. All Rights Reserved.