Class AbstractStreaming
- java.lang.Object
-
- org.n52.shetland.ogc.om.AbstractObservationValue<Value<ObservationStream>>
-
- org.n52.shetland.ogc.sos.response.AbstractStreaming
-
- All Implemented Interfaces:
AutoCloseable,ThrowingIterator<OmObservation,OwsExceptionReport>,ObservationStream,ObservationValue<Value<ObservationStream>>
- Direct Known Subclasses:
StreamingValue
public abstract class AbstractStreaming extends AbstractObservationValue<Value<ObservationStream>> implements ObservationStream
-
-
Constructor Summary
Constructors Constructor Description AbstractStreaming()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidadd(OWSConstants.AdditionalRequestParams parameter, Object object)protected abstract voidcheckForModifications(OmObservation observation)Check and modify observation for Spatial Filtering Profile and requested crsprotected voidcheckMaxNumberOfReturnedValues(int size)Check if the max number of returned values is exceededbooleancontains(OWSConstants.AdditionalRequestParams parameter)protected ObjectgetAdditionalRequestParams(OWSConstants.AdditionalRequestParams parameter)intgetMaxNumberOfValues()ObservationMergeIndicatorgetObservationMergeIndicator()StringgetResponseFormat()abstract booleanhasNext()booleanisSetAdditionalRequestParams()booleanisSetValue()abstract OmObservationnext()voidsetMaxNumberOfValues(int maxNumberOfValues)voidsetObservationMergeIndicator(ObservationMergeIndicator mergeIndicator)voidsetResponseFormat(String responseFormat)-
Methods inherited from class org.n52.shetland.ogc.om.AbstractObservationValue
getDecimalSeparator, getDefaultPointMetadata, getMetadata, getObservableProperty, getObservationID, getObservationType, getTokenSeparator, getTupleSeparator, getUnit, isSetDecimalSeparator, isSetDefaultPointMetadata, isSetMetadata, isSetObservablePropertyD, isSetObservationID, isSetObservationType, isSetTokenSeparator, isSetTupleSeparator, isSetUnit, setDecimalSeparator, setDefaultPointMetadata, setMetadata, setObservationID, setUnit, setValuesForResultEncoding
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.n52.shetland.ogc.om.ObservationStream
close, collect, filter, findAny, findFirst, flatMap, map, merge, merge, modify, toStream
-
Methods inherited from interface org.n52.shetland.ogc.om.ObservationValue
getPhenomenonTime, getValue, setPhenomenonTime, setValue
-
Methods inherited from interface org.n52.janmayen.ThrowingIterator
forEachRemaining, remove
-
-
-
-
Method Detail
-
next
public abstract OmObservation next() throws NoSuchElementException, OwsExceptionReport
- Specified by:
nextin interfaceThrowingIterator<OmObservation,OwsExceptionReport>- Throws:
NoSuchElementExceptionOwsExceptionReport
-
hasNext
public abstract boolean hasNext() throws OwsExceptionReport- Specified by:
hasNextin interfaceThrowingIterator<OmObservation,OwsExceptionReport>- Throws:
OwsExceptionReport
-
checkForModifications
protected abstract void checkForModifications(OmObservation observation) throws OwsExceptionReport
Check and modify observation for Spatial Filtering Profile and requested crs- Parameters:
observation-OmObservationto check- Throws:
OwsExceptionReport- If an error occurs when modifying theOmObservation
-
add
public void add(OWSConstants.AdditionalRequestParams parameter, Object object)
-
contains
public boolean contains(OWSConstants.AdditionalRequestParams parameter)
-
isSetAdditionalRequestParams
public boolean isSetAdditionalRequestParams()
-
getAdditionalRequestParams
protected Object getAdditionalRequestParams(OWSConstants.AdditionalRequestParams parameter)
-
isSetValue
public boolean isSetValue()
- Specified by:
isSetValuein interfaceObservationValue<Value<ObservationStream>>
-
setResponseFormat
public void setResponseFormat(String responseFormat)
-
getResponseFormat
public String getResponseFormat()
-
getMaxNumberOfValues
public int getMaxNumberOfValues()
- Returns:
- the maxNumberOfValues
-
setMaxNumberOfValues
public void setMaxNumberOfValues(int maxNumberOfValues)
- Parameters:
maxNumberOfValues- the maxNumberOfValues to set
-
checkMaxNumberOfReturnedValues
protected void checkMaxNumberOfReturnedValues(int size) throws OwsExceptionReportCheck if the max number of returned values is exceeded- Parameters:
size- Max number count- Throws:
CodedException- If the size limit is exceededOwsExceptionReport
-
setObservationMergeIndicator
public void setObservationMergeIndicator(ObservationMergeIndicator mergeIndicator)
-
getObservationMergeIndicator
public ObservationMergeIndicator getObservationMergeIndicator()
-
-