Package org.n52.iceland.service.operator
Class GenericServiceOperator
java.lang.Object
org.n52.iceland.service.operator.GenericServiceOperator
- All Implemented Interfaces:
ServiceOperator,Component<OwsServiceKey>,Keyed<OwsServiceKey>
Generic service operator implementation that just delegates to a matching
RequestOperator.- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetKey()Gets theServiceOperatorKeyfor this service.getKeys()inthashCode()receiveRequest(OwsServiceRequest request) method handles the incoming operation request and returns a matching response or an ServiceExceptionReport if the service was not able to build a responsevoidSets theRequestOperatorRepositoryto get matchingRequestOperators.toString()
-
Constructor Details
-
GenericServiceOperator
-
-
Method Details
-
getKey
Gets theServiceOperatorKeyfor this service.- Returns:
- the key
-
setRequestOperatorRepository
Sets theRequestOperatorRepositoryto get matchingRequestOperators.- Parameters:
repo- the repository
-
getKeys
- Specified by:
getKeysin interfaceKeyed<OwsServiceKey>
-
receiveRequest
method handles the incoming operation request and returns a matching response or an ServiceExceptionReport if the service was not able to build a response- Specified by:
receiveRequestin interfaceServiceOperator- Parameters:
request- the operation request- Returns:
- Returns the response of the request (e.g. CapabilitiesResponse
- Throws:
OperationNotSupportedException- if no matchingRequestOperatorcould be found or if the operator returned anull-response.OwsExceptionReport- If an error occurred or the requested operation is not supported
-
hashCode
public int hashCode() -
equals
-
toString
-