org.ogf.graap.wsag.server.rest
Class RestNegotiationRegistry
java.lang.Object
org.ogf.graap.wsag.server.rest.RestNegotiationRegistry
public class RestNegotiationRegistry
- extends Object
Helper class to store and lookup negotiation instances under an unique id. This class will be removed once
the registry negotiation capability is implemented in the WSAG4J engine.
- Author:
- owaeld
Method Summary |
static String |
add(Negotiation negotiation)
Adds a negotiation object to the registry and returns a unique id for this object. |
static Negotiation |
get(String id)
Retrieves the negotiation object stored with the provided key. if the key does not exist in the
registry this method returns null. |
static Negotiation |
remove(String id)
Removes the negotiation object with the given key from the registry and returns the removed object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
negotiations
protected static final Map<String,Negotiation> negotiations
RestNegotiationRegistry
public RestNegotiationRegistry()
add
public static String add(Negotiation negotiation)
- Adds a negotiation object to the registry and returns a unique id for this object.
- Parameters:
negotiation
- the negotiation to add
- Returns:
- the unique id
get
public static Negotiation get(String id)
- Retrieves the negotiation object stored with the provided key. if the key does not exist in the
registry this method returns null.
- Parameters:
id
- the negotiation id
- Returns:
- the referenced negotiation object
remove
public static Negotiation remove(String id)
- Removes the negotiation object with the given key from the registry and returns the removed object. If
no negotiation exists with the given key this method returns null.
- Parameters:
id
- the negotiation id
Copyright © 2008-2012. All Rights Reserved.