D
- the OperationDAO of this operatorQ
- the request typeA
- the response typepublic abstract class AbstractRequestOperator<D extends OperationDAO,Q extends AbstractServiceRequest<?>,A extends AbstractServiceResponse> extends Object implements RequestOperator
Modifier and Type | Field and Description |
---|---|
private D |
dao |
private static org.slf4j.Logger |
LOGGER |
private String |
operationName |
private RequestOperatorKey |
requestOperatorKeyType |
private Class<Q> |
requestType |
private static Set<String> |
validTemporalFilterValueReferences |
Constructor and Description |
---|
AbstractRequestOperator(String service,
String version,
String operationName,
boolean defaultActive,
Class<Q> requestType) |
AbstractRequestOperator(String service,
String version,
String operationName,
Class<Q> requestType) |
Modifier and Type | Method and Description |
---|---|
protected List<String> |
addChildFeatures(Collection<String> features) |
protected List<String> |
addChildProcedures(Collection<String> procedures) |
protected List<String> |
checkAcceptedVersionsParameter(String service,
List<String> versions)
method checks whether this SOS supports the requested versions
|
protected void |
checkAcceptedVersionsParameter(String service,
String versionsString)
method checks, whether the passed string containing the requested
versions of the SOS contains the versions, the 52n SOS supports
|
protected void |
checkFeatureOfInterestIdentifier(String featureOfInterest,
String parameterName) |
protected void |
checkFeatureOfInterestIdentifiers(List<String> featuresOfInterest,
String parameterName) |
private boolean |
checkFeatureValueReference(String valueReference) |
private void |
checkForModifierAndProcess(AbstractServiceRequest<?> request) |
private AbstractServiceResponse |
checkForModifierAndProcess(AbstractServiceRequest<?> request,
AbstractServiceResponse response) |
protected void |
checkObservationID(String observationID,
String parameterName) |
protected void |
checkObservationIDs(Collection<String> observationIDs,
String parameterName) |
protected void |
checkObservationType(String observationType,
String parameterName) |
protected void |
checkObservedProperties(List<String> observedProperties,
String parameterName) |
protected void |
checkObservedProperty(String observedProperty,
Enum<?> parameterName) |
protected void |
checkObservedProperty(String observedProperty,
String parameterName) |
protected void |
checkOffering(String offering,
Enum<?> parameterName) |
protected void |
checkOffering(String offering,
String parameterName) |
protected void |
checkOfferings(Collection<String> offerings,
Enum<?> parameterName) |
protected void |
checkOfferings(Collection<String> offerings,
String parameterName) |
protected boolean |
checkOnlyRequestableProcedureDescriptionFromats(String format,
Enum<?> parameter) |
protected abstract void |
checkParameters(Q request) |
protected void |
checkProcedureID(String procedureID,
String parameterName)
checks whether the requested sensor ID is valid
|
protected void |
checkProcedureIDs(Collection<String> procedureIDs,
String parameterName) |
protected void |
checkResultTemplate(String resultTemplate,
String parameterName) |
protected void |
checkServiceParameter(String service)
checks whether the required service parameter is correct
|
protected void |
checkSingleVersionParameter(AbstractServiceRequest<?> request)
method checks whether this SOS supports the single requested version
|
protected void |
checkSpatialFilter(SpatialFilter spatialFilter,
Enum<?> name) |
protected void |
checkSpatialFilter(SpatialFilter spatialFilter,
String name) |
private boolean |
checkSpatialFilteringProfileValueReference(String valueReference) |
protected void |
checkSpatialFilters(List<SpatialFilter> spatialFilters,
String name) |
protected void |
checkTemporalFilter(List<TemporalFilter> temporalFilters,
Enum<?> name) |
protected void |
checkTemporalFilter(List<TemporalFilter> temporalFilters,
String name) |
protected void |
checkTemporalFilter(TemporalFilter temporalFilter) |
protected Profile |
getActiveProfile() |
protected ContentCache |
getCache() |
protected D |
getDao() |
OwsOperation |
getOperationMetadata(String service,
String version) |
protected String |
getOperationName() |
RequestOperatorKey |
getRequestOperatorKeyType() |
protected boolean |
hasLanguageExtension(SwesExtensions extensions) |
protected D |
initDAO(String service,
String operationName) |
protected abstract A |
receive(Q request) |
AbstractServiceResponse |
receiveRequest(AbstractServiceRequest<?> abstractRequest) |
protected void |
setObservationResponseResponseFormatAndContentType(AbstractObservationRequest obsRequest,
AbstractObservationResponse obsResponse) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConformanceClasses
private static final org.slf4j.Logger LOGGER
private static final Set<String> validTemporalFilterValueReferences
private final D extends OperationDAO dao
private final String operationName
private final RequestOperatorKey requestOperatorKeyType
private final Class<Q extends AbstractServiceRequest<?>> requestType
public AbstractRequestOperator(String service, String version, String operationName, Class<Q> requestType)
protected D getDao()
public OwsOperation getOperationMetadata(String service, String version) throws OwsExceptionReport
getOperationMetadata
in interface RequestOperator
OwsExceptionReport
protected String getOperationName()
public RequestOperatorKey getRequestOperatorKeyType()
getRequestOperatorKeyType
in interface RequestOperator
public AbstractServiceResponse receiveRequest(AbstractServiceRequest<?> abstractRequest) throws OwsExceptionReport
receiveRequest
in interface RequestOperator
OwsExceptionReport
private void checkForModifierAndProcess(AbstractServiceRequest<?> request) throws OwsExceptionReport
OwsExceptionReport
private AbstractServiceResponse checkForModifierAndProcess(AbstractServiceRequest<?> request, AbstractServiceResponse response) throws OwsExceptionReport
OwsExceptionReport
protected abstract A receive(Q request) throws OwsExceptionReport
OwsExceptionReport
protected abstract void checkParameters(Q request) throws OwsExceptionReport
OwsExceptionReport
protected ContentCache getCache()
protected Profile getActiveProfile()
protected List<String> checkAcceptedVersionsParameter(String service, List<String> versions) throws OwsExceptionReport
service
- requested serviceversions
- the requested versions of the SOSOwsExceptionReport
- * if this SOS does not support the requested versionsprotected void checkSingleVersionParameter(AbstractServiceRequest<?> request) throws OwsExceptionReport
request
- the requestOwsExceptionReport
- * if this SOS does not support the requested versionsprotected void checkAcceptedVersionsParameter(String service, String versionsString) throws OwsExceptionReport
service
- requested serviceversionsString
- comma seperated list of requested service versionsOwsExceptionReport
- * if the versions list is empty or no matching version is *
containedprotected void checkServiceParameter(String service) throws OwsExceptionReport
service
- service parameter of the requestOwsExceptionReport
- if service parameter is incorrectprotected void checkProcedureID(String procedureID, String parameterName) throws OwsExceptionReport
procedureID
- the sensor ID which should be checkedparameterName
- the parameter nameOwsExceptionReport
- * if the value of the sensor ID parameter is incorrectprotected void checkProcedureIDs(Collection<String> procedureIDs, String parameterName) throws OwsExceptionReport
OwsExceptionReport
protected void checkObservationID(String observationID, String parameterName) throws OwsExceptionReport
OwsExceptionReport
protected void checkObservationIDs(Collection<String> observationIDs, String parameterName) throws OwsExceptionReport
OwsExceptionReport
protected void checkFeatureOfInterestIdentifiers(List<String> featuresOfInterest, String parameterName) throws OwsExceptionReport
OwsExceptionReport
protected void checkFeatureOfInterestIdentifier(String featureOfInterest, String parameterName) throws OwsExceptionReport
OwsExceptionReport
protected void checkObservedProperties(List<String> observedProperties, String parameterName) throws OwsExceptionReport
OwsExceptionReport
protected void checkObservedProperty(String observedProperty, String parameterName) throws OwsExceptionReport
OwsExceptionReport
protected void checkObservedProperty(String observedProperty, Enum<?> parameterName) throws OwsExceptionReport
OwsExceptionReport
protected void checkOfferings(Collection<String> offerings, String parameterName) throws OwsExceptionReport
OwsExceptionReport
protected void checkOfferings(Collection<String> offerings, Enum<?> parameterName) throws OwsExceptionReport
OwsExceptionReport
protected void checkOffering(String offering, String parameterName) throws OwsExceptionReport
OwsExceptionReport
protected void checkOffering(String offering, Enum<?> parameterName) throws OwsExceptionReport
OwsExceptionReport
protected void checkSpatialFilters(List<SpatialFilter> spatialFilters, String name) throws OwsExceptionReport
OwsExceptionReport
protected void checkSpatialFilter(SpatialFilter spatialFilter, String name) throws OwsExceptionReport
OwsExceptionReport
protected void checkSpatialFilter(SpatialFilter spatialFilter, Enum<?> name) throws OwsExceptionReport
OwsExceptionReport
protected void checkTemporalFilter(List<TemporalFilter> temporalFilters, String name) throws OwsExceptionReport
OwsExceptionReport
protected void checkTemporalFilter(TemporalFilter temporalFilter) throws CodedException
CodedException
protected void checkTemporalFilter(List<TemporalFilter> temporalFilters, Enum<?> name) throws OwsExceptionReport
OwsExceptionReport
protected void checkResultTemplate(String resultTemplate, String parameterName) throws OwsExceptionReport
OwsExceptionReport
protected List<String> addChildProcedures(Collection<String> procedures)
protected List<String> addChildFeatures(Collection<String> features)
protected void checkObservationType(String observationType, String parameterName) throws OwsExceptionReport
OwsExceptionReport
protected void setObservationResponseResponseFormatAndContentType(AbstractObservationRequest obsRequest, AbstractObservationResponse obsResponse)
protected boolean hasLanguageExtension(SwesExtensions extensions)
private boolean checkFeatureValueReference(String valueReference)
private boolean checkSpatialFilteringProfileValueReference(String valueReference)
protected boolean checkOnlyRequestableProcedureDescriptionFromats(String format, Enum<?> parameter) throws MissingParameterValueException
MissingParameterValueException
Copyright © 2012-2015 52north.org. All Rights Reserved.