| Constructor and Description |
|---|
UriHelperImpl() |
| 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.
|
public String buildContextURLSelectList(EdmStructuredType type, ExpandOption expand, SelectOption select) throws SerializerException
UriHelperContextURL.buildContextURLSelectList in interface UriHelpertype - the EdmStructuredTypeexpand - the $expand optionselect - the $select optionSerializerExceptionpublic String buildContextURLKeyPredicate(List<UriParameter> keys) throws SerializerException
UriHelperContextURL.buildContextURLKeyPredicate in interface UriHelperkeys - the keys as a list of UriParameter instancesSerializerExceptionpublic String buildCanonicalURL(EdmEntitySet edmEntitySet, Entity entity) throws SerializerException
UriHelperbuildCanonicalURL in interface UriHelperedmEntitySet - the entity setentity - the entity dataSerializerExceptionpublic String buildKeyPredicate(EdmEntityType edmEntityType, Entity entity) throws SerializerException
UriHelperbuildKeyPredicate in interface UriHelperedmEntityType - the entity type of the entityentity - the entity dataSerializerExceptionpublic UriResourceEntitySet parseEntityId(Edm edm, String entityId, String rawServiceRoot) throws DeserializerException
UriHelper[<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').parseEntityId in interface UriHelperedm - 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 © 2023. All rights reserved.