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