org.n52.connectors.core
Class ConnectorRequest
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<java.lang.String,java.lang.Object>
org.n52.connectors.core.ConnectorRequest
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.Object>
public class ConnectorRequest
- extends java.util.HashMap<java.lang.String,java.lang.Object>
In the connector request a user formulates which functionality he wants from
the service provider. This can be as simple as requesting a direct name of
defined functionality to starting a discovery process to find certain
functionality in the offered connectors (e.g. via keywords)
- Author:
- martin schouwenburg
- See Also:
- Serialized Form
Method Summary |
java.lang.Object |
get(java.lang.String parameterId)
Returns the value that is indicated by parameterId |
java.lang.Object |
put(java.lang.String parameterId,
java.lang.Object value)
Gives a certain parameter a certain value. |
Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
equals, hashCode |
ConnectorRequest
public ConnectorRequest()
put
public java.lang.Object put(java.lang.String parameterId,
java.lang.Object value)
- Gives a certain parameter a certain value. Predefined parametersId's are
service : The name of the service you want to access connector : The
specific implementation of a connector. optional; it normally chooses a
predfined default resource : defines a data source; can be local or on
the web
- Specified by:
put
in interface java.util.Map<java.lang.String,java.lang.Object>
- Overrides:
put
in class java.util.HashMap<java.lang.String,java.lang.Object>
- Parameters:
parameterId
- the name of the parametervalue
- the value of the parameter
get
public java.lang.Object get(java.lang.String parameterId)
throws ParameterDoesNotExist
- Returns the value that is indicated by parameterId
- Parameters:
parameterId
-
- Returns:
- specific value as string
- Throws:
ParameterDoesNotExist
- if a parameter is asked that does not exist