public interface UriHelper
| Modifier and Type | Method and Description |
|---|---|
String |
buildCanonicalURL(EdmEntitySet edmEntitySet,
Entity entity)
Builds the relative canonical URL for the given entity in the given entity set.
|
String |
buildContextURLKeyPredicate(List<UriParameter> keys)
Builds the key-predicate part of a
ContextURL. |
String |
buildContextURLSelectList(EdmStructuredType type,
ExpandOption expand,
SelectOption select)
Builds the select-list part of a
ContextURL. |
String |
buildKeyPredicate(EdmEntityType edmEntityType,
Entity entity)
Builds the key predicate for the given entity.
|
UriResourceEntitySet |
parseEntityId(Edm edm,
String entityId,
String rawServiceRoot)
Parses a given entity-id.
|
String buildContextURLSelectList(EdmStructuredType type, ExpandOption expand, SelectOption select) throws SerializerException
ContextURL.type - the EdmStructuredTypeexpand - the $expand optionselect - the $select optionSerializerExceptionString buildContextURLKeyPredicate(List<UriParameter> keys) throws SerializerException
ContextURL.keys - the keys as a list of UriParameter instancesSerializerExceptionString buildCanonicalURL(EdmEntitySet edmEntitySet, Entity entity) throws SerializerException
edmEntitySet - the entity setentity - the entity dataSerializerExceptionString buildKeyPredicate(EdmEntityType edmEntityType, Entity entity) throws SerializerException
edmEntityType - the entity type of the entityentity - the entity dataSerializerExceptionUriResourceEntitySet parseEntityId(Edm edm, String entityId, String rawServiceRoot) throws DeserializerException
[<service root>][<entityContainer>.]<entitySet>(<key>), i.e.,
it must be a relative or absolute URI consisting of an entity set (qualified
with an entity-container name if not in the default entity container) and a
syntactically valid key that identifies a single entity; example:
http://example.server.com/service.svc/Employees('42').edm - the edm the entity belongs toentityId - URI of the entity-idrawServiceRoot - the root URI of the serviceUriResourceEntitySet - contains the entity set and the key predicatesDeserializerException - in case the entity-id is malformedCopyright © 2013–2018 The Apache Software Foundation. All rights reserved.