Package org.n52.iceland.request.operator
Class GenericRequestOperator<Q extends OwsServiceRequest,A extends OwsServiceResponse>
java.lang.Object
org.n52.iceland.request.operator.GenericRequestOperator<Q,A>
- All Implemented Interfaces:
RequestOperator,Component<RequestOperatorKey>,Keyed<RequestOperatorKey>,ConformanceClass
public class GenericRequestOperator<Q extends OwsServiceRequest,A extends OwsServiceResponse>
extends Object
implements RequestOperator
-
Constructor Summary
ConstructorsConstructorDescriptionGenericRequestOperator(String service, String version, String operation, Class<Q> requestType, ParameterValidator<Q> validator) GenericRequestOperator(OwsOperationKey operation, boolean defaultActive, Class<Q> requestType, ParameterValidator<Q> validator) GenericRequestOperator(OwsOperationKey operation, Class<Q> requestType, ParameterValidator<Q> validator) -
Method Summary
Modifier and TypeMethodDescriptiongetKeys()protected GenericOperationHandler<Q, A> getOperationMetadata(String service, String version) GetOwsOperationmetadata for service and versionprotected Stringprotected Optional<GenericOperationHandler<Q, A>> protected Optional<GenericOperationHandler<Q, A>> getOptionalOperationHandler(String service, String operationName) protected AreceiveRequest(OwsServiceRequest abstractRequest) Receives and processes the incomingOwsServiceRequestand returns aOwsServiceResponsevoidsetEventBus(EventBus eventBus) voidvoidvoidtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.n52.svalbard.ConformanceClass
getConformanceClassesMethods inherited from interface org.n52.iceland.request.operator.RequestOperator
isSupported
-
Constructor Details
-
GenericRequestOperator
-
GenericRequestOperator
public GenericRequestOperator(OwsOperationKey operation, Class<Q> requestType, ParameterValidator<Q> validator) -
GenericRequestOperator
public GenericRequestOperator(OwsOperationKey operation, boolean defaultActive, Class<Q> requestType, ParameterValidator<Q> validator)
-
-
Method Details
-
setOperationHandlerRepository
-
getOperationHandlerRepository
-
setRequestResponseModifierRepository
-
getRequestResponseModifierRepository
-
setServiceOperatorRepository
-
getServiceOperatorRepository
-
setEventBus
-
getEventBus
-
receiveRequest
public OwsServiceResponse receiveRequest(OwsServiceRequest abstractRequest) throws OwsExceptionReport Description copied from interface:RequestOperatorReceives and processes the incomingOwsServiceRequestand returns aOwsServiceResponse- Specified by:
receiveRequestin interfaceRequestOperator- Parameters:
abstractRequest- The incomingOwsServiceRequest- Returns:
OwsServiceResponseof theOwsServiceRequest- Throws:
OwsExceptionReport- If an error occurs during the processing of theOwsServiceRequest
-
getOperationHandler
-
getOptionalOperationHandler
-
getOptionalOperationHandler
-
getOperationMetadata
Description copied from interface:RequestOperatorGetOwsOperationmetadata for service and version- Specified by:
getOperationMetadatain interfaceRequestOperator- Parameters:
service- The service to get metadata forversion- The service version to get metadata for- Returns:
OwsOperationmetadata for service and version- Throws:
OwsExceptionReport- If an error occurs during the generation ofOwsOperation
-
getOperationName
-
getKeys
- Specified by:
getKeysin interfaceKeyed<Q extends OwsServiceRequest>
-
receive
- Throws:
OwsExceptionReport
-
toString
-