Skip to content
This repository was archived by the owner on Jun 18, 2024. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
ef48c97
Minimal changes to get compiling under JDK 11
pete-woods Nov 5, 2018
629eaf8
Try some CI
pete-woods Nov 5, 2018
b877f12
Update group ID
pete-woods Nov 5, 2018
ad6d491
Will it build?
pete-woods Nov 5, 2018
96a090d
Revert back to Java 1.8
pete-woods Jan 9, 2019
2ebe74e
Support reading well known folder name
pete-woods Jan 9, 2019
bd74b65
Fix XML reading bug for Folder old IDs
pete-woods Jan 9, 2019
acb5432
More friendly event constructors for testing
pete-woods Jan 9, 2019
85d917e
Support injecting an external http client
pete-woods Jan 9, 2019
7309f55
Release version 2.1
pete-woods Jan 9, 2019
11ddd6d
Resume building JavaDoc
pete-woods Jan 9, 2019
5093d55
GPG sign builds
pete-woods Jan 9, 2019
1429e03
Update version for next release
pete-woods Jan 9, 2019
8029194
Fix HttpClient init bugs
pete-woods Jan 16, 2019
2ff0f38
Make GetEventsResults getters public
pete-woods Jan 16, 2019
7dd9eff
Release version 2.2
pete-woods Jan 16, 2019
4a162b3
Bump version for next release
pete-woods Jan 18, 2019
904cbc6
iCalUID is in-fact settable
pete-woods Jan 18, 2019
a773155
Setter for MyResponseType
pete-woods Jan 21, 2019
d9dbde6
Add IsOrganizer property
pete-woods Jan 21, 2019
fc48e0f
Release 2.3
pete-woods Jan 22, 2019
3c76eb4
Bump version for next set of development
pete-woods Jan 31, 2019
4798fb9
Read MeetingResponse properties
pete-woods Jan 31, 2019
07e1196
Follow patterns
pete-woods Jan 31, 2019
77c23af
Fix build errors on JDK 11
pete-woods Feb 1, 2019
973587b
More getters and setters
pete-woods Feb 1, 2019
366d9e6
Add proposed start/end date to calendar response
pete-woods Feb 6, 2019
a424b57
AllDayEvent is optional for meeting requests
pete-woods Feb 6, 2019
d349363
Schema consistency
pete-woods Feb 6, 2019
3e1b898
Release 2.4
pete-woods Feb 6, 2019
d701c16
Start version 2.5
pete-woods Feb 7, 2019
e727306
We only need to set the credentials provider if it's not already set
pete-woods Feb 7, 2019
057b54e
Lazily initialize HttpClientContext
pete-woods Feb 7, 2019
e33d05c
Some more setters
pete-woods Feb 8, 2019
a3dd375
Release 2.5
pete-woods Feb 8, 2019
3b9837d
Prepare for release 2.6
pete-woods Feb 22, 2019
a8d8c0d
Attachment WIP
pete-woods Feb 22, 2019
7d6d164
Fixes AllowNewTimeProposal permitted states
Feb 25, 2019
bf13573
Merge pull request #1 from surevine/AllowNewTimeProposal
pete-woods Feb 26, 2019
d35bc28
Prepare for 2.7
pete-woods Feb 26, 2019
feb68bc
Export / Upload API
pete-woods Feb 27, 2019
15acb29
Merge pull request #2 from surevine/upload-export-items
pete-woods Feb 28, 2019
a23317e
Release 2.7
pete-woods Feb 28, 2019
0ec2d30
Prepare for next release
pete-woods Mar 4, 2019
12e1174
Throw exceptions on failed upload/export requests
pete-woods Mar 4, 2019
fdec484
Version 2.8
pete-woods Mar 4, 2019
577fadd
Version bump
DominicLavery Mar 7, 2019
258b8c3
Set the namespace correctly on item IDs returned from the upload/expo…
pete-woods Mar 7, 2019
a7b84b1
Release 2.9
pete-woods Mar 7, 2019
dec8153
Prepare for next release
pete-woods Mar 7, 2019
21a1ab8
Add externalContacts to the wellKnownFolderName enum
DominicLavery Mar 8, 2019
3f0f785
Release 2.10
DominicLavery Mar 8, 2019
ac73cdb
Prepare for next release
pete-woods Mar 14, 2019
0bb3a9c
Don't thrash byte arrays around so much
pete-woods Mar 14, 2019
592942c
Release version 2.11
pete-woods Mar 14, 2019
5e232d1
Prepare for 2.12 release
pete-woods Apr 12, 2019
ea8614d
Update readme.md
pete-woods Apr 12, 2019
62d32b5
Add service request listener for better tracing
pete-woods Apr 30, 2019
2ce2fd9
Merge pull request #3 from surevine/add-tracer
pete-woods Apr 30, 2019
ba78fd4
Release 2.12
pete-woods Apr 30, 2019
571ef6d
Prepare for next release
pete-woods Apr 30, 2019
304a14c
Add option to use global HTTP cookie store
pete-woods May 7, 2019
8851252
Merge pull request #4 from surevine/add-global-cookie-option
hywelbennett May 7, 2019
8a9d727
Release 2.13
pete-woods May 7, 2019
cc090e0
Prepare for next release
pete-woods May 7, 2019
a93b464
Make it easier to create a new item just for making updates
pete-woods May 10, 2019
5547a1a
Merge pull request #5 from surevine/no-get-required
pete-woods May 10, 2019
d24090a
Release 2.14
pete-woods May 10, 2019
2bc37fe
Prepare for next release
pete-woods May 14, 2019
ad4a125
Update readme.md
pete-woods May 14, 2019
3847beb
Update readme.md
pete-woods May 14, 2019
9e7a89b
Adds toString() to request Item wrappers
May 20, 2019
a28132a
Merge pull request #6 from surevine/tostring-requests
pete-woods May 20, 2019
0828c68
Release 2.15
pete-woods May 20, 2019
49b1ad5
Prepare for next release
pete-woods May 20, 2019
733cf7a
Set Jenv Java version to 1.8
pete-woods May 29, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
version: 2
jobs:
build:
docker:
# specify the version you desire here
- image: circleci/openjdk:11-jdk

working_directory: ~/repo

environment:
# Customize the JVM maximum heap limit
MAVEN_OPTS: -Xmx3200m

steps:
- checkout

# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "pom.xml" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- run: mvn dependency:go-offline

- save_cache:
paths:
- ~/.m2
key: v1-dependencies-{{ checksum "pom.xml" }}

# deploy
- run: >
if [ "${CIRCLE_BRANCH}" = 'master' ] ; then
echo "${MAVEN_CENTRAL_GPG_KEY}" | base64 --decode | gpg --import --no-tty --batch --yes
mvn deploy -s .circleci/settings.xml -Dgpg.passphrase="${MAVEN_CENTRAL_GPG_PASSPHRASE}"
else
mvn package
fi

14 changes: 14 additions & 0 deletions .circleci/settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>ossrh-snapshot</id>
<username>surevine</username>
<password>${env.MAVEN_CENTRAL_PASSWORD}</password>
</server>
<server>
<id>ossrh</id>
<username>surevine</username>
<password>${env.MAVEN_CENTRAL_PASSWORD}</password>
</server>
</servers>
</settings>
1 change: 1 addition & 0 deletions .java-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.8
66 changes: 40 additions & 26 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.microsoft.ews-java-api</groupId>
<groupId>com.surevine</groupId>
<artifactId>ews-java-api</artifactId>

<version>2.1-SNAPSHOT</version>
<version>2.16-SNAPSHOT</version>

<name>Exchange Web Services Java API</name>
<description>Exchange Web Services (EWS) Java API</description>
Expand All @@ -49,8 +49,8 @@
</prerequisites>

<organization>
<name>Microsoft</name>
<url>http://www.microsoft.com/</url>
<name>Surevine</name>
<url>https://www.surevine.com/</url>
</organization>

<developers>
Expand All @@ -76,32 +76,33 @@
<!-- Eliminates the file encoding warning. Of course, all of your files
should probably be UTF-8 nowadays. -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<javaLanguage.version>1.6</javaLanguage.version>
<javaLanguage.version>1.8</javaLanguage.version>
<javadoc.doclint.param/>

<!-- Dependencies [BUILD]: -->
<maven-checkstyle-plugin.version>2.16</maven-checkstyle-plugin.version>
<maven-checkstyle-plugin.version>3.0.0</maven-checkstyle-plugin.version>
<maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
<maven-javadoc-plugin.version>2.10.3</maven-javadoc-plugin.version>
<maven-compiler-plugin.version>3.3</maven-compiler-plugin.version>
<nexus-staging-maven-plugin.version>1.6.5</nexus-staging-maven-plugin.version>
<maven-source-plugin.version>2.4</maven-source-plugin.version>
<animal-sniffer-maven-plugin.version>1.14</animal-sniffer-maven-plugin.version>
<maven-javadoc-plugin.version>3.0.1</maven-javadoc-plugin.version>
<maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
<nexus-staging-maven-plugin.version>1.6.8</nexus-staging-maven-plugin.version>
<maven-source-plugin.version>3.0.1</maven-source-plugin.version>
<animal-sniffer-maven-plugin.version>1.17</animal-sniffer-maven-plugin.version>
<animal-sniffer-maven-plugin.signature.version>1.1</animal-sniffer-maven-plugin.signature.version>
<!-- Dependencies [REPORT]: -->
<maven-site-plugin.version>3.4</maven-site-plugin.version>
<maven-project-info-reports-plugin.version>2.8</maven-project-info-reports-plugin.version>
<versions-maven-plugin.version>2.2</versions-maven-plugin.version>
<maven-jxr-plugin.version>2.5</maven-jxr-plugin.version>
<maven-surefire-report-plugin.version>2.18.1</maven-surefire-report-plugin.version>
<jacoco-maven-plugin.version>0.7.5.201505241946</jacoco-maven-plugin.version>
<maven-site-plugin.version>3.7.1</maven-site-plugin.version>
<maven-project-info-reports-plugin.version>3.0.0</maven-project-info-reports-plugin.version>
<versions-maven-plugin.version>2.7</versions-maven-plugin.version>
<maven-jxr-plugin.version>3.0.0</maven-jxr-plugin.version>
<maven-surefire-report-plugin.version>2.22.1</maven-surefire-report-plugin.version>
<jacoco-maven-plugin.version>0.8.2</jacoco-maven-plugin.version>
<!-- Dependencies [COMPILE]: -->
<httpclient.version>4.4.1</httpclient.version>
<httpcore.version>4.4.1</httpcore.version>
<httpclient.version>4.5.6</httpclient.version>
<httpcore.version>4.4.10</httpcore.version>
<commons-logging.version>1.2</commons-logging.version>
<joda-time.version>2.8</joda-time.version>
<commons-lang3.version>3.4</commons-lang3.version>
<commons-io.version>2.4</commons-io.version>
<joda-time.version>2.10.1</joda-time.version>
<commons-lang3.version>3.8.1</commons-lang3.version>
<commons-io.version>2.5</commons-io.version>
<jaxws-api.version>2.3.1</jaxws-api.version>
<!-- Dependencies [TEST]: -->
<junit.version>4.12</junit.version>
<hamcrest-all.version>1.3</hamcrest-all.version>
Expand Down Expand Up @@ -171,6 +172,12 @@
</goals>
</execution>
</executions>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</plugin>
</plugins>
</build>
Expand Down Expand Up @@ -249,6 +256,12 @@
<version>${joda-time.version}</version>
</dependency>

<dependency>
<groupId>javax.xml.ws</groupId>
<artifactId>jaxws-api</artifactId>
<version>${jaxws-api.version}</version>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
Expand Down Expand Up @@ -323,6 +336,7 @@
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven-javadoc-plugin.version}</version>
<configuration>
<source>8</source>
<linksource>true</linksource>
<additionalparam>${javadoc.doclint.param}</additionalparam>
</configuration>
Expand All @@ -348,7 +362,7 @@
</execution>
</executions>
</plugin>
<plugin>
<!-- <plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>animal-sniffer-maven-plugin</artifactId>
<version>${animal-sniffer-maven-plugin.version}</version>
Expand All @@ -368,7 +382,7 @@
</goals>
</execution>
</executions>
</plugin>
</plugin> -->

<plugin>
<groupId>org.jacoco</groupId>
Expand Down Expand Up @@ -433,15 +447,15 @@
</plugin>

<!-- Generates the Javadoc for the report. -->
<plugin>
<!-- <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven-javadoc-plugin.version}</version>
<configuration>
<linksource>true</linksource>
<additionalparam>${javadoc.doclint.param}</additionalparam>
</configuration>
</plugin>
</plugin> -->

<!-- Generates a nice HTML linked source cross-reference. -->
<plugin>
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Gitter](https://badges.gitter.im/JoinChat.svg)](https://gitter.im/OfficeDev/ews-java-api?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

[![Build Status](https://travis-ci.org/OfficeDev/ews-java-api.svg)](https://travis-ci.org/OfficeDev/ews-java-api) [![codecov.io](https://codecov.io/github/OfficeDev/ews-java-api/coverage.svg?branch=master)](https://codecov.io/github/OfficeDev/ews-java-api?branch=master)
![CircleCI branch](https://img.shields.io/circleci/project/github/surevine/ews-java-api/master.svg) ![Maven Central](https://img.shields.io/maven-central/v/com.surevine/ews-java-api.svg) [![codecov.io](https://codecov.io/github/surevine/ews-java-api/coverage.svg?branch=master)](https://codecov.io/github/surevine/ews-java-api?branch=master)

The Exchange Web Services (EWS) Java API provides a managed interface for developing Java applications that use EWS.
By using the EWS Java API, you can access almost all the information stored in an Office 365, Exchange Online, or Exchange Server mailbox. However, this API is in sustaining mode, the recommended access pattern for Office 365 and Exchange online data is [Microsoft Graph](https://graph.microsoft.com)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ public String getOwnerSmtpAddress() {
/**
* Sets the owner SMTP address.
*
* @param ownerSmtpAdress the new owner SMTP address
* @param ownerSmtpAddress the new owner SMTP address
*/
protected void setOwnerSmtpAddress(final String ownerSmtpAddress) {
this.ownerSmtpAddress = ownerSmtpAddress;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@
* you are perfectly aware of security implications of accepting
* self-signed certificates
* </p>
* <p>
* Example of using custom protocol socket factory for a specific host:
* </p>
* <pre>
* Protocol easyhttps = new Protocol("https", new EasySSLProtocolSocketFactory(), 443);
*
Expand All @@ -55,19 +57,18 @@
* hc.setHost(uri.getHost(), uri.getPort(), easyhttps);
* HttpClient client = new HttpClient();
* client.executeMethod(hc, httpget);
* </pre>
* </p>
* </pre>
* <p>
* Example of using custom protocol socket factory per default instead of the standard one:
* </p>
* <pre>
* Protocol easyhttps = new Protocol("https", new EasySSLProtocolSocketFactory(), 443);
* Protocol.registerProtocol("https", easyhttps);
*
* HttpClient client = new HttpClient();
* GetMethod httpget = new GetMethod("https://localhost/");
* client.executeMethod(httpget);
* </pre>
* </p>
* </pre>
*
* <p>
* DISCLAIMER: HttpClient developers DO NOT actively support this component.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -561,16 +561,7 @@ public byte[] readBase64ElementValue()
throws ServiceXmlDeserializationException, XMLStreamException,
IOException {
this.ensureCurrentNodeIsStartElement();

byte[] buffer = null;

ByteArrayOutputStream byteArrayStream = new ByteArrayOutputStream();

buffer = Base64.decodeBase64(this.xmlReader.getElementText().toString());
byteArrayStream.write(buffer);

return byteArrayStream.toByteArray();

return Base64.decodeBase64(this.xmlReader.getElementText());
}

/**
Expand All @@ -583,8 +574,7 @@ public void readBase64ElementValue(OutputStream outputStream)
throws Exception {
this.ensureCurrentNodeIsStartElement();

byte[] buffer = null;
buffer = Base64.decodeBase64(this.xmlReader.getElementText().toString());
byte[] buffer = Base64.decodeBase64(this.xmlReader.getElementText());
outputStream.write(buffer);
outputStream.flush();
}
Expand Down
Loading