org.cumulus4j.keymanager.front.shared
Class PutAppServerResponse
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PutAppServerResponse
public PutAppServerResponse()
PutAppServerResponse
public PutAppServerResponse(String appServerID)
getAppServerID
public String getAppServerID()
setAppServerID
public void setAppServerID(String appServerID)
Copyright © 2013 NightLabs Consulting GmbH. All Rights Reserved.