[OLINGO-205, OLINGO-200, OLINGO-65] merge

This commit is contained in:
fmartelli 2014-03-24 10:05:44 +01:00
commit 5b5576f86c
290 changed files with 1189 additions and 981 deletions

View File

@ -49,11 +49,6 @@
<groupId>org.apache.httpcomponents</groupId> <groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId> <artifactId>httpclient</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
</dependencies> </dependencies>
</project> </project>

View File

@ -18,15 +18,15 @@
*/ */
package org.apache.olingo.client.api; package org.apache.olingo.client.api;
import org.apache.olingo.client.api.format.ODataFormat;
import org.apache.olingo.client.api.format.ODataMediaFormat;
import org.apache.olingo.client.api.format.ODataPubFormat;
import org.apache.olingo.client.api.format.ODataValueFormat;
import org.apache.olingo.client.api.http.HttpClientFactory; import org.apache.olingo.client.api.http.HttpClientFactory;
import org.apache.olingo.client.api.http.HttpUriRequestFactory; import org.apache.olingo.client.api.http.HttpUriRequestFactory;
import java.io.Serializable; import java.io.Serializable;
import java.util.concurrent.ExecutorService; import java.util.concurrent.ExecutorService;
import org.apache.olingo.commons.api.format.ODataFormat;
import org.apache.olingo.commons.api.format.ODataMediaFormat;
import org.apache.olingo.commons.api.format.ODataPubFormat;
import org.apache.olingo.commons.api.format.ODataValueFormat;
/** /**
* Configuration wrapper. * Configuration wrapper.

View File

@ -24,13 +24,13 @@ import org.apache.olingo.client.api.communication.request.cud.CommonCUDRequestFa
import org.apache.olingo.client.api.communication.request.invoke.CommonInvokeRequestFactory; import org.apache.olingo.client.api.communication.request.invoke.CommonInvokeRequestFactory;
import org.apache.olingo.client.api.communication.request.retrieve.CommonRetrieveRequestFactory; import org.apache.olingo.client.api.communication.request.retrieve.CommonRetrieveRequestFactory;
import org.apache.olingo.client.api.communication.request.streamed.CommonStreamedRequestFactory; import org.apache.olingo.client.api.communication.request.streamed.CommonStreamedRequestFactory;
import org.apache.olingo.client.api.domain.ODataObjectFactory; import org.apache.olingo.client.api.op.ClientODataDeserializer;
import org.apache.olingo.client.api.domain.ODataGeospatialValue; import org.apache.olingo.commons.api.domain.ODataObjectFactory;
import org.apache.olingo.client.api.domain.ODataPrimitiveValue; import org.apache.olingo.commons.api.domain.ODataGeospatialValue;
import org.apache.olingo.commons.api.domain.ODataPrimitiveValue;
import org.apache.olingo.client.api.op.CommonODataBinder; import org.apache.olingo.client.api.op.CommonODataBinder;
import org.apache.olingo.client.api.op.CommonODataDeserializer;
import org.apache.olingo.client.api.op.CommonODataReader; import org.apache.olingo.client.api.op.CommonODataReader;
import org.apache.olingo.client.api.op.ODataSerializer; import org.apache.olingo.commons.api.op.ODataSerializer;
import org.apache.olingo.client.api.op.ODataWriter; import org.apache.olingo.client.api.op.ODataWriter;
import org.apache.olingo.client.api.uri.CommonURIBuilder; import org.apache.olingo.client.api.uri.CommonURIBuilder;
import org.apache.olingo.client.api.uri.CommonFilterFactory; import org.apache.olingo.client.api.uri.CommonFilterFactory;
@ -54,7 +54,7 @@ public interface CommonODataClient {
ODataSerializer getSerializer(); ODataSerializer getSerializer();
CommonODataDeserializer getDeserializer(); ClientODataDeserializer getDeserializer();
CommonODataReader getReader(); CommonODataReader getReader();

View File

@ -25,7 +25,7 @@ import java.util.List;
import org.apache.commons.io.IOUtils; import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.http.StatusLine; import org.apache.http.StatusLine;
import org.apache.olingo.client.api.data.ODataError; import org.apache.olingo.commons.api.domain.ODataError;
/** /**
* Represents a client error in OData. * Represents a client error in OData.

View File

@ -20,7 +20,7 @@ package org.apache.olingo.client.api.communication.request;
import java.util.concurrent.Future; import java.util.concurrent.Future;
import org.apache.olingo.client.api.communication.response.ODataResponse; import org.apache.olingo.client.api.communication.response.ODataResponse;
import org.apache.olingo.client.api.format.Format; import org.apache.olingo.commons.api.format.Format;
/** /**
* Basic OData request. * Basic OData request.

View File

@ -21,10 +21,10 @@ package org.apache.olingo.client.api.communication.request.cud;
import java.io.Serializable; import java.io.Serializable;
import java.net.URI; import java.net.URI;
import org.apache.olingo.client.api.communication.request.UpdateType; import org.apache.olingo.client.api.communication.request.UpdateType;
import org.apache.olingo.client.api.domain.ODataEntity; import org.apache.olingo.commons.api.domain.ODataEntity;
import org.apache.olingo.client.api.domain.ODataLink; import org.apache.olingo.commons.api.domain.ODataLink;
import org.apache.olingo.client.api.domain.ODataPrimitiveValue; import org.apache.olingo.commons.api.domain.ODataPrimitiveValue;
import org.apache.olingo.client.api.domain.ODataProperty; import org.apache.olingo.commons.api.domain.ODataProperty;
/** /**
* OData request factory class. * OData request factory class.

View File

@ -20,7 +20,7 @@ package org.apache.olingo.client.api.communication.request.cud;
import org.apache.olingo.client.api.communication.request.ODataBasicRequest; import org.apache.olingo.client.api.communication.request.ODataBasicRequest;
import org.apache.olingo.client.api.communication.response.ODataDeleteResponse; import org.apache.olingo.client.api.communication.response.ODataDeleteResponse;
import org.apache.olingo.client.api.format.ODataPubFormat; import org.apache.olingo.commons.api.format.ODataPubFormat;
/** /**
* This class implements an OData delete request. * This class implements an OData delete request.

View File

@ -20,7 +20,7 @@ package org.apache.olingo.client.api.communication.request.cud;
import org.apache.olingo.client.api.communication.request.ODataBasicRequest; import org.apache.olingo.client.api.communication.request.ODataBasicRequest;
import org.apache.olingo.client.api.communication.response.ODataEntityCreateResponse; import org.apache.olingo.client.api.communication.response.ODataEntityCreateResponse;
import org.apache.olingo.client.api.format.ODataPubFormat; import org.apache.olingo.commons.api.format.ODataPubFormat;
/** /**
* This class implements an OData create request. * This class implements an OData create request.

View File

@ -20,7 +20,7 @@ package org.apache.olingo.client.api.communication.request.cud;
import org.apache.olingo.client.api.communication.request.ODataBasicRequest; import org.apache.olingo.client.api.communication.request.ODataBasicRequest;
import org.apache.olingo.client.api.communication.response.ODataEntityUpdateResponse; import org.apache.olingo.client.api.communication.response.ODataEntityUpdateResponse;
import org.apache.olingo.client.api.format.ODataPubFormat; import org.apache.olingo.commons.api.format.ODataPubFormat;
/** /**
* This class implements an OData update request. * This class implements an OData update request.

View File

@ -20,7 +20,7 @@ package org.apache.olingo.client.api.communication.request.cud;
import org.apache.olingo.client.api.communication.request.ODataBasicRequest; import org.apache.olingo.client.api.communication.request.ODataBasicRequest;
import org.apache.olingo.client.api.communication.response.ODataLinkOperationResponse; import org.apache.olingo.client.api.communication.response.ODataLinkOperationResponse;
import org.apache.olingo.client.api.format.ODataFormat; import org.apache.olingo.commons.api.format.ODataFormat;
/** /**
* This class implements an insert link OData request. * This class implements an insert link OData request.

View File

@ -20,7 +20,7 @@ package org.apache.olingo.client.api.communication.request.cud;
import org.apache.olingo.client.api.communication.request.ODataBasicRequest; import org.apache.olingo.client.api.communication.request.ODataBasicRequest;
import org.apache.olingo.client.api.communication.response.ODataLinkOperationResponse; import org.apache.olingo.client.api.communication.response.ODataLinkOperationResponse;
import org.apache.olingo.client.api.format.ODataFormat; import org.apache.olingo.commons.api.format.ODataFormat;
/** /**
* This class implements an update link OData request. * This class implements an update link OData request.

View File

@ -20,7 +20,7 @@ package org.apache.olingo.client.api.communication.request.cud;
import org.apache.olingo.client.api.communication.request.ODataBasicRequest; import org.apache.olingo.client.api.communication.request.ODataBasicRequest;
import org.apache.olingo.client.api.communication.response.ODataPropertyUpdateResponse; import org.apache.olingo.client.api.communication.response.ODataPropertyUpdateResponse;
import org.apache.olingo.client.api.format.ODataFormat; import org.apache.olingo.commons.api.format.ODataFormat;
/** /**
* This class implements an OData update entity property request. * This class implements an OData update entity property request.

View File

@ -20,7 +20,7 @@ package org.apache.olingo.client.api.communication.request.cud;
import org.apache.olingo.client.api.communication.request.ODataBasicRequest; import org.apache.olingo.client.api.communication.request.ODataBasicRequest;
import org.apache.olingo.client.api.communication.response.ODataValueUpdateResponse; import org.apache.olingo.client.api.communication.response.ODataValueUpdateResponse;
import org.apache.olingo.client.api.format.ODataValueFormat; import org.apache.olingo.commons.api.format.ODataValueFormat;
/** /**
* This class implements an OData update entity property value request. * This class implements an OData update entity property value request.

View File

@ -21,8 +21,8 @@ package org.apache.olingo.client.api.communication.request.invoke;
import java.io.Serializable; import java.io.Serializable;
import java.net.URI; import java.net.URI;
import java.util.LinkedHashMap; import java.util.LinkedHashMap;
import org.apache.olingo.client.api.domain.ODataInvokeResult; import org.apache.olingo.commons.api.domain.ODataInvokeResult;
import org.apache.olingo.client.api.domain.ODataValue; import org.apache.olingo.commons.api.domain.ODataValue;
import org.apache.olingo.commons.api.edm.Edm; import org.apache.olingo.commons.api.edm.Edm;
import org.apache.olingo.commons.api.edm.FullQualifiedName; import org.apache.olingo.commons.api.edm.FullQualifiedName;

View File

@ -21,9 +21,9 @@ package org.apache.olingo.client.api.communication.request.invoke;
import java.util.Map; import java.util.Map;
import org.apache.olingo.client.api.communication.request.ODataBasicRequest; import org.apache.olingo.client.api.communication.request.ODataBasicRequest;
import org.apache.olingo.client.api.communication.response.ODataInvokeResponse; import org.apache.olingo.client.api.communication.response.ODataInvokeResponse;
import org.apache.olingo.client.api.domain.ODataInvokeResult; import org.apache.olingo.commons.api.domain.ODataInvokeResult;
import org.apache.olingo.client.api.domain.ODataValue; import org.apache.olingo.commons.api.domain.ODataValue;
import org.apache.olingo.client.api.format.ODataPubFormat; import org.apache.olingo.commons.api.format.ODataPubFormat;
/** /**
* This class implements an OData invoke operation request. * This class implements an OData invoke operation request.

View File

@ -19,7 +19,7 @@
package org.apache.olingo.client.api.communication.request.invoke; package org.apache.olingo.client.api.communication.request.invoke;
import java.io.Serializable; import java.io.Serializable;
import org.apache.olingo.client.api.domain.ODataInvokeResult; import org.apache.olingo.commons.api.domain.ODataInvokeResult;
/** /**
* Marker class for invoke with no return type. * Marker class for invoke with no return type.

View File

@ -18,8 +18,8 @@
*/ */
package org.apache.olingo.client.api.communication.request.retrieve; package org.apache.olingo.client.api.communication.request.retrieve;
import org.apache.olingo.client.api.domain.ODataEntity; import org.apache.olingo.commons.api.domain.ODataEntity;
import org.apache.olingo.client.api.format.ODataPubFormat; import org.apache.olingo.commons.api.format.ODataPubFormat;
/** /**
* This class implements an OData retrieve query request returning a single entity. * This class implements an OData retrieve query request returning a single entity.

View File

@ -19,7 +19,7 @@
package org.apache.olingo.client.api.communication.request.retrieve; package org.apache.olingo.client.api.communication.request.retrieve;
import org.apache.olingo.client.api.domain.ODataEntitySetIterator; import org.apache.olingo.client.api.domain.ODataEntitySetIterator;
import org.apache.olingo.client.api.format.ODataPubFormat; import org.apache.olingo.commons.api.format.ODataPubFormat;
/** /**
* This class implements an OData EntitySet query request. * This class implements an OData EntitySet query request.

View File

@ -18,8 +18,8 @@
*/ */
package org.apache.olingo.client.api.communication.request.retrieve; package org.apache.olingo.client.api.communication.request.retrieve;
import org.apache.olingo.client.api.domain.ODataEntitySet; import org.apache.olingo.commons.api.domain.ODataEntitySet;
import org.apache.olingo.client.api.format.ODataPubFormat; import org.apache.olingo.commons.api.format.ODataPubFormat;
/** /**
* This class implements an OData EntitySet query request. * This class implements an OData EntitySet query request.

View File

@ -19,7 +19,7 @@
package org.apache.olingo.client.api.communication.request.retrieve; package org.apache.olingo.client.api.communication.request.retrieve;
import java.io.InputStream; import java.io.InputStream;
import org.apache.olingo.client.api.format.ODataMediaFormat; import org.apache.olingo.commons.api.format.ODataMediaFormat;
/** /**
* This class implements an OData media query request. * This class implements an OData media query request.

View File

@ -18,7 +18,7 @@
*/ */
package org.apache.olingo.client.api.communication.request.retrieve; package org.apache.olingo.client.api.communication.request.retrieve;
import org.apache.olingo.client.api.format.ODataPubFormat; import org.apache.olingo.commons.api.format.ODataPubFormat;
import org.apache.olingo.commons.api.edm.Edm; import org.apache.olingo.commons.api.edm.Edm;
/** /**

View File

@ -18,8 +18,8 @@
*/ */
package org.apache.olingo.client.api.communication.request.retrieve; package org.apache.olingo.client.api.communication.request.retrieve;
import org.apache.olingo.client.api.domain.ODataProperty; import org.apache.olingo.commons.api.domain.ODataProperty;
import org.apache.olingo.client.api.format.ODataFormat; import org.apache.olingo.commons.api.format.ODataFormat;
/** /**
* This class implements an OData entity property query request. * This class implements an OData entity property query request.

View File

@ -20,7 +20,7 @@ package org.apache.olingo.client.api.communication.request.retrieve;
import org.apache.olingo.client.api.communication.request.ODataBasicRequest; import org.apache.olingo.client.api.communication.request.ODataBasicRequest;
import org.apache.olingo.client.api.communication.response.ODataRetrieveResponse; import org.apache.olingo.client.api.communication.response.ODataRetrieveResponse;
import org.apache.olingo.client.api.format.Format; import org.apache.olingo.commons.api.format.Format;
/** /**
* This is an abstract representation of an OData retrieve query request returning one or more result item. * This is an abstract representation of an OData retrieve query request returning one or more result item.

View File

@ -18,8 +18,8 @@
*/ */
package org.apache.olingo.client.api.communication.request.retrieve; package org.apache.olingo.client.api.communication.request.retrieve;
import org.apache.olingo.client.api.domain.ODataServiceDocument; import org.apache.olingo.commons.api.domain.ODataServiceDocument;
import org.apache.olingo.client.api.format.ODataFormat; import org.apache.olingo.commons.api.format.ODataFormat;
/** /**
* This class implements an OData service document request. * This class implements an OData service document request.

View File

@ -18,8 +18,8 @@
*/ */
package org.apache.olingo.client.api.communication.request.retrieve; package org.apache.olingo.client.api.communication.request.retrieve;
import org.apache.olingo.client.api.domain.ODataPrimitiveValue; import org.apache.olingo.commons.api.domain.ODataPrimitiveValue;
import org.apache.olingo.client.api.format.ODataValueFormat; import org.apache.olingo.commons.api.format.ODataValueFormat;
/** /**
* This class implements an OData entity property value query request. * This class implements an OData entity property value query request.

View File

@ -20,7 +20,7 @@ package org.apache.olingo.client.api.communication.request.retrieve.v3;
import org.apache.olingo.client.api.communication.request.retrieve.ODataRetrieveRequest; import org.apache.olingo.client.api.communication.request.retrieve.ODataRetrieveRequest;
import org.apache.olingo.client.api.domain.v3.ODataLinkCollection; import org.apache.olingo.client.api.domain.v3.ODataLinkCollection;
import org.apache.olingo.client.api.format.ODataFormat; import org.apache.olingo.commons.api.format.ODataFormat;
/** /**
* This class implements an OData link query request. * This class implements an OData link query request.

View File

@ -21,7 +21,7 @@ package org.apache.olingo.client.api.communication.request.streamed;
import org.apache.olingo.client.api.communication.request.ODataStreamManager; import org.apache.olingo.client.api.communication.request.ODataStreamManager;
import org.apache.olingo.client.api.communication.request.ODataStreamedRequest; import org.apache.olingo.client.api.communication.request.ODataStreamedRequest;
import org.apache.olingo.client.api.communication.response.ODataResponse; import org.apache.olingo.client.api.communication.response.ODataResponse;
import org.apache.olingo.client.api.format.ODataPubFormat; import org.apache.olingo.commons.api.format.ODataPubFormat;
/** /**
* Abstract class representing a request concerning a streamed entity. * Abstract class representing a request concerning a streamed entity.

View File

@ -18,7 +18,7 @@
*/ */
package org.apache.olingo.client.api.communication.response; package org.apache.olingo.client.api.communication.response;
import org.apache.olingo.client.api.domain.ODataEntity; import org.apache.olingo.commons.api.domain.ODataEntity;
/** /**
* This class implements the response to an OData entity create request. * This class implements the response to an OData entity create request.

View File

@ -18,7 +18,7 @@
*/ */
package org.apache.olingo.client.api.communication.response; package org.apache.olingo.client.api.communication.response;
import org.apache.olingo.client.api.domain.ODataEntity; import org.apache.olingo.commons.api.domain.ODataEntity;
/** /**
* This class implements the response to an OData update request. * This class implements the response to an OData update request.

View File

@ -18,7 +18,7 @@
*/ */
package org.apache.olingo.client.api.communication.response; package org.apache.olingo.client.api.communication.response;
import org.apache.olingo.client.api.domain.ODataInvokeResult; import org.apache.olingo.commons.api.domain.ODataInvokeResult;
/** /**
* This class implements a response to a specific invoke request. * This class implements a response to a specific invoke request.

View File

@ -18,7 +18,7 @@
*/ */
package org.apache.olingo.client.api.communication.response; package org.apache.olingo.client.api.communication.response;
import org.apache.olingo.client.api.domain.ODataEntity; import org.apache.olingo.commons.api.domain.ODataEntity;
/** /**
* This class implements the response to an Odata media entity create request. * This class implements the response to an Odata media entity create request.

View File

@ -18,7 +18,7 @@
*/ */
package org.apache.olingo.client.api.communication.response; package org.apache.olingo.client.api.communication.response;
import org.apache.olingo.client.api.domain.ODataEntity; import org.apache.olingo.commons.api.domain.ODataEntity;
/** /**
* This class implements the response to an Odata media entity update request. * This class implements the response to an Odata media entity update request.

View File

@ -18,7 +18,7 @@
*/ */
package org.apache.olingo.client.api.communication.response; package org.apache.olingo.client.api.communication.response;
import org.apache.olingo.client.api.domain.ODataProperty; import org.apache.olingo.commons.api.domain.ODataProperty;
/** /**
* This class implements the response to an OData update entity property request. * This class implements the response to an OData update entity property request.

View File

@ -18,7 +18,7 @@
*/ */
package org.apache.olingo.client.api.communication.response; package org.apache.olingo.client.api.communication.response;
import org.apache.olingo.client.api.domain.ODataPrimitiveValue; import org.apache.olingo.commons.api.domain.ODataPrimitiveValue;
/** /**
* This class implements the response to an OData update entity property request. * This class implements the response to an OData update entity property request.

View File

@ -29,9 +29,11 @@ import java.util.NoSuchElementException;
import org.apache.commons.io.IOUtils; import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.olingo.client.api.CommonODataClient; import org.apache.olingo.client.api.CommonODataClient;
import org.apache.olingo.client.api.Constants; import org.apache.olingo.commons.api.Constants;
import org.apache.olingo.client.api.data.Entry; import org.apache.olingo.commons.api.data.Entry;
import org.apache.olingo.client.api.format.ODataPubFormat; import org.apache.olingo.commons.api.format.ODataPubFormat;
import org.apache.olingo.commons.api.domain.ODataEntity;
import org.apache.olingo.commons.api.domain.ODataEntitySet;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;

View File

@ -0,0 +1,39 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.olingo.client.api.op;
import java.io.InputStream;
import org.apache.olingo.client.api.data.ServiceDocument;
import org.apache.olingo.client.api.edm.xml.XMLMetadata;
import org.apache.olingo.commons.api.format.ODataFormat;
import org.apache.olingo.commons.api.op.CommonODataDeserializer;
public interface ClientODataDeserializer extends CommonODataDeserializer {
XMLMetadata toMetadata(InputStream input);
/**
* Gets the ServiceDocument object represented by the given InputStream.
*
* @param input stream to be de-serialized.
* @param format OData service document format.
* @return <tt>ServiceDocument</tt> object.
*/
ServiceDocument toServiceDocument(InputStream input, ODataFormat format);
}

View File

@ -20,16 +20,16 @@ package org.apache.olingo.client.api.op;
import java.io.Serializable; import java.io.Serializable;
import java.net.URI; import java.net.URI;
import org.apache.olingo.client.api.data.Entry; import org.apache.olingo.commons.api.data.Entry;
import org.apache.olingo.client.api.data.Feed; import org.apache.olingo.commons.api.data.Feed;
import org.apache.olingo.client.api.data.Link; import org.apache.olingo.commons.api.data.Link;
import org.apache.olingo.client.api.data.Property; import org.apache.olingo.commons.api.data.Property;
import org.apache.olingo.client.api.data.ServiceDocument; import org.apache.olingo.client.api.data.ServiceDocument;
import org.apache.olingo.client.api.domain.ODataEntity; import org.apache.olingo.commons.api.domain.ODataEntity;
import org.apache.olingo.client.api.domain.ODataEntitySet; import org.apache.olingo.commons.api.domain.ODataEntitySet;
import org.apache.olingo.client.api.domain.ODataLink; import org.apache.olingo.commons.api.domain.ODataLink;
import org.apache.olingo.client.api.domain.ODataProperty; import org.apache.olingo.commons.api.domain.ODataProperty;
import org.apache.olingo.client.api.domain.ODataServiceDocument; import org.apache.olingo.commons.api.domain.ODataServiceDocument;
public interface CommonODataBinder extends Serializable { public interface CommonODataBinder extends Serializable {

View File

@ -20,13 +20,13 @@ package org.apache.olingo.client.api.op;
import java.io.InputStream; import java.io.InputStream;
import java.io.Serializable; import java.io.Serializable;
import org.apache.olingo.client.api.data.ODataError; import org.apache.olingo.commons.api.domain.ODataError;
import org.apache.olingo.client.api.domain.ODataEntity; import org.apache.olingo.commons.api.domain.ODataEntity;
import org.apache.olingo.client.api.domain.ODataEntitySet; import org.apache.olingo.commons.api.domain.ODataEntitySet;
import org.apache.olingo.client.api.domain.ODataProperty; import org.apache.olingo.commons.api.domain.ODataProperty;
import org.apache.olingo.client.api.domain.ODataServiceDocument; import org.apache.olingo.commons.api.domain.ODataServiceDocument;
import org.apache.olingo.client.api.format.ODataFormat; import org.apache.olingo.commons.api.format.ODataFormat;
import org.apache.olingo.client.api.format.ODataPubFormat; import org.apache.olingo.commons.api.format.ODataPubFormat;
import org.apache.olingo.commons.api.edm.Edm; import org.apache.olingo.commons.api.edm.Edm;
/** /**

View File

@ -21,11 +21,11 @@ package org.apache.olingo.client.api.op;
import java.io.InputStream; import java.io.InputStream;
import java.io.Serializable; import java.io.Serializable;
import java.util.Collection; import java.util.Collection;
import org.apache.olingo.client.api.domain.ODataEntity; import org.apache.olingo.commons.api.domain.ODataEntity;
import org.apache.olingo.client.api.domain.ODataLink; import org.apache.olingo.commons.api.domain.ODataLink;
import org.apache.olingo.client.api.domain.ODataProperty; import org.apache.olingo.commons.api.domain.ODataProperty;
import org.apache.olingo.client.api.format.ODataFormat; import org.apache.olingo.commons.api.format.ODataFormat;
import org.apache.olingo.client.api.format.ODataPubFormat; import org.apache.olingo.commons.api.format.ODataPubFormat;
/** /**
* OData writer. * OData writer.

View File

@ -18,7 +18,7 @@
*/ */
package org.apache.olingo.client.api.op.v3; package org.apache.olingo.client.api.op.v3;
import org.apache.olingo.client.api.data.v3.LinkCollection; import org.apache.olingo.commons.api.data.v3.LinkCollection;
import org.apache.olingo.client.api.domain.v3.ODataLinkCollection; import org.apache.olingo.client.api.domain.v3.ODataLinkCollection;
import org.apache.olingo.client.api.op.CommonODataBinder; import org.apache.olingo.client.api.op.CommonODataBinder;

View File

@ -19,11 +19,11 @@
package org.apache.olingo.client.api.op.v3; package org.apache.olingo.client.api.op.v3;
import java.io.InputStream; import java.io.InputStream;
import org.apache.olingo.client.api.data.v3.LinkCollection; import org.apache.olingo.client.api.op.ClientODataDeserializer;
import org.apache.olingo.client.api.format.ODataFormat; import org.apache.olingo.commons.api.data.v3.LinkCollection;
import org.apache.olingo.client.api.op.CommonODataDeserializer; import org.apache.olingo.commons.api.format.ODataFormat;
public interface ODataDeserializer extends CommonODataDeserializer { public interface ODataDeserializer extends ClientODataDeserializer {
/** /**
* Gets a list of links from the given InputStream. * Gets a list of links from the given InputStream.

View File

@ -20,7 +20,7 @@ package org.apache.olingo.client.api.op.v3;
import java.io.InputStream; import java.io.InputStream;
import org.apache.olingo.client.api.domain.v3.ODataLinkCollection; import org.apache.olingo.client.api.domain.v3.ODataLinkCollection;
import org.apache.olingo.client.api.format.ODataFormat; import org.apache.olingo.commons.api.format.ODataFormat;
import org.apache.olingo.client.api.op.CommonODataReader; import org.apache.olingo.client.api.op.CommonODataReader;
public interface ODataReader extends CommonODataReader { public interface ODataReader extends CommonODataReader {

View File

@ -21,9 +21,9 @@ package org.apache.olingo.client.api.op.v4;
import java.io.InputStream; import java.io.InputStream;
import org.apache.olingo.client.api.edm.xml.v4.XMLMetadata; import org.apache.olingo.client.api.edm.xml.v4.XMLMetadata;
import org.apache.olingo.client.api.op.CommonODataDeserializer; import org.apache.olingo.client.api.op.ClientODataDeserializer;
public interface ODataDeserializer extends CommonODataDeserializer { public interface ODataDeserializer extends ClientODataDeserializer {
@Override @Override
XMLMetadata toMetadata(InputStream input); XMLMetadata toMetadata(InputStream input);

View File

@ -45,27 +45,6 @@
<artifactId>olingo-commons-core-incubating</artifactId> <artifactId>olingo-commons-core-incubating</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-xml</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml</groupId>
<artifactId>aalto-xml</artifactId>
</dependency>
<dependency> <dependency>
<groupId>junit</groupId> <groupId>junit</groupId>

View File

@ -24,10 +24,10 @@ import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors; import java.util.concurrent.Executors;
import org.apache.olingo.client.api.CommonConfiguration; import org.apache.olingo.client.api.CommonConfiguration;
import org.apache.olingo.client.api.format.ODataFormat; import org.apache.olingo.commons.api.format.ODataFormat;
import org.apache.olingo.client.api.format.ODataMediaFormat; import org.apache.olingo.commons.api.format.ODataMediaFormat;
import org.apache.olingo.client.api.format.ODataPubFormat; import org.apache.olingo.commons.api.format.ODataPubFormat;
import org.apache.olingo.client.api.format.ODataValueFormat; import org.apache.olingo.commons.api.format.ODataValueFormat;
import org.apache.olingo.client.api.http.HttpClientFactory; import org.apache.olingo.client.api.http.HttpClientFactory;
import org.apache.olingo.client.api.http.HttpUriRequestFactory; import org.apache.olingo.client.api.http.HttpUriRequestFactory;
import org.apache.olingo.client.core.http.DefaultHttpClientFactory; import org.apache.olingo.client.core.http.DefaultHttpClientFactory;

View File

@ -19,12 +19,12 @@
package org.apache.olingo.client.core; package org.apache.olingo.client.core;
import org.apache.olingo.client.api.CommonODataClient; import org.apache.olingo.client.api.CommonODataClient;
import org.apache.olingo.client.api.domain.ODataObjectFactory; import org.apache.olingo.commons.api.domain.ODataObjectFactory;
import org.apache.olingo.client.api.op.ODataWriter; import org.apache.olingo.client.api.op.ODataWriter;
import org.apache.olingo.client.core.domain.ODataGeospatialValueImpl; import org.apache.olingo.client.core.domain.ODataGeospatialValueImpl;
import org.apache.olingo.client.core.domain.ODataPrimitiveValueImpl; import org.apache.olingo.client.core.domain.ODataPrimitiveValueImpl;
import org.apache.olingo.client.core.op.impl.ODataObjectFactoryImpl; import org.apache.olingo.commons.core.op.ODataObjectFactoryImpl;
import org.apache.olingo.client.core.op.impl.ODataWriterImpl; import org.apache.olingo.client.core.op.ODataWriterImpl;
public abstract class AbstractODataClient implements CommonODataClient { public abstract class AbstractODataClient implements CommonODataClient {
@ -32,7 +32,7 @@ public abstract class AbstractODataClient implements CommonODataClient {
private final ODataWriter writer = new ODataWriterImpl(this); private final ODataWriter writer = new ODataWriterImpl(this);
private final ODataObjectFactory objectFactory = new ODataObjectFactoryImpl(this); private final ODataObjectFactory objectFactory = new ODataObjectFactoryImpl(getServiceVersion());
@Override @Override
public ODataPrimitiveValueImpl.BuilderImpl getPrimitiveValueBuilder() { public ODataPrimitiveValueImpl.BuilderImpl getPrimitiveValueBuilder() {

View File

@ -31,7 +31,7 @@ import org.apache.olingo.client.api.communication.request.ODataBasicRequest;
import org.apache.olingo.client.api.communication.request.ODataStreamer; import org.apache.olingo.client.api.communication.request.ODataStreamer;
import org.apache.olingo.client.api.communication.request.batch.ODataBatchRequest; import org.apache.olingo.client.api.communication.request.batch.ODataBatchRequest;
import org.apache.olingo.client.api.communication.response.ODataResponse; import org.apache.olingo.client.api.communication.response.ODataResponse;
import org.apache.olingo.client.api.format.Format; import org.apache.olingo.commons.api.format.Format;
import org.apache.olingo.client.api.http.HttpMethod; import org.apache.olingo.client.api.http.HttpMethod;
/** /**

View File

@ -47,17 +47,17 @@ import org.apache.olingo.client.api.communication.request.cud.v3.CUDRequestFacto
import org.apache.olingo.client.api.communication.request.invoke.v3.InvokeRequestFactory; import org.apache.olingo.client.api.communication.request.invoke.v3.InvokeRequestFactory;
import org.apache.olingo.client.api.communication.request.streamed.v3.StreamedRequestFactory; import org.apache.olingo.client.api.communication.request.streamed.v3.StreamedRequestFactory;
import org.apache.olingo.client.api.communication.response.ODataResponse; import org.apache.olingo.client.api.communication.response.ODataResponse;
import org.apache.olingo.client.api.format.ODataMediaFormat; import org.apache.olingo.commons.api.format.Format;
import org.apache.olingo.client.api.format.ODataPubFormat;
import org.apache.olingo.client.api.format.ODataValueFormat;
import org.apache.olingo.client.api.http.HttpClientException; import org.apache.olingo.client.api.http.HttpClientException;
import org.apache.olingo.client.api.http.HttpMethod; import org.apache.olingo.client.api.http.HttpMethod;
import org.apache.olingo.client.core.data.JSONErrorImpl;
import org.apache.olingo.client.core.data.XMLErrorImpl;
import org.apache.olingo.client.api.data.ODataError;
import org.apache.olingo.client.api.format.Format;
import org.apache.olingo.client.core.communication.header.ODataHeadersImpl; import org.apache.olingo.client.core.communication.header.ODataHeadersImpl;
import org.apache.olingo.commons.api.domain.ODataError;
import org.apache.olingo.commons.api.edm.constants.ODataServiceVersion; import org.apache.olingo.commons.api.edm.constants.ODataServiceVersion;
import org.apache.olingo.commons.api.format.ODataMediaFormat;
import org.apache.olingo.commons.api.format.ODataPubFormat;
import org.apache.olingo.commons.api.format.ODataValueFormat;
import org.apache.olingo.commons.core.data.JSONErrorImpl;
import org.apache.olingo.commons.core.data.XMLErrorImpl;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;

View File

@ -32,7 +32,7 @@ import java.util.regex.Pattern;
import org.apache.commons.io.IOUtils; import org.apache.commons.io.IOUtils;
import org.apache.commons.io.LineIterator; import org.apache.commons.io.LineIterator;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.olingo.client.api.Constants; import org.apache.olingo.commons.api.Constants;
import org.apache.olingo.client.api.ODataBatchConstants; import org.apache.olingo.client.api.ODataBatchConstants;
import org.apache.olingo.client.api.communication.header.HeaderName; import org.apache.olingo.client.api.communication.header.HeaderName;
import org.apache.olingo.client.api.communication.request.ODataStreamer; import org.apache.olingo.client.api.communication.request.ODataStreamer;

View File

@ -29,10 +29,10 @@ import org.apache.olingo.client.api.communication.request.cud.ODataLinkCreateReq
import org.apache.olingo.client.api.communication.request.cud.ODataLinkUpdateRequest; import org.apache.olingo.client.api.communication.request.cud.ODataLinkUpdateRequest;
import org.apache.olingo.client.api.communication.request.cud.ODataPropertyUpdateRequest; import org.apache.olingo.client.api.communication.request.cud.ODataPropertyUpdateRequest;
import org.apache.olingo.client.api.communication.request.cud.ODataValueUpdateRequest; import org.apache.olingo.client.api.communication.request.cud.ODataValueUpdateRequest;
import org.apache.olingo.client.api.domain.ODataEntity; import org.apache.olingo.commons.api.domain.ODataEntity;
import org.apache.olingo.client.api.domain.ODataLink; import org.apache.olingo.commons.api.domain.ODataLink;
import org.apache.olingo.client.api.domain.ODataPrimitiveValue; import org.apache.olingo.commons.api.domain.ODataPrimitiveValue;
import org.apache.olingo.client.api.domain.ODataProperty; import org.apache.olingo.commons.api.domain.ODataProperty;
import org.apache.olingo.client.api.http.HttpMethod; import org.apache.olingo.client.api.http.HttpMethod;
public abstract class AbstractCUDRequestFactory implements CommonCUDRequestFactory { public abstract class AbstractCUDRequestFactory implements CommonCUDRequestFactory {

View File

@ -26,7 +26,7 @@ import org.apache.olingo.client.api.CommonODataClient;
import org.apache.olingo.client.api.communication.request.ODataBatchableRequest; import org.apache.olingo.client.api.communication.request.ODataBatchableRequest;
import org.apache.olingo.client.api.communication.request.cud.ODataDeleteRequest; import org.apache.olingo.client.api.communication.request.cud.ODataDeleteRequest;
import org.apache.olingo.client.api.communication.response.ODataDeleteResponse; import org.apache.olingo.client.api.communication.response.ODataDeleteResponse;
import org.apache.olingo.client.api.format.ODataPubFormat; import org.apache.olingo.commons.api.format.ODataPubFormat;
import org.apache.olingo.client.api.http.HttpMethod; import org.apache.olingo.client.api.http.HttpMethod;
import org.apache.olingo.client.core.communication.request.AbstractODataBasicRequest; import org.apache.olingo.client.core.communication.request.AbstractODataBasicRequest;
import org.apache.olingo.client.core.communication.response.AbstractODataResponse; import org.apache.olingo.client.core.communication.response.AbstractODataResponse;

View File

@ -28,8 +28,8 @@ import org.apache.olingo.client.api.CommonODataClient;
import org.apache.olingo.client.api.communication.request.ODataBatchableRequest; import org.apache.olingo.client.api.communication.request.ODataBatchableRequest;
import org.apache.olingo.client.api.communication.request.cud.ODataEntityCreateRequest; import org.apache.olingo.client.api.communication.request.cud.ODataEntityCreateRequest;
import org.apache.olingo.client.api.communication.response.ODataEntityCreateResponse; import org.apache.olingo.client.api.communication.response.ODataEntityCreateResponse;
import org.apache.olingo.client.api.domain.ODataEntity; import org.apache.olingo.commons.api.domain.ODataEntity;
import org.apache.olingo.client.api.format.ODataPubFormat; import org.apache.olingo.commons.api.format.ODataPubFormat;
import org.apache.olingo.client.api.http.HttpMethod; import org.apache.olingo.client.api.http.HttpMethod;
import org.apache.olingo.client.core.uri.URIUtils; import org.apache.olingo.client.core.uri.URIUtils;
import org.apache.olingo.client.core.communication.request.AbstractODataBasicRequest; import org.apache.olingo.client.core.communication.request.AbstractODataBasicRequest;

View File

@ -28,8 +28,8 @@ import org.apache.olingo.client.api.CommonODataClient;
import org.apache.olingo.client.api.communication.request.ODataBatchableRequest; import org.apache.olingo.client.api.communication.request.ODataBatchableRequest;
import org.apache.olingo.client.api.communication.request.cud.ODataEntityUpdateRequest; import org.apache.olingo.client.api.communication.request.cud.ODataEntityUpdateRequest;
import org.apache.olingo.client.api.communication.response.ODataEntityUpdateResponse; import org.apache.olingo.client.api.communication.response.ODataEntityUpdateResponse;
import org.apache.olingo.client.api.domain.ODataEntity; import org.apache.olingo.commons.api.domain.ODataEntity;
import org.apache.olingo.client.api.format.ODataPubFormat; import org.apache.olingo.commons.api.format.ODataPubFormat;
import org.apache.olingo.client.api.http.HttpMethod; import org.apache.olingo.client.api.http.HttpMethod;
import org.apache.olingo.client.core.uri.URIUtils; import org.apache.olingo.client.core.uri.URIUtils;
import org.apache.olingo.client.core.communication.request.AbstractODataBasicRequest; import org.apache.olingo.client.core.communication.request.AbstractODataBasicRequest;

View File

@ -28,8 +28,8 @@ import org.apache.olingo.client.api.CommonODataClient;
import org.apache.olingo.client.api.communication.request.ODataBatchableRequest; import org.apache.olingo.client.api.communication.request.ODataBatchableRequest;
import org.apache.olingo.client.api.communication.request.cud.ODataLinkCreateRequest; import org.apache.olingo.client.api.communication.request.cud.ODataLinkCreateRequest;
import org.apache.olingo.client.api.communication.response.ODataLinkOperationResponse; import org.apache.olingo.client.api.communication.response.ODataLinkOperationResponse;
import org.apache.olingo.client.api.domain.ODataLink; import org.apache.olingo.commons.api.domain.ODataLink;
import org.apache.olingo.client.api.format.ODataFormat; import org.apache.olingo.commons.api.format.ODataFormat;
import org.apache.olingo.client.api.http.HttpMethod; import org.apache.olingo.client.api.http.HttpMethod;
import org.apache.olingo.client.core.uri.URIUtils; import org.apache.olingo.client.core.uri.URIUtils;
import org.apache.olingo.client.core.communication.request.AbstractODataBasicRequest; import org.apache.olingo.client.core.communication.request.AbstractODataBasicRequest;

View File

@ -28,8 +28,8 @@ import org.apache.olingo.client.api.CommonODataClient;
import org.apache.olingo.client.api.communication.request.ODataBatchableRequest; import org.apache.olingo.client.api.communication.request.ODataBatchableRequest;
import org.apache.olingo.client.api.communication.request.cud.ODataLinkUpdateRequest; import org.apache.olingo.client.api.communication.request.cud.ODataLinkUpdateRequest;
import org.apache.olingo.client.api.communication.response.ODataLinkOperationResponse; import org.apache.olingo.client.api.communication.response.ODataLinkOperationResponse;
import org.apache.olingo.client.api.domain.ODataLink; import org.apache.olingo.commons.api.domain.ODataLink;
import org.apache.olingo.client.api.format.ODataFormat; import org.apache.olingo.commons.api.format.ODataFormat;
import org.apache.olingo.client.api.http.HttpMethod; import org.apache.olingo.client.api.http.HttpMethod;
import org.apache.olingo.client.core.uri.URIUtils; import org.apache.olingo.client.core.uri.URIUtils;
import org.apache.olingo.client.core.communication.request.AbstractODataBasicRequest; import org.apache.olingo.client.core.communication.request.AbstractODataBasicRequest;

View File

@ -28,8 +28,8 @@ import org.apache.olingo.client.api.CommonODataClient;
import org.apache.olingo.client.api.communication.request.ODataBatchableRequest; import org.apache.olingo.client.api.communication.request.ODataBatchableRequest;
import org.apache.olingo.client.api.communication.request.cud.ODataPropertyUpdateRequest; import org.apache.olingo.client.api.communication.request.cud.ODataPropertyUpdateRequest;
import org.apache.olingo.client.api.communication.response.ODataPropertyUpdateResponse; import org.apache.olingo.client.api.communication.response.ODataPropertyUpdateResponse;
import org.apache.olingo.client.api.domain.ODataProperty; import org.apache.olingo.commons.api.domain.ODataProperty;
import org.apache.olingo.client.api.format.ODataFormat; import org.apache.olingo.commons.api.format.ODataFormat;
import org.apache.olingo.client.api.http.HttpMethod; import org.apache.olingo.client.api.http.HttpMethod;
import org.apache.olingo.client.core.uri.URIUtils; import org.apache.olingo.client.core.uri.URIUtils;
import org.apache.olingo.client.core.communication.request.AbstractODataBasicRequest; import org.apache.olingo.client.core.communication.request.AbstractODataBasicRequest;

View File

@ -28,8 +28,8 @@ import org.apache.olingo.client.api.CommonODataClient;
import org.apache.olingo.client.api.communication.request.ODataBatchableRequest; import org.apache.olingo.client.api.communication.request.ODataBatchableRequest;
import org.apache.olingo.client.api.communication.request.cud.ODataValueUpdateRequest; import org.apache.olingo.client.api.communication.request.cud.ODataValueUpdateRequest;
import org.apache.olingo.client.api.communication.response.ODataValueUpdateResponse; import org.apache.olingo.client.api.communication.response.ODataValueUpdateResponse;
import org.apache.olingo.client.api.domain.ODataPrimitiveValue; import org.apache.olingo.commons.api.domain.ODataPrimitiveValue;
import org.apache.olingo.client.api.format.ODataValueFormat; import org.apache.olingo.commons.api.format.ODataValueFormat;
import org.apache.olingo.client.api.http.HttpClientException; import org.apache.olingo.client.api.http.HttpClientException;
import org.apache.olingo.client.api.http.HttpMethod; import org.apache.olingo.client.api.http.HttpMethod;
import org.apache.olingo.client.core.uri.URIUtils; import org.apache.olingo.client.core.uri.URIUtils;

View File

@ -22,7 +22,7 @@ import java.net.URI;
import org.apache.olingo.client.api.CommonODataClient; import org.apache.olingo.client.api.CommonODataClient;
import org.apache.olingo.client.api.communication.request.invoke.CommonInvokeRequestFactory; import org.apache.olingo.client.api.communication.request.invoke.CommonInvokeRequestFactory;
import org.apache.olingo.client.api.communication.request.invoke.ODataInvokeRequest; import org.apache.olingo.client.api.communication.request.invoke.ODataInvokeRequest;
import org.apache.olingo.client.api.domain.ODataInvokeResult; import org.apache.olingo.commons.api.domain.ODataInvokeResult;
import org.apache.olingo.commons.api.edm.Edm; import org.apache.olingo.commons.api.edm.Edm;
import org.apache.olingo.commons.api.edm.FullQualifiedName; import org.apache.olingo.commons.api.edm.FullQualifiedName;

View File

@ -35,13 +35,13 @@ import org.apache.olingo.client.api.communication.request.ODataBatchableRequest;
import org.apache.olingo.client.api.communication.request.invoke.ODataInvokeRequest; import org.apache.olingo.client.api.communication.request.invoke.ODataInvokeRequest;
import org.apache.olingo.client.api.communication.request.invoke.ODataNoContent; import org.apache.olingo.client.api.communication.request.invoke.ODataNoContent;
import org.apache.olingo.client.api.communication.response.ODataInvokeResponse; import org.apache.olingo.client.api.communication.response.ODataInvokeResponse;
import org.apache.olingo.client.api.domain.ODataEntity; import org.apache.olingo.commons.api.domain.ODataEntity;
import org.apache.olingo.client.api.domain.ODataEntitySet; import org.apache.olingo.commons.api.domain.ODataEntitySet;
import org.apache.olingo.client.api.domain.ODataInvokeResult; import org.apache.olingo.commons.api.domain.ODataInvokeResult;
import org.apache.olingo.client.api.domain.ODataProperty; import org.apache.olingo.commons.api.domain.ODataProperty;
import org.apache.olingo.client.api.domain.ODataValue; import org.apache.olingo.commons.api.domain.ODataValue;
import org.apache.olingo.client.api.format.ODataFormat; import org.apache.olingo.commons.api.format.ODataFormat;
import org.apache.olingo.client.api.format.ODataPubFormat; import org.apache.olingo.commons.api.format.ODataPubFormat;
import org.apache.olingo.client.api.http.HttpClientException; import org.apache.olingo.client.api.http.HttpClientException;
import org.apache.olingo.client.api.http.HttpMethod; import org.apache.olingo.client.api.http.HttpMethod;
import org.apache.olingo.client.core.uri.URIUtils; import org.apache.olingo.client.core.uri.URIUtils;

View File

@ -25,11 +25,11 @@ import org.apache.olingo.client.api.v3.ODataClient;
import org.apache.olingo.client.api.communication.request.invoke.ODataInvokeRequest; import org.apache.olingo.client.api.communication.request.invoke.ODataInvokeRequest;
import org.apache.olingo.client.api.communication.request.invoke.ODataNoContent; import org.apache.olingo.client.api.communication.request.invoke.ODataNoContent;
import org.apache.olingo.client.api.communication.request.invoke.v3.InvokeRequestFactory; import org.apache.olingo.client.api.communication.request.invoke.v3.InvokeRequestFactory;
import org.apache.olingo.client.api.domain.ODataEntity; import org.apache.olingo.commons.api.domain.ODataEntity;
import org.apache.olingo.client.api.domain.ODataEntitySet; import org.apache.olingo.commons.api.domain.ODataEntitySet;
import org.apache.olingo.client.api.domain.ODataInvokeResult; import org.apache.olingo.commons.api.domain.ODataInvokeResult;
import org.apache.olingo.client.api.domain.ODataProperty; import org.apache.olingo.commons.api.domain.ODataProperty;
import org.apache.olingo.client.api.domain.ODataValue; import org.apache.olingo.commons.api.domain.ODataValue;
import org.apache.olingo.client.api.http.HttpMethod; import org.apache.olingo.client.api.http.HttpMethod;
import org.apache.olingo.client.core.communication.request.invoke.AbstractInvokeRequestFactory; import org.apache.olingo.client.core.communication.request.invoke.AbstractInvokeRequestFactory;
import org.apache.olingo.client.core.communication.request.invoke.ODataInvokeRequestImpl; import org.apache.olingo.client.core.communication.request.invoke.ODataInvokeRequestImpl;

View File

@ -24,8 +24,8 @@ import org.apache.commons.lang3.NotImplementedException;
import org.apache.olingo.client.api.v4.ODataClient; import org.apache.olingo.client.api.v4.ODataClient;
import org.apache.olingo.client.api.communication.request.invoke.ODataInvokeRequest; import org.apache.olingo.client.api.communication.request.invoke.ODataInvokeRequest;
import org.apache.olingo.client.api.communication.request.invoke.v4.InvokeRequestFactory; import org.apache.olingo.client.api.communication.request.invoke.v4.InvokeRequestFactory;
import org.apache.olingo.client.api.domain.ODataInvokeResult; import org.apache.olingo.commons.api.domain.ODataInvokeResult;
import org.apache.olingo.client.api.domain.ODataValue; import org.apache.olingo.commons.api.domain.ODataValue;
import org.apache.olingo.client.core.communication.request.invoke.AbstractInvokeRequestFactory; import org.apache.olingo.client.core.communication.request.invoke.AbstractInvokeRequestFactory;
import org.apache.olingo.commons.api.edm.Edm; import org.apache.olingo.commons.api.edm.Edm;
import org.apache.olingo.commons.api.edm.FullQualifiedName; import org.apache.olingo.commons.api.edm.FullQualifiedName;

View File

@ -26,7 +26,7 @@ import org.apache.olingo.client.api.CommonODataClient;
import org.apache.olingo.client.api.communication.request.ODataBatchableRequest; import org.apache.olingo.client.api.communication.request.ODataBatchableRequest;
import org.apache.olingo.client.api.communication.request.retrieve.ODataRetrieveRequest; import org.apache.olingo.client.api.communication.request.retrieve.ODataRetrieveRequest;
import org.apache.olingo.client.api.communication.response.ODataRetrieveResponse; import org.apache.olingo.client.api.communication.response.ODataRetrieveResponse;
import org.apache.olingo.client.api.format.Format; import org.apache.olingo.commons.api.format.Format;
import org.apache.olingo.client.api.http.HttpMethod; import org.apache.olingo.client.api.http.HttpMethod;
import org.apache.olingo.client.core.communication.request.AbstractODataBasicRequest; import org.apache.olingo.client.core.communication.request.AbstractODataBasicRequest;
import org.apache.olingo.client.core.communication.response.AbstractODataResponse; import org.apache.olingo.client.core.communication.response.AbstractODataResponse;

View File

@ -24,8 +24,8 @@ import org.apache.http.client.HttpClient;
import org.apache.olingo.client.api.CommonODataClient; import org.apache.olingo.client.api.CommonODataClient;
import org.apache.olingo.client.api.communication.request.retrieve.ODataEntityRequest; import org.apache.olingo.client.api.communication.request.retrieve.ODataEntityRequest;
import org.apache.olingo.client.api.communication.response.ODataRetrieveResponse; import org.apache.olingo.client.api.communication.response.ODataRetrieveResponse;
import org.apache.olingo.client.api.domain.ODataEntity; import org.apache.olingo.commons.api.domain.ODataEntity;
import org.apache.olingo.client.api.format.ODataPubFormat; import org.apache.olingo.commons.api.format.ODataPubFormat;
/** /**
* This class implements an OData retrieve query request returning a single entity. * This class implements an OData retrieve query request returning a single entity.

View File

@ -25,7 +25,7 @@ import org.apache.olingo.client.api.CommonODataClient;
import org.apache.olingo.client.api.communication.request.retrieve.ODataEntitySetIteratorRequest; import org.apache.olingo.client.api.communication.request.retrieve.ODataEntitySetIteratorRequest;
import org.apache.olingo.client.api.communication.response.ODataRetrieveResponse; import org.apache.olingo.client.api.communication.response.ODataRetrieveResponse;
import org.apache.olingo.client.api.domain.ODataEntitySetIterator; import org.apache.olingo.client.api.domain.ODataEntitySetIterator;
import org.apache.olingo.client.api.format.ODataPubFormat; import org.apache.olingo.commons.api.format.ODataPubFormat;
/** /**
* This class implements an OData EntitySet query request. * This class implements an OData EntitySet query request.

View File

@ -24,8 +24,8 @@ import org.apache.http.client.HttpClient;
import org.apache.olingo.client.api.CommonODataClient; import org.apache.olingo.client.api.CommonODataClient;
import org.apache.olingo.client.api.communication.request.retrieve.ODataEntitySetRequest; import org.apache.olingo.client.api.communication.request.retrieve.ODataEntitySetRequest;
import org.apache.olingo.client.api.communication.response.ODataRetrieveResponse; import org.apache.olingo.client.api.communication.response.ODataRetrieveResponse;
import org.apache.olingo.client.api.domain.ODataEntitySet; import org.apache.olingo.commons.api.domain.ODataEntitySet;
import org.apache.olingo.client.api.format.ODataPubFormat; import org.apache.olingo.commons.api.format.ODataPubFormat;
/** /**
* This class implements an OData EntitySet query request. * This class implements an OData EntitySet query request.

View File

@ -27,7 +27,7 @@ import org.apache.olingo.client.api.CommonODataClient;
import org.apache.olingo.client.api.communication.header.HeaderName; import org.apache.olingo.client.api.communication.header.HeaderName;
import org.apache.olingo.client.api.communication.request.retrieve.ODataMediaRequest; import org.apache.olingo.client.api.communication.request.retrieve.ODataMediaRequest;
import org.apache.olingo.client.api.communication.response.ODataRetrieveResponse; import org.apache.olingo.client.api.communication.response.ODataRetrieveResponse;
import org.apache.olingo.client.api.format.ODataMediaFormat; import org.apache.olingo.commons.api.format.ODataMediaFormat;
import org.apache.olingo.client.api.http.HttpClientException; import org.apache.olingo.client.api.http.HttpClientException;
/** /**

View File

@ -26,7 +26,7 @@ import org.apache.olingo.client.api.CommonODataClient;
import org.apache.olingo.client.api.communication.request.ODataRequest; import org.apache.olingo.client.api.communication.request.ODataRequest;
import org.apache.olingo.client.api.communication.request.retrieve.ODataMetadataRequest; import org.apache.olingo.client.api.communication.request.retrieve.ODataMetadataRequest;
import org.apache.olingo.client.api.communication.response.ODataRetrieveResponse; import org.apache.olingo.client.api.communication.response.ODataRetrieveResponse;
import org.apache.olingo.client.api.format.ODataPubFormat; import org.apache.olingo.commons.api.format.ODataPubFormat;
import org.apache.olingo.commons.api.edm.Edm; import org.apache.olingo.commons.api.edm.Edm;
/** /**

View File

@ -25,8 +25,8 @@ import org.apache.http.client.HttpClient;
import org.apache.olingo.client.api.CommonODataClient; import org.apache.olingo.client.api.CommonODataClient;
import org.apache.olingo.client.api.communication.request.retrieve.ODataPropertyRequest; import org.apache.olingo.client.api.communication.request.retrieve.ODataPropertyRequest;
import org.apache.olingo.client.api.communication.response.ODataRetrieveResponse; import org.apache.olingo.client.api.communication.response.ODataRetrieveResponse;
import org.apache.olingo.client.api.domain.ODataProperty; import org.apache.olingo.commons.api.domain.ODataProperty;
import org.apache.olingo.client.api.format.ODataFormat; import org.apache.olingo.commons.api.format.ODataFormat;
import org.apache.olingo.client.api.http.HttpClientException; import org.apache.olingo.client.api.http.HttpClientException;
/** /**

View File

@ -27,7 +27,7 @@ import org.apache.http.client.HttpClient;
import org.apache.olingo.client.api.CommonODataClient; import org.apache.olingo.client.api.CommonODataClient;
import org.apache.olingo.client.api.communication.request.retrieve.ODataRawRequest; import org.apache.olingo.client.api.communication.request.retrieve.ODataRawRequest;
import org.apache.olingo.client.api.communication.response.ODataRawResponse; import org.apache.olingo.client.api.communication.response.ODataRawResponse;
import org.apache.olingo.client.api.format.ODataPubFormat; import org.apache.olingo.commons.api.format.ODataPubFormat;
import org.apache.olingo.client.api.http.HttpMethod; import org.apache.olingo.client.api.http.HttpMethod;
import org.apache.olingo.client.core.communication.request.ODataRequestImpl; import org.apache.olingo.client.core.communication.request.ODataRequestImpl;
import org.apache.olingo.client.core.communication.response.AbstractODataResponse; import org.apache.olingo.client.core.communication.response.AbstractODataResponse;

View File

@ -24,8 +24,8 @@ import org.apache.http.client.HttpClient;
import org.apache.olingo.client.api.CommonODataClient; import org.apache.olingo.client.api.CommonODataClient;
import org.apache.olingo.client.api.communication.request.retrieve.ODataServiceDocumentRequest; import org.apache.olingo.client.api.communication.request.retrieve.ODataServiceDocumentRequest;
import org.apache.olingo.client.api.communication.response.ODataRetrieveResponse; import org.apache.olingo.client.api.communication.response.ODataRetrieveResponse;
import org.apache.olingo.client.api.domain.ODataServiceDocument; import org.apache.olingo.commons.api.domain.ODataServiceDocument;
import org.apache.olingo.client.api.format.ODataFormat; import org.apache.olingo.commons.api.format.ODataFormat;
/** /**
* This class implements an OData service document request. * This class implements an OData service document request.

View File

@ -25,8 +25,8 @@ import org.apache.http.client.HttpClient;
import org.apache.olingo.client.api.CommonODataClient; import org.apache.olingo.client.api.CommonODataClient;
import org.apache.olingo.client.api.communication.request.retrieve.ODataValueRequest; import org.apache.olingo.client.api.communication.request.retrieve.ODataValueRequest;
import org.apache.olingo.client.api.communication.response.ODataRetrieveResponse; import org.apache.olingo.client.api.communication.response.ODataRetrieveResponse;
import org.apache.olingo.client.api.domain.ODataPrimitiveValue; import org.apache.olingo.commons.api.domain.ODataPrimitiveValue;
import org.apache.olingo.client.api.format.ODataValueFormat; import org.apache.olingo.commons.api.format.ODataValueFormat;
import org.apache.olingo.client.api.http.HttpClientException; import org.apache.olingo.client.api.http.HttpClientException;
import org.apache.olingo.client.core.domain.ODataPrimitiveValueImpl; import org.apache.olingo.client.core.domain.ODataPrimitiveValueImpl;
import org.apache.olingo.commons.api.edm.EdmPrimitiveTypeKind; import org.apache.olingo.commons.api.edm.EdmPrimitiveTypeKind;

View File

@ -26,7 +26,7 @@ import org.apache.olingo.client.api.v3.ODataClient;
import org.apache.olingo.client.api.communication.request.retrieve.v3.ODataLinkCollectionRequest; import org.apache.olingo.client.api.communication.request.retrieve.v3.ODataLinkCollectionRequest;
import org.apache.olingo.client.api.communication.response.ODataRetrieveResponse; import org.apache.olingo.client.api.communication.response.ODataRetrieveResponse;
import org.apache.olingo.client.api.domain.v3.ODataLinkCollection; import org.apache.olingo.client.api.domain.v3.ODataLinkCollection;
import org.apache.olingo.client.api.format.ODataFormat; import org.apache.olingo.commons.api.format.ODataFormat;
import org.apache.olingo.client.api.http.HttpClientException; import org.apache.olingo.client.api.http.HttpClientException;
import org.apache.olingo.client.core.communication.request.retrieve.AbstractODataRetrieveRequest; import org.apache.olingo.client.core.communication.request.retrieve.AbstractODataRetrieveRequest;

View File

@ -23,7 +23,7 @@ import org.apache.olingo.client.api.CommonODataClient;
import org.apache.olingo.client.api.communication.request.ODataStreamManager; import org.apache.olingo.client.api.communication.request.ODataStreamManager;
import org.apache.olingo.client.api.communication.request.streamed.ODataStreamedEntityRequest; import org.apache.olingo.client.api.communication.request.streamed.ODataStreamedEntityRequest;
import org.apache.olingo.client.api.communication.response.ODataResponse; import org.apache.olingo.client.api.communication.response.ODataResponse;
import org.apache.olingo.client.api.format.ODataPubFormat; import org.apache.olingo.commons.api.format.ODataPubFormat;
import org.apache.olingo.client.api.http.HttpMethod; import org.apache.olingo.client.api.http.HttpMethod;
/** /**

View File

@ -34,7 +34,7 @@ import org.apache.olingo.client.api.communication.request.ODataStreamedRequest;
import org.apache.olingo.client.api.communication.request.ODataStreamer; import org.apache.olingo.client.api.communication.request.ODataStreamer;
import org.apache.olingo.client.api.communication.request.batch.ODataBatchRequest; import org.apache.olingo.client.api.communication.request.batch.ODataBatchRequest;
import org.apache.olingo.client.api.communication.response.ODataResponse; import org.apache.olingo.client.api.communication.response.ODataResponse;
import org.apache.olingo.client.api.format.ODataMediaFormat; import org.apache.olingo.commons.api.format.ODataMediaFormat;
import org.apache.olingo.client.api.http.HttpMethod; import org.apache.olingo.client.api.http.HttpMethod;
import org.apache.olingo.client.core.uri.URIUtils; import org.apache.olingo.client.core.uri.URIUtils;
import org.apache.olingo.client.core.communication.request.Wrapper; import org.apache.olingo.client.core.communication.request.Wrapper;

View File

@ -28,7 +28,7 @@ import org.apache.olingo.client.api.communication.request.ODataBatchableRequest;
import org.apache.olingo.client.api.communication.request.streamed.MediaEntityCreateStreamManager; import org.apache.olingo.client.api.communication.request.streamed.MediaEntityCreateStreamManager;
import org.apache.olingo.client.api.communication.request.streamed.ODataMediaEntityCreateRequest; import org.apache.olingo.client.api.communication.request.streamed.ODataMediaEntityCreateRequest;
import org.apache.olingo.client.api.communication.response.ODataMediaEntityCreateResponse; import org.apache.olingo.client.api.communication.response.ODataMediaEntityCreateResponse;
import org.apache.olingo.client.api.domain.ODataEntity; import org.apache.olingo.commons.api.domain.ODataEntity;
import org.apache.olingo.client.api.http.HttpMethod; import org.apache.olingo.client.api.http.HttpMethod;
import org.apache.olingo.client.core.communication.request.AbstractODataStreamManager; import org.apache.olingo.client.core.communication.request.AbstractODataStreamManager;
import org.apache.olingo.client.core.communication.response.AbstractODataResponse; import org.apache.olingo.client.core.communication.response.AbstractODataResponse;

View File

@ -28,7 +28,7 @@ import org.apache.olingo.client.api.communication.request.ODataBatchableRequest;
import org.apache.olingo.client.api.communication.request.streamed.MediaEntityUpdateStreamManager; import org.apache.olingo.client.api.communication.request.streamed.MediaEntityUpdateStreamManager;
import org.apache.olingo.client.api.communication.request.streamed.ODataMediaEntityUpdateRequest; import org.apache.olingo.client.api.communication.request.streamed.ODataMediaEntityUpdateRequest;
import org.apache.olingo.client.api.communication.response.ODataMediaEntityUpdateResponse; import org.apache.olingo.client.api.communication.response.ODataMediaEntityUpdateResponse;
import org.apache.olingo.client.api.domain.ODataEntity; import org.apache.olingo.commons.api.domain.ODataEntity;
import org.apache.olingo.client.api.http.HttpMethod; import org.apache.olingo.client.api.http.HttpMethod;
import org.apache.olingo.client.core.communication.request.AbstractODataStreamManager; import org.apache.olingo.client.core.communication.request.AbstractODataStreamManager;
import org.apache.olingo.client.core.communication.response.AbstractODataResponse; import org.apache.olingo.client.core.communication.response.AbstractODataResponse;

View File

@ -25,7 +25,7 @@ import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.NoSuchElementException; import java.util.NoSuchElementException;
import org.apache.commons.io.IOUtils; import org.apache.commons.io.IOUtils;
import org.apache.olingo.client.api.Constants; import org.apache.olingo.commons.api.Constants;
import org.apache.olingo.client.api.communication.header.HeaderName; import org.apache.olingo.client.api.communication.header.HeaderName;
import org.apache.olingo.client.api.communication.request.batch.ODataBatchLineIterator; import org.apache.olingo.client.api.communication.request.batch.ODataBatchLineIterator;
import org.apache.olingo.client.api.communication.request.batch.ODataBatchResponseItem; import org.apache.olingo.client.api.communication.request.batch.ODataBatchResponseItem;

View File

@ -28,8 +28,9 @@ import java.io.IOException;
import java.util.Iterator; import java.util.Iterator;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.olingo.client.api.Constants; import org.apache.olingo.commons.api.Constants;
import org.apache.olingo.commons.api.edm.constants.ODataServiceVersion; import org.apache.olingo.commons.api.edm.constants.ODataServiceVersion;
import org.apache.olingo.commons.core.data.ODataJacksonDeserializer;
public class JSONServiceDocumentDeserializer extends ODataJacksonDeserializer<AbstractServiceDocument> { public class JSONServiceDocumentDeserializer extends ODataJacksonDeserializer<AbstractServiceDocument> {
@ -39,7 +40,7 @@ public class JSONServiceDocumentDeserializer extends ODataJacksonDeserializer<Ab
final ObjectNode tree = (ObjectNode) parser.getCodec().readTree(parser); final ObjectNode tree = (ObjectNode) parser.getCodec().readTree(parser);
final AbstractServiceDocument serviceDocument = ODataServiceVersion.V30 == client.getServiceVersion() final AbstractServiceDocument serviceDocument = ODataServiceVersion.V30 == version
? new org.apache.olingo.client.core.data.v3.JSONServiceDocumentImpl() ? new org.apache.olingo.client.core.data.v3.JSONServiceDocumentImpl()
: new org.apache.olingo.client.core.data.v4.JSONServiceDocumentImpl(); : new org.apache.olingo.client.core.data.v4.JSONServiceDocumentImpl();

View File

@ -18,6 +18,7 @@
*/ */
package org.apache.olingo.client.core.data; package org.apache.olingo.client.core.data;
import org.apache.olingo.commons.core.data.ODataJacksonDeserializer;
import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.JsonToken; import com.fasterxml.jackson.core.JsonToken;
@ -69,7 +70,7 @@ public class XMLServiceDocumentDeserializer extends ODataJacksonDeserializer<Ser
protected ServiceDocument doDeserialize(final JsonParser jp, final DeserializationContext ctxt) protected ServiceDocument doDeserialize(final JsonParser jp, final DeserializationContext ctxt)
throws IOException, JsonProcessingException { throws IOException, JsonProcessingException {
final AbstractServiceDocument sdoc = ODataServiceVersion.V30 == client.getServiceVersion() final AbstractServiceDocument sdoc = ODataServiceVersion.V30 == version
? new org.apache.olingo.client.core.data.v3.XMLServiceDocumentImpl() ? new org.apache.olingo.client.core.data.v3.XMLServiceDocumentImpl()
: new org.apache.olingo.client.core.data.v4.XMLServiceDocumentImpl(); : new org.apache.olingo.client.core.data.v4.XMLServiceDocumentImpl();

View File

@ -22,9 +22,9 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import java.net.URI; import java.net.URI;
import org.apache.olingo.client.api.uri.SegmentType;
import org.apache.olingo.client.core.data.AbstractServiceDocument; import org.apache.olingo.client.core.data.AbstractServiceDocument;
import org.apache.olingo.client.core.data.JSONServiceDocumentDeserializer; import org.apache.olingo.client.core.data.JSONServiceDocumentDeserializer;
import org.apache.olingo.commons.api.Constants;
/** /**
* Service document, represented via JSON. * Service document, represented via JSON.
@ -41,7 +41,7 @@ public class JSONServiceDocumentImpl extends AbstractServiceDocument {
URI baseURI = null; URI baseURI = null;
if (metadata != null) { if (metadata != null) {
final String metadataURI = getMetadata(); final String metadataURI = getMetadata();
baseURI = URI.create(metadataURI.substring(0, metadataURI.indexOf(SegmentType.METADATA.getValue()))); baseURI = URI.create(metadataURI.substring(0, metadataURI.indexOf(Constants.METADATA)));
} }
return baseURI; return baseURI;

View File

@ -19,12 +19,12 @@
package org.apache.olingo.client.core.data.v4; package org.apache.olingo.client.core.data.v4;
import org.apache.olingo.client.api.data.ServiceDocument; import org.apache.olingo.client.api.data.ServiceDocument;
import org.apache.olingo.client.api.uri.SegmentType;
import org.apache.olingo.client.core.data.JSONServiceDocumentDeserializer; import org.apache.olingo.client.core.data.JSONServiceDocumentDeserializer;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import java.net.URI; import java.net.URI;
import org.apache.olingo.commons.api.Constants;
@JsonDeserialize(using = JSONServiceDocumentDeserializer.class) @JsonDeserialize(using = JSONServiceDocumentDeserializer.class)
public class JSONServiceDocumentImpl extends AbstractServiceDocument implements ServiceDocument { public class JSONServiceDocumentImpl extends AbstractServiceDocument implements ServiceDocument {
@ -34,7 +34,7 @@ public class JSONServiceDocumentImpl extends AbstractServiceDocument implements
URI baseURI = null; URI baseURI = null;
if (getMetadataContext() != null) { if (getMetadataContext() != null) {
final String metadataURI = getMetadataContext(); final String metadataURI = getMetadataContext();
baseURI = URI.create(metadataURI.substring(0, metadataURI.indexOf(SegmentType.METADATA.getValue()))); baseURI = URI.create(metadataURI.substring(0, metadataURI.indexOf(Constants.METADATA)));
} }
return baseURI; return baseURI;

View File

@ -20,8 +20,8 @@ package org.apache.olingo.client.core.domain;
import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.olingo.client.api.domain.AbstractODataValue; import org.apache.olingo.commons.api.domain.AbstractODataValue;
import org.apache.olingo.client.api.domain.ODataGeospatialValue; import org.apache.olingo.commons.api.domain.ODataGeospatialValue;
import org.apache.olingo.commons.api.edm.EdmGeospatialType; import org.apache.olingo.commons.api.edm.EdmGeospatialType;
import org.apache.olingo.commons.api.edm.EdmPrimitiveTypeKind; import org.apache.olingo.commons.api.edm.EdmPrimitiveTypeKind;
import org.apache.olingo.commons.api.edm.geo.Geospatial; import org.apache.olingo.commons.api.edm.geo.Geospatial;

View File

@ -22,8 +22,9 @@ import java.sql.Timestamp;
import java.util.Calendar; import java.util.Calendar;
import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.olingo.client.api.domain.AbstractODataValue; import org.apache.olingo.commons.api.Constants;
import org.apache.olingo.client.api.domain.ODataPrimitiveValue; import org.apache.olingo.commons.api.domain.AbstractODataValue;
import org.apache.olingo.commons.api.domain.ODataPrimitiveValue;
import org.apache.olingo.commons.api.edm.EdmPrimitiveType; import org.apache.olingo.commons.api.edm.EdmPrimitiveType;
import org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException; import org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException;
import org.apache.olingo.commons.api.edm.EdmPrimitiveTypeKind; import org.apache.olingo.commons.api.edm.EdmPrimitiveTypeKind;
@ -96,7 +97,8 @@ public class ODataPrimitiveValueImpl extends AbstractODataValue implements OData
try { try {
// TODO: when Edm is available, set facets when calling this method // TODO: when Edm is available, set facets when calling this method
this.instance.value = this.instance.type.valueOfString( this.instance.value = this.instance.type.valueOfString(
this.instance.text, null, null, 40, 25, null, returnType); this.instance.text, null, null, Constants.DEFAULT_PRECISION, Constants.DEFAULT_SCALE, null,
returnType);
} catch (EdmPrimitiveTypeException e) { } catch (EdmPrimitiveTypeException e) {
throw new IllegalArgumentException(e); throw new IllegalArgumentException(e);
} }
@ -105,7 +107,7 @@ public class ODataPrimitiveValueImpl extends AbstractODataValue implements OData
try { try {
// TODO: when Edm is available, set facets when calling this method // TODO: when Edm is available, set facets when calling this method
this.instance.text = this.instance.type.valueToString( this.instance.text = this.instance.type.valueToString(
this.instance.value, null, null, 40, 25, null); this.instance.value, null, null, Constants.DEFAULT_PRECISION, Constants.DEFAULT_SCALE, null);
} catch (EdmPrimitiveTypeException e) { } catch (EdmPrimitiveTypeException e) {
throw new IllegalArgumentException(e); throw new IllegalArgumentException(e);
} }
@ -153,7 +155,8 @@ public class ODataPrimitiveValueImpl extends AbstractODataValue implements OData
@Override @Override
public <T> T toCastValue(final Class<T> reference) throws EdmPrimitiveTypeException { public <T> T toCastValue(final Class<T> reference) throws EdmPrimitiveTypeException {
// TODO: when Edm is available, set facets when calling this method // TODO: when Edm is available, set facets when calling this method
return type.valueOfString(this.text, null, null, 40, 25, null, reference); return type.valueOfString(this.text, null, null, Constants.DEFAULT_PRECISION, Constants.DEFAULT_SCALE, null,
reference);
} }
@Override @Override

View File

@ -19,6 +19,7 @@
package org.apache.olingo.client.core.edm; package org.apache.olingo.client.core.edm;
import org.apache.olingo.client.api.edm.xml.v4.ActionImport; import org.apache.olingo.client.api.edm.xml.v4.ActionImport;
import org.apache.olingo.commons.core.edm.EdmTypeInfo;
import org.apache.olingo.commons.api.edm.Edm; import org.apache.olingo.commons.api.edm.Edm;
import org.apache.olingo.commons.api.edm.EdmAction; import org.apache.olingo.commons.api.edm.EdmAction;
import org.apache.olingo.commons.api.edm.EdmActionImport; import org.apache.olingo.commons.api.edm.EdmActionImport;
@ -40,5 +41,4 @@ public class EdmActionImportImpl extends EdmOperationImportImpl implements EdmAc
return edm.getAction(new EdmTypeInfo.Builder().setEdm(edm).setTypeExpression(actionImport.getAction()). return edm.getAction(new EdmTypeInfo.Builder().setEdm(edm).setTypeExpression(actionImport.getAction()).
setDefaultNamespace(container.getNamespace()).build().getFullQualifiedName(), null, null); setDefaultNamespace(container.getNamespace()).build().getFullQualifiedName(), null, null);
} }
} }

View File

@ -18,6 +18,7 @@
*/ */
package org.apache.olingo.client.core.edm; package org.apache.olingo.client.core.edm;
import org.apache.olingo.commons.core.edm.EdmTypeInfo;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.HashSet; import java.util.HashSet;

View File

@ -18,6 +18,7 @@
*/ */
package org.apache.olingo.client.core.edm; package org.apache.olingo.client.core.edm;
import org.apache.olingo.commons.core.edm.EdmTypeInfo;
import java.util.Map; import java.util.Map;
import org.apache.olingo.client.api.edm.xml.ComplexType; import org.apache.olingo.client.api.edm.xml.ComplexType;
import org.apache.olingo.commons.api.edm.Edm; import org.apache.olingo.commons.api.edm.Edm;

View File

@ -18,6 +18,7 @@
*/ */
package org.apache.olingo.client.core.edm; package org.apache.olingo.client.core.edm;
import org.apache.olingo.commons.core.edm.EdmTypeInfo;
import java.util.List; import java.util.List;
import org.apache.olingo.client.api.v3.UnsupportedInV3Exception; import org.apache.olingo.client.api.v3.UnsupportedInV3Exception;

View File

@ -18,6 +18,7 @@
*/ */
package org.apache.olingo.client.core.edm; package org.apache.olingo.client.core.edm;
import org.apache.olingo.commons.core.edm.EdmTypeInfo;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;

View File

@ -18,6 +18,7 @@
*/ */
package org.apache.olingo.client.core.edm; package org.apache.olingo.client.core.edm;
import org.apache.olingo.commons.core.edm.EdmTypeInfo;
import java.util.List; import java.util.List;
import org.apache.olingo.client.api.edm.xml.v4.FunctionImport; import org.apache.olingo.client.api.edm.xml.v4.FunctionImport;

View File

@ -18,6 +18,7 @@
*/ */
package org.apache.olingo.client.core.edm; package org.apache.olingo.client.core.edm;
import org.apache.olingo.commons.core.edm.EdmTypeInfo;
import java.util.List; import java.util.List;
import org.apache.olingo.client.api.edm.xml.v4.NavigationProperty; import org.apache.olingo.client.api.edm.xml.v4.NavigationProperty;

View File

@ -18,6 +18,7 @@
*/ */
package org.apache.olingo.client.core.edm; package org.apache.olingo.client.core.edm;
import org.apache.olingo.commons.core.edm.EdmTypeInfo;
import org.apache.olingo.client.api.edm.xml.CommonParameter; import org.apache.olingo.client.api.edm.xml.CommonParameter;
import org.apache.olingo.commons.api.edm.Edm; import org.apache.olingo.commons.api.edm.Edm;
import org.apache.olingo.commons.api.edm.EdmMapping; import org.apache.olingo.commons.api.edm.EdmMapping;

View File

@ -18,6 +18,7 @@
*/ */
package org.apache.olingo.client.core.edm; package org.apache.olingo.client.core.edm;
import org.apache.olingo.commons.core.edm.EdmTypeInfo;
import org.apache.olingo.client.api.edm.xml.CommonProperty; import org.apache.olingo.client.api.edm.xml.CommonProperty;
import org.apache.olingo.commons.api.edm.Edm; import org.apache.olingo.commons.api.edm.Edm;
import org.apache.olingo.commons.api.edm.EdmMapping; import org.apache.olingo.commons.api.edm.EdmMapping;

View File

@ -18,6 +18,7 @@
*/ */
package org.apache.olingo.client.core.edm; package org.apache.olingo.client.core.edm;
import org.apache.olingo.commons.core.edm.EdmTypeInfo;
import org.apache.olingo.client.api.edm.xml.v4.ReturnType; import org.apache.olingo.client.api.edm.xml.v4.ReturnType;
import org.apache.olingo.commons.api.edm.Edm; import org.apache.olingo.commons.api.edm.Edm;
import org.apache.olingo.commons.core.edm.AbstractEdmReturnType; import org.apache.olingo.commons.core.edm.AbstractEdmReturnType;

View File

@ -20,7 +20,7 @@ package org.apache.olingo.client.core.edm.v3;
import org.apache.olingo.client.api.edm.xml.v3.FunctionImport; import org.apache.olingo.client.api.edm.xml.v3.FunctionImport;
import org.apache.olingo.client.core.edm.EdmOperationImportImpl; import org.apache.olingo.client.core.edm.EdmOperationImportImpl;
import org.apache.olingo.client.core.edm.EdmTypeInfo; import org.apache.olingo.commons.core.edm.EdmTypeInfo;
import org.apache.olingo.commons.api.edm.Edm; import org.apache.olingo.commons.api.edm.Edm;
import org.apache.olingo.commons.api.edm.EdmAction; import org.apache.olingo.commons.api.edm.EdmAction;
import org.apache.olingo.commons.api.edm.EdmActionImport; import org.apache.olingo.commons.api.edm.EdmActionImport;

View File

@ -22,7 +22,7 @@ import java.util.List;
import org.apache.olingo.client.api.edm.xml.v3.FunctionImport; import org.apache.olingo.client.api.edm.xml.v3.FunctionImport;
import org.apache.olingo.client.core.edm.EdmOperationImportImpl; import org.apache.olingo.client.core.edm.EdmOperationImportImpl;
import org.apache.olingo.client.core.edm.EdmTypeInfo; import org.apache.olingo.commons.core.edm.EdmTypeInfo;
import org.apache.olingo.commons.api.edm.Edm; import org.apache.olingo.commons.api.edm.Edm;
import org.apache.olingo.commons.api.edm.EdmEntityContainer; import org.apache.olingo.commons.api.edm.EdmEntityContainer;
import org.apache.olingo.commons.api.edm.EdmFunction; import org.apache.olingo.commons.api.edm.EdmFunction;

View File

@ -23,7 +23,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import org.apache.olingo.client.api.edm.xml.CommonNavigationProperty; import org.apache.olingo.client.api.edm.xml.CommonNavigationProperty;
import org.apache.olingo.client.api.edm.xml.CommonProperty; import org.apache.olingo.client.api.edm.xml.CommonProperty;
import org.apache.olingo.client.api.edm.xml.ComplexType; import org.apache.olingo.client.api.edm.xml.ComplexType;
import org.apache.olingo.client.core.op.impl.ComplexTypeDeserializer;
@JsonDeserialize(using = ComplexTypeDeserializer.class) @JsonDeserialize(using = ComplexTypeDeserializer.class)
public abstract class AbstractComplexType extends AbstractEdmItem implements ComplexType { public abstract class AbstractComplexType extends AbstractEdmItem implements ComplexType {

View File

@ -16,7 +16,7 @@
* specific language governing permissions and limitations * specific language governing permissions and limitations
* under the License. * under the License.
*/ */
package org.apache.olingo.client.core.op.impl; package org.apache.olingo.client.core.edm.xml;
import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonProcessingException;
@ -26,13 +26,13 @@ import com.fasterxml.jackson.dataformat.xml.deser.FromXmlParser;
import java.io.IOException; import java.io.IOException;
import org.apache.olingo.client.api.CommonODataClient;
import org.apache.olingo.client.core.edm.xml.v4.ReturnTypeImpl; import org.apache.olingo.client.core.edm.xml.v4.ReturnTypeImpl;
import org.apache.olingo.client.core.edm.xml.v4.annotation.ConstExprConstructImpl; import org.apache.olingo.client.core.edm.xml.v4.annotation.ConstExprConstructImpl;
import org.apache.olingo.commons.api.edm.constants.ODataServiceVersion;
public abstract class AbstractEdmDeserializer<T> extends JsonDeserializer<T> { public abstract class AbstractEdmDeserializer<T> extends JsonDeserializer<T> {
protected CommonODataClient client; protected ODataServiceVersion version;
protected boolean isAnnotationConstExprConstruct(final JsonParser jp) throws IOException { protected boolean isAnnotationConstExprConstruct(final JsonParser jp) throws IOException {
return ConstExprConstructImpl.Type.fromString(jp.getCurrentName()) != null; return ConstExprConstructImpl.Type.fromString(jp.getCurrentName()) != null;
@ -52,7 +52,7 @@ public abstract class AbstractEdmDeserializer<T> extends JsonDeserializer<T> {
returnType.setType(jp.nextTextValue()); returnType.setType(jp.nextTextValue());
} else { } else {
jp.nextToken(); jp.nextToken();
returnType = jp.readValueAs( ReturnTypeImpl.class); returnType = jp.readValueAs(ReturnTypeImpl.class);
} }
return returnType; return returnType;
} }
@ -64,7 +64,7 @@ public abstract class AbstractEdmDeserializer<T> extends JsonDeserializer<T> {
public T deserialize(final JsonParser jp, final DeserializationContext ctxt) public T deserialize(final JsonParser jp, final DeserializationContext ctxt)
throws IOException, JsonProcessingException { throws IOException, JsonProcessingException {
client = (CommonODataClient) ctxt.findInjectableValue(CommonODataClient.class.getName(), null, null); version = (ODataServiceVersion) ctxt.findInjectableValue(ODataServiceVersion.class.getName(), null, null);
return doDeserialize(jp, ctxt); return doDeserialize(jp, ctxt);
} }

View File

@ -25,7 +25,6 @@ import java.util.List;
import org.apache.olingo.client.api.edm.xml.CommonFunctionImport; import org.apache.olingo.client.api.edm.xml.CommonFunctionImport;
import org.apache.olingo.client.api.edm.xml.EntityContainer; import org.apache.olingo.client.api.edm.xml.EntityContainer;
import org.apache.olingo.client.api.edm.xml.EntitySet; import org.apache.olingo.client.api.edm.xml.EntitySet;
import org.apache.olingo.client.core.op.impl.EntityContainerDeserializer;
@JsonDeserialize(using = EntityContainerDeserializer.class) @JsonDeserialize(using = EntityContainerDeserializer.class)
public abstract class AbstractEntityContainer extends AbstractEdmItem implements EntityContainer { public abstract class AbstractEntityContainer extends AbstractEdmItem implements EntityContainer {

View File

@ -21,7 +21,6 @@ package org.apache.olingo.client.core.edm.xml;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import org.apache.olingo.client.api.edm.xml.EntitySet; import org.apache.olingo.client.api.edm.xml.EntitySet;
import org.apache.olingo.client.core.op.impl.EntitySetDeserializer;
@JsonDeserialize(using = EntitySetDeserializer.class) @JsonDeserialize(using = EntitySetDeserializer.class)
public abstract class AbstractEntitySet extends AbstractEdmItem implements EntitySet { public abstract class AbstractEntitySet extends AbstractEdmItem implements EntitySet {

View File

@ -22,7 +22,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import org.apache.olingo.client.api.edm.xml.EntityKey; import org.apache.olingo.client.api.edm.xml.EntityKey;
import org.apache.olingo.client.api.edm.xml.EntityType; import org.apache.olingo.client.api.edm.xml.EntityType;
import org.apache.olingo.client.core.op.impl.EntityTypeDeserializer;
@JsonDeserialize(using = EntityTypeDeserializer.class) @JsonDeserialize(using = EntityTypeDeserializer.class)
public abstract class AbstractEntityType extends AbstractComplexType implements EntityType { public abstract class AbstractEntityType extends AbstractComplexType implements EntityType {

Some files were not shown because too many files have changed in this diff Show More