From 1669adf35775f00ad9663afe05739da077fe0a4b Mon Sep 17 00:00:00 2001 From: mguessan Date: Mon, 7 Jun 2010 21:19:09 +0000 Subject: [PATCH] EWS: implement IndexedFieldURI and InternetMessageHeader git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1079 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- .../davmail/exchange/ews/IndexedFieldURI.java | 38 +++++++++++++++++++ .../ews/InternetMessageHeaderFieldURI.java | 28 ++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 src/java/davmail/exchange/ews/IndexedFieldURI.java create mode 100644 src/java/davmail/exchange/ews/InternetMessageHeaderFieldURI.java diff --git a/src/java/davmail/exchange/ews/IndexedFieldURI.java b/src/java/davmail/exchange/ews/IndexedFieldURI.java new file mode 100644 index 00000000..931c274d --- /dev/null +++ b/src/java/davmail/exchange/ews/IndexedFieldURI.java @@ -0,0 +1,38 @@ +/* + * DavMail POP/IMAP/SMTP/CalDav/LDAP Exchange Gateway + * Copyright (C) 2010 Mickael Guessant + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ +package davmail.exchange.ews; + +/** + * Indexed FieldURI + */ +public class IndexedFieldURI implements FieldURI { + protected String fieldURI; + protected String fieldIndex; + + public IndexedFieldURI(String fieldURI, String fieldIndex) { + this.fieldURI = fieldURI; + this.fieldIndex = fieldIndex; + } + + public void appendTo(StringBuilder buffer) { + buffer.append(""); + } +} diff --git a/src/java/davmail/exchange/ews/InternetMessageHeaderFieldURI.java b/src/java/davmail/exchange/ews/InternetMessageHeaderFieldURI.java new file mode 100644 index 00000000..fc93079c --- /dev/null +++ b/src/java/davmail/exchange/ews/InternetMessageHeaderFieldURI.java @@ -0,0 +1,28 @@ +/* + * DavMail POP/IMAP/SMTP/CalDav/LDAP Exchange Gateway + * Copyright (C) 2010 Mickael Guessant + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ +package davmail.exchange.ews; + +/** + * Internet Message Header Field. + */ +public class InternetMessageHeaderFieldURI extends IndexedFieldURI { + public InternetMessageHeaderFieldURI(String fieldIndex) { + super("item:InternetMessageHeader", fieldIndex); + } +}