public abstract class ODataClient extends Object
| Constructor and Description |
|---|
ODataClient() |
| Modifier and Type | Method and Description |
|---|---|
abstract ContentTypeBasedDeserializer |
createDeserializer(String contentType)
Creates a new deserializer object for reading content in the specified format.
|
abstract ContentTypeBasedSerializer |
createSerializer(String contentType)
Creates a new serializer object for rendering content in the specified format.
|
abstract EdmURIBuilder |
edmUriBuilder(String serviceRoot)
Constructs the edm uri based on segments appended
|
static ODataClient |
newInstance()
Use this method to create a new OData instance.
|
abstract UriInfo |
parseUri(Edm edm,
List<PathSegment> pathSegments,
Map<String,List<String>> queryParameters)
Parses the uri and returns UriInfo
|
abstract UriInfo |
parseUri(Edm edm,
List<PathSegment> pathSegments,
Map<String,String> queryParameters,
boolean strictFilter)
Parses the uri and returns UriInfo
|
abstract UriInfo |
parseUri(Edm edm,
String uri)
Parses the uri and returns UriInfo
|
abstract UriInfo |
parseUri(Edm edm,
String uri,
boolean strictFilter)
Parses the uri and returns UriInfo
|
abstract EdmDataServices |
readMetadata(InputStream content,
boolean validate)
Reads the metadata file and validates it if validate parameter is set to true
|
abstract URIBuilder |
uriBuilder(String serviceRoot)
Constructs the uri based on segments appended
|
public static ODataClient newInstance()
public abstract ContentTypeBasedSerializer createSerializer(String contentType) throws EntityProviderException
contentType - any format supported by Olingo (XML, JSON ...)EntityProviderExceptionpublic abstract ContentTypeBasedDeserializer createDeserializer(String contentType) throws EntityProviderException
contentType - any content type supported by Olingo (XML, JSON ...)EntityProviderExceptionpublic abstract EdmDataServices readMetadata(InputStream content, boolean validate) throws EntityProviderException, EdmException
content - inputStreamvalidate - EntityProviderExceptionEdmExceptionpublic abstract UriInfo parseUri(Edm edm, List<PathSegment> pathSegments, Map<String,List<String>> queryParameters) throws UriSyntaxException, UriNotMatchingException, EdmException
edm - pathSegments - queryParameters - EntityProviderExceptionEdmExceptionUriSyntaxExceptionUriNotMatchingExceptionpublic abstract UriInfo parseUri(Edm edm, List<PathSegment> pathSegments, Map<String,String> queryParameters, boolean strictFilter) throws UriSyntaxException, UriNotMatchingException, EdmException
edm - pathSegments - queryParameters - strictFilter - EntityProviderExceptionEdmExceptionUriSyntaxExceptionUriNotMatchingExceptionpublic abstract UriInfo parseUri(Edm edm, String uri) throws UriSyntaxException, UriNotMatchingException, EdmException
edm - uri - UriSyntaxExceptionUriNotMatchingExceptionEdmExceptionpublic abstract UriInfo parseUri(Edm edm, String uri, boolean strictFilter) throws UriSyntaxException, UriNotMatchingException, EdmException
edm - uri - strictFilter - UriSyntaxExceptionUriNotMatchingExceptionEdmExceptionpublic abstract EdmURIBuilder edmUriBuilder(String serviceRoot)
serviceRoot - public abstract URIBuilder uriBuilder(String serviceRoot)
serviceRoot - Copyright © 2013-2023 The Apache Software Foundation. All Rights Reserved.