Package org.n52.iceland.request.operator
Class RequestOperatorKey
- java.lang.Object
-
- org.n52.iceland.request.operator.RequestOperatorKey
-
- All Implemented Interfaces:
Comparable<RequestOperatorKey>,DefaultActive
public class RequestOperatorKey extends Object implements Comparable<RequestOperatorKey>, DefaultActive
Key to identify aRequestOperator. TheRequestOperatorKeyconsists of service, version and operation name.- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description RequestOperatorKey(String service, String version, Enum<?> operationName)Create a newRequestOperatorKey.RequestOperatorKey(String service, String version, Enum<?> operationName, boolean defaultActive)Create a newRequestOperatorKey.RequestOperatorKey(String service, String version, String operationName)Create a newRequestOperatorKey.RequestOperatorKey(String service, String version, String operationName, boolean defaultActive)Create a newRequestOperatorKey.RequestOperatorKey(OwsServiceKey sok, Enum<?> operationName)Create a newRequestOperatorKey.RequestOperatorKey(OwsServiceKey sok, Enum<?> operationName, boolean defaultActive)Create a newRequestOperatorKey.RequestOperatorKey(OwsServiceKey sok, String operationName)Create a newRequestOperatorKey.RequestOperatorKey(OwsServiceKey sok, String operationName, boolean defaultActive)Create a newRequestOperatorKey.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(RequestOperatorKey o)booleanequals(Object obj)StringgetOperationName()StringgetService()OwsServiceKeygetServiceOperatorKey()StringgetVersion()inthashCode()booleanisDefaultActive()StringtoString()
-
-
-
Constructor Detail
-
RequestOperatorKey
public RequestOperatorKey(OwsServiceKey sok, String operationName)
Create a newRequestOperatorKey.- Parameters:
sok- the service operator keyoperationName- the operation name
-
RequestOperatorKey
public RequestOperatorKey(OwsServiceKey sok, String operationName, boolean defaultActive)
Create a newRequestOperatorKey.- Parameters:
sok- the service keyoperationName- the operation namedefaultActive- if this operation should be active by default
-
RequestOperatorKey
public RequestOperatorKey(String service, String version, String operationName)
Create a newRequestOperatorKey.- Parameters:
service- the serviceversion- the versionoperationName- the operation name
-
RequestOperatorKey
public RequestOperatorKey(String service, String version, String operationName, boolean defaultActive)
Create a newRequestOperatorKey.- Parameters:
service- the serviceversion- the versionoperationName- the operation namedefaultActive- if this operation should be active by default
-
RequestOperatorKey
public RequestOperatorKey(OwsServiceKey sok, Enum<?> operationName)
Create a newRequestOperatorKey.- Parameters:
sok- the service keyoperationName- the operation name
-
RequestOperatorKey
public RequestOperatorKey(OwsServiceKey sok, Enum<?> operationName, boolean defaultActive)
Create a newRequestOperatorKey.- Parameters:
sok- the service keyoperationName- the operation namedefaultActive- if this operation should be active by default
-
RequestOperatorKey
public RequestOperatorKey(String service, String version, Enum<?> operationName)
Create a newRequestOperatorKey.- Parameters:
service- the serviceversion- the versionoperationName- the operation name
-
RequestOperatorKey
public RequestOperatorKey(String service, String version, Enum<?> operationName, boolean defaultActive)
Create a newRequestOperatorKey.- Parameters:
service- the serviceversion- the versionoperationName- the operation namedefaultActive- if this operation should be active by default
-
-
Method Detail
-
getServiceOperatorKey
public OwsServiceKey getServiceOperatorKey()
- Returns:
- the
OwsServiceKey
-
getService
public String getService()
- Returns:
- The service name
-
getVersion
public String getVersion()
- Returns:
- The service version
-
getOperationName
public String getOperationName()
- Returns:
- The operation name
-
isDefaultActive
public boolean isDefaultActive()
- Specified by:
isDefaultActivein interfaceDefaultActive- Returns:
true, if this operation should be active by default
-
compareTo
public int compareTo(RequestOperatorKey o)
- Specified by:
compareToin interfaceComparable<RequestOperatorKey>
-
-