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
|
newInstancepublic ContentTypeBasedSerializer createSerializer(String contentType) throws EntityProviderException
ODataClientcreateSerializer in class ODataClientcontentType - any format supported by Olingo (XML, JSON ...)EntityProviderExceptionpublic ContentTypeBasedDeserializer createDeserializer(String contentType) throws EntityProviderException
ODataClientcreateDeserializer in class ODataClientcontentType - any content type supported by Olingo (XML, JSON ...)EntityProviderExceptionpublic EdmDataServices readMetadata(InputStream content, boolean validate) throws EntityProviderException, EdmException
ODataClientreadMetadata in interface DeserializerMetadataProviderInterfacereadMetadata in class ODataClientcontent - inputStreamvalidate - has to be true if metadata should be validatedEntityProviderExceptionEdmExceptionpublic UriInfo parseUri(Edm edm, List<PathSegment> pathSegments, Map<String,List<String>> queryParameters) throws UriSyntaxException, UriNotMatchingException, EdmException
ODataClientparseUri in class ODataClientEdmExceptionUriSyntaxExceptionUriNotMatchingExceptionpublic UriInfo parseUri(Edm edm, String uri) throws UriSyntaxException, UriNotMatchingException, EdmException
ODataClientparseUri in class ODataClientUriSyntaxExceptionUriNotMatchingExceptionEdmExceptionpublic EdmURIBuilder edmUriBuilder(String serviceRoot)
ODataClientedmUriBuilder in class ODataClientpublic URIBuilder uriBuilder(String serviceRoot)
ODataClienturiBuilder in class ODataClientCopyright © 2013-2022 The Apache Software Foundation. All Rights Reserved.