Package org.opengis.cite.sta10.util
Class ServiceURLBuilder
java.lang.Object
org.opengis.cite.sta10.util.ServiceURLBuilder
Utility class that helps preparing the URL string for the targeted entity.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
Build the URL String based on a chain of entity type hierarchy and ids, and the targeted property or querystatic String
buildURLString
(String rootURI, EntityType parentEntityType, long parentId, EntityType relationEntityType, String property) Build the URL String based on the entityType, parent EntityType and id, and the targeted property or query
-
Constructor Details
-
ServiceURLBuilder
public ServiceURLBuilder()
-
-
Method Details
-
buildURLString
public static String buildURLString(String rootURI, EntityType parentEntityType, long parentId, EntityType relationEntityType, String property) Build the URL String based on the entityType, parent EntityType and id, and the targeted property or query- Parameters:
rootURI
- The base URL of the SensorThings ServiceparentEntityType
- The entity type of the parent entityparentId
- The parent entity idrelationEntityType
- The entity type of the targeted entityproperty
- The targeted property or the query string- Returns:
- The URL String created based on the input parameters
-
buildURLString
public static String buildURLString(String rootURI, List<String> entityTypes, List<Long> ids, String property) Build the URL String based on a chain of entity type hierarchy and ids, and the targeted property or query- Parameters:
rootURI
- The base URL of the SensorThings ServiceentityTypes
- The list of entity type chainids
- The ids for the entity type chainproperty
- The targeted property or the query string- Returns:
- The URL String created based on the input parameters
-