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
Constructors Constructor Description GenericRequestOperator(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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.n52.svalbard.ConformanceClass
getConformanceClasses
-
Methods inherited from interface org.n52.iceland.request.operator.RequestOperator
isSupported
-
-
-
-
Constructor Detail
-
GenericRequestOperator
public GenericRequestOperator(String service, String version, String operation, Class<Q> requestType, ParameterValidator<Q> validator)
-
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 Detail
-
setOperationHandlerRepository
@Inject public void setOperationHandlerRepository(OperationHandlerRepository repo)
-
getOperationHandlerRepository
public OperationHandlerRepository getOperationHandlerRepository()
-
setRequestResponseModifierRepository
@Inject public void setRequestResponseModifierRepository(RequestResponseModifierRepository repo)
-
getRequestResponseModifierRepository
public RequestResponseModifierRepository getRequestResponseModifierRepository()
-
setServiceOperatorRepository
@Inject public void setServiceOperatorRepository(ServiceOperatorRepository repo)
-
getServiceOperatorRepository
public ServiceOperatorRepository getServiceOperatorRepository()
-
setEventBus
@Inject public void setEventBus(EventBus eventBus)
-
getEventBus
public EventBus 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
protected GenericOperationHandler<Q,A> getOperationHandler()
-
getOptionalOperationHandler
protected Optional<GenericOperationHandler<Q,A>> getOptionalOperationHandler()
-
getOptionalOperationHandler
protected Optional<GenericOperationHandler<Q,A>> getOptionalOperationHandler(String service, String operationName)
-
getOperationMetadata
public OwsOperation getOperationMetadata(String service, String version) throws OwsExceptionReport
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
protected String getOperationName()
-
getKeys
public Set<RequestOperatorKey> getKeys()
- Specified by:
getKeysin interfaceKeyed<Q extends OwsServiceRequest>
-
receive
protected A receive(Q request) throws OwsExceptionReport
- Throws:
OwsExceptionReport
-
-