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,
String uri)
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 ...)EntityProviderException
public abstract ContentTypeBasedDeserializer createDeserializer(String contentType) throws EntityProviderException
contentType
- any content type supported by Olingo (XML, JSON ...)EntityProviderException
public abstract EdmDataServices readMetadata(InputStream content, boolean validate) throws EntityProviderException, EdmException
content
- inputStreamvalidate
- EntityProviderException
EdmException
public abstract UriInfo parseUri(Edm edm, List<PathSegment> pathSegments, Map<String,List<String>> queryParameters) throws UriSyntaxException, UriNotMatchingException, EdmException
edm
- pathSegments
- queryParameters
- EntityProviderException
EdmException
UriSyntaxException
UriNotMatchingException
public abstract UriInfo parseUri(Edm edm, String uri) throws UriSyntaxException, UriNotMatchingException, EdmException
edm
- uri
- UriSyntaxException
UriNotMatchingException
EdmException
public abstract EdmURIBuilder edmUriBuilder(String serviceRoot)
serviceRoot
- public abstract URIBuilder uriBuilder(String serviceRoot)
serviceRoot
- Copyright © 2013-2019 The Apache Software Foundation. All Rights Reserved.