public class LocationParameter extends core.tut.pori.http.parameters.HTTPParameter
getValue()
object with Location.isValid(Location)
.
Especially, the presence of heading value without coordinate values should be checked by the implementing service if checks are required.
If multiple values are given, the output is unspecified (most likely, the last value given in the query URL will be used for initialization).Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LOCATION_PARAMETER_COORDINATE
location parameter for a coordinate value
|
static java.lang.String |
LOCATION_PARAMETER_HEADING
location parameter for a heading value
|
static java.lang.String |
PARAMETER_DEFAULT_NAME
the default HTTP parameter name
|
Constructor and Description |
---|
LocationParameter() |
Modifier and Type | Method and Description |
---|---|
Location |
getValue() |
boolean |
hasValues() |
void |
initialize(java.io.InputStream parameterValue) |
void |
initialize(java.util.List<java.lang.String> parameterValues) |
void |
initialize(java.lang.String parameterValue) |
public static final java.lang.String LOCATION_PARAMETER_COORDINATE
public static final java.lang.String LOCATION_PARAMETER_HEADING
public static final java.lang.String PARAMETER_DEFAULT_NAME
public LocationParameter()
public void initialize(java.util.List<java.lang.String> parameterValues) throws java.lang.IllegalArgumentException
initialize
in class core.tut.pori.http.parameters.HTTPParameter
java.lang.IllegalArgumentException
public void initialize(java.lang.String parameterValue) throws java.lang.IllegalArgumentException
initialize
in class core.tut.pori.http.parameters.HTTPParameter
java.lang.IllegalArgumentException
public boolean hasValues()
hasValues
in class core.tut.pori.http.parameters.HTTPParameter
public Location getValue()
getValue
in class core.tut.pori.http.parameters.HTTPParameter
public void initialize(java.io.InputStream parameterValue) throws java.lang.UnsupportedOperationException
initialize
in class core.tut.pori.http.parameters.HTTPParameter
java.lang.UnsupportedOperationException
Copyright © 2015-2018 Tampere University of Technology, Pori Department.