public class IoParameters extends Object implements Parameters
BASE_64, BBOX, CATEGORIES, CATEGORY, COMPLEX_PARENT, CRS, DATASETS, DEFAULT_BASE_64, DEFAULT_EXPANDED, DEFAULT_FORCE_LATEST_VALUE, DEFAULT_FORCE_XY, DEFAULT_FORMAT, DEFAULT_GENERALIZE, DEFAULT_GRID, DEFAULT_HEIGHT, DEFAULT_LEGEND, DEFAULT_LIMIT, DEFAULT_LOCALE, DEFAULT_MATCH_DOMAIN_IDS, DEFAULT_OFFSET, DEFAULT_OUTPUT_TIMEZONE, DEFAULT_RENDERING_HINTS, DEFAULT_RENDERING_TRIGGER, DEFAULT_SHOW_TIME_INTERVALS, DEFAULT_STATUS_INTERVALS, DEFAULT_TIME_FORMAT, DEFAULT_WIDTH, EXPANDED, FEATURE, FEATURES, FILTER_FIELDS, FILTER_OBSERVED_GEOMETRIES, FILTER_PLATFORM_GEOMETRIES, FILTER_PLATFORM_TYPES, FILTER_VALUE_TYPES, FORCE_LATEST_VALUE, FORCE_XY, FORMAT, GENERALIZE, GEOMETRY_TYPES, GRID, HANDLE_AS_VALUE_TYPE, HEIGHT, HREF_BASE, LANGUAGE, LEGEND, LIMIT, LOCALE, MATCH_DOMAIN_IDS, NEAR, OFFERING, OFFERINGS, OFFSET, OUTPUT_TIMEZONE, PHENOMENA, PHENOMENON, PLATFORMS, PROCEDURE, PROCEDURES, RAW_FORMAT, RENDERING_HINTS, RENDERING_TRIGGER, RESULTTIME, SEARCH_TERM, SERIES, SERVICE, SERVICES, SHOW_TIME_INTERVALS, STATION, STATIONS, STATUS_INTERVALS, STYLE, TIME_FORMAT, TIMESERIES, TIMESPAN, WIDTH| Modifier | Constructor and Description |
|---|---|
protected |
IoParameters(Map<String,com.fasterxml.jackson.databind.JsonNode> queryParameters) |
protected |
IoParameters(Map<String,com.fasterxml.jackson.databind.JsonNode> queryParameters,
File defaults) |
protected |
IoParameters(org.springframework.util.MultiValueMap<String,com.fasterxml.jackson.databind.JsonNode> queryParameters) |
protected |
IoParameters(org.springframework.util.MultiValueMap<String,com.fasterxml.jackson.databind.JsonNode> queryParameters,
File defaults) |
protected IoParameters(org.springframework.util.MultiValueMap<String,com.fasterxml.jackson.databind.JsonNode> queryParameters, File defaults)
protected IoParameters(org.springframework.util.MultiValueMap<String,com.fasterxml.jackson.databind.JsonNode> queryParameters)
protected IoParameters(Map<String,com.fasterxml.jackson.databind.JsonNode> queryParameters, File defaults)
public int getOffset()
IoParseException - if parameter could not be parsed.public int getLimit()
IoParseException - if parameter could not be parsed.public int getWidth()
IoParseException - if parsing parameter fails.public int getHeight()
IoParseException - if parsing parameter fails.public boolean isBase64()
IoParseException - if parsing parameter fails.public boolean isGrid()
true if timeseries chart shall include a background grid.IoParseException - if parsing parameter fails.public boolean isGeneralize()
throws IoParseException
true if timeseries data shall be generalized.IoParseException - if parsing parameter fails.public boolean isLegend()
true if a legend shall be included when rendering a chart, false
otherwise.IoParseException - if parsing parameter fails.public String getLocale()
public StyleProperties getStyle()
IoParseException - if parsing style parameter failed.public String getFormat()
public boolean isSetRawFormat()
public String getRawFormat()
public String getTimeFormat()
public IntervalWithTimeZone getTimespan()
IoParseException - if timespan could not be parsed.protected String getNormalizedTimespan(org.joda.time.format.DateTimeFormatter dateFormat)
public String getOutputTimezone()
public org.joda.time.Instant getResultTime()
@Deprecated public String getCategory()
getCategories()@Deprecated public String getService()
getServices()@Deprecated public String getOffering()
getOfferings()@Deprecated public String getFeature()
getFeatures()@Deprecated public String getProcedure()
getProcedures()@Deprecated public String getPhenomenon()
getPhenomena()@Deprecated public String getStation()
public FilterResolver getFilterResolver()
public BoundingBox getSpatialFilter()
BoundingBox instance from given spatial request parameters. The resulting bounding
box is the merged extent of all spatial filters given. For example if and
exist, the returned bounding box includes both extents.IoParseException - if parsing parameters fails, or if a requested object could not be created.public String getCrs()
public boolean isForceXY()
public boolean isMatchDomainIds()
public boolean isExpanded()
IoParseException - if parameter could not be parsed.public boolean isForceLatestValueRequests()
@Deprecated public boolean isStatusIntervalsRequests()
@Deprecated public boolean isRenderingHintsRequests()
public String getHrefBase()
public boolean isShowTimeIntervals()
public boolean containsParameter(String parameter)
public int getAsInteger(String parameter, int defaultValue)
public int getAsInteger(String parameter)
parameter - the parameter to parse to an int value.IoParseException - if parsing to int fails.public boolean getAsBoolean(String parameter, boolean defaultValue)
public boolean getAsBoolean(String parameter)
parameter - the parameter to parse to boolean.true or false as boolean.IoParseException - if parsing to boolean fails.public RequestSimpleParameterSet toSimpleParameterSet()
public RequestSimpleParameterSet mergeToSimpleParameterSet(RequestStyledParameterSet designedSet)
public RequestStyledParameterSet toStyledParameterSet()
public RequestStyledParameterSet mergeToStyledParameterSet(RequestStyledParameterSet parameterSet)
public static com.fasterxml.jackson.databind.JsonNode getJsonNodeFrom(Object object)
public IoParameters removeAllOf(String key)
public IoParameters extendWith(String key, String... values)
protected static Map<String,com.fasterxml.jackson.databind.JsonNode> convertValuesToJsonNodes(Map<String,String> queryParameters)
protected static org.springframework.util.MultiValueMap<String,com.fasterxml.jackson.databind.JsonNode> convertValuesToJsonNodes(org.springframework.util.MultiValueMap<String,String> queryParameters)
public static IoParameters createDefaults()
static IoParameters createDefaults(File defaultConfig)
static IoParameters createFromMultiValueMap(org.springframework.util.MultiValueMap<String,String> query)
static IoParameters createFromMultiValueMap(org.springframework.util.MultiValueMap<String,String> query, File defaultConfig)
static IoParameters createFromSingleValueMap(Map<String,String> query)
static IoParameters createFromSingleValueMap(Map<String,String> query, File defaultConfig)
public static IoParameters createFromQuery(RequestParameterSet parameters)
parameters - the parameters sent via POST payload.public static IoParameters createFromQuery(RequestParameterSet parameters, File defaultConfig)
public static IoParameters ensureBackwardsCompatibility(IoParameters parameters)
public boolean isPureStationaryInsituQuery()
Copyright © 2013–2017 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.