Cumulus4j API
(1.1.0)

org.cumulus4j.keymanager.front.shared
Class PutAppServerResponse

java.lang.Object
  extended by org.cumulus4j.keymanager.front.shared.PutAppServerResponse
All Implemented Interfaces:
Serializable

public class PutAppServerResponse
extends Object
implements Serializable

Response sent as confirmation when an AppServer was PUT into the key-server.

The AppServer's ID might be null when the ID should be assigned by the key-server (recommended), this response tells the client the app-server's ID (no matter, if the client already assigned it and thus already knows it or whether the server assigned it).

The server sends this object instead of a simple String to (1) make later extension easier (e.g. include additional meta-data like an expiry) and (2) to keep the API consistent. Furthermore it makes using the Jersey client API easier, as it can always expect an XML (or JSON) result, no matter if it was successful (appServerID returned as text/plain) or an exception occured (an Error is sent in XML (or JSON) form).

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

Constructor Summary
PutAppServerResponse()
           
PutAppServerResponse(String appServerID)
           
 
Method Summary
 String getAppServerID()
           
 void setAppServerID(String appServerID)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PutAppServerResponse

public PutAppServerResponse()

PutAppServerResponse

public PutAppServerResponse(String appServerID)
Method Detail

getAppServerID

public String getAppServerID()

setAppServerID

public void setAppServerID(String appServerID)

Cumulus4j API
(1.1.0)

Copyright © 2013 NightLabs Consulting GmbH. All Rights Reserved.