public final class ContextURLHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
buildKeyPredicate(List<org.apache.olingo.server.api.uri.UriParameter> keys)
Builds a key predicate for the ContextURL.
|
static String |
buildSelectList(org.apache.olingo.commons.api.edm.EdmStructuredType type,
org.apache.olingo.server.api.uri.queryoption.ExpandOption expand,
org.apache.olingo.server.api.uri.queryoption.SelectOption select)
Builds a list of selected Properties for the ContextURL,
taking care to preserve the order as defined in the EDM;
returns NULL if no selection has taken place.
|
public static String buildSelectList(org.apache.olingo.commons.api.edm.EdmStructuredType type, org.apache.olingo.server.api.uri.queryoption.ExpandOption expand, org.apache.olingo.server.api.uri.queryoption.SelectOption select) throws org.apache.olingo.server.api.serializer.SerializerException
type - the structured typeexpand - the Expand option (from the URL's $expand query option)select - the Select option (from the URL's $select query option)org.apache.olingo.server.api.serializer.SerializerException - if an unsupported feature is usedpublic static String buildKeyPredicate(List<org.apache.olingo.server.api.uri.UriParameter> keys) throws org.apache.olingo.server.api.serializer.SerializerException
keys - the keys as a list of UriParameter instancesorg.apache.olingo.server.api.serializer.SerializerExceptionCopyright © 2013–2015 The Apache Software Foundation. All rights reserved.