Independentsoft
- any library, any programming language
Home
Purchase
Support
Company
Contact
JWebServices for Exchange
>
Tutorial
> Get OWA options
The following example shows you how to get and display OWA options.
import com.independentsoft.exchange.OwaOptions; import com.independentsoft.exchange.RequestServerVersion; import com.independentsoft.exchange.Service; import com.independentsoft.exchange.ServiceException; public class Example { public static void main(String[] args) { try { Service service = new Service("https://myserver/ews/Exchange.asmx", "username", "password"); service.setRequestServerVersion(RequestServerVersion.EXCHANGE_2010_SP1); OwaOptions options = service.getOwaOptions(); System.out.println("AlwaysShowBcc:" + options.isAlwaysShowBcc()); System.out.println("AlwaysShowFrom:" + options.isAlwaysShowFrom()); System.out.println("AutoAddSignature:" + options.isAutoAddSignature()); System.out.println("CheckNameInContactsFirst:" + options.isCheckNameInContactsFirst()); System.out.println("ComposeMarkup:" + options.getComposeMarkup()); System.out.println("ConversationSortOrder:" + options.getConversationSortOrder()); System.out.println("DateFormat:" + options.getDateFormat()); System.out.println("EmptyDeletedItemsOnLogoff:" + options.isEmptyDeletedItemsOnLogoff()); System.out.println("EnableReminders:" + options.isEnableReminders()); System.out.println("FirstWeekOfYear:" + options.getFirstWeekOfYear()); System.out.println("FormatBarState:" + options.getFormatBarState()); System.out.println("HideDeletedItems:" + options.isHideDeletedItems()); System.out.println("HourIncrement:" + options.getHourIncrement()); System.out.println("IsOptimizedForAccessibility:" + options.isOptimizedForAccessibility()); System.out.println("IsQuicklinksBarVisible:" + options.isQuicklinksBarVisible()); System.out.println("MarkAsReadDelayTime:" + options.getMarkAsReadDelayTime()); System.out.println("NewItemNotify:" + options.getNewItemNotify()); System.out.println("NextSelection:" + options.getNextSelection()); System.out.println("PreviewMarkAsRead:" + options.getPreviewMarkAsRead()); System.out.println("ReadReceipt:" + options.getReadReceipt()); System.out.println("SendAsItemsCopiedTo:" + options.getSendAsItemsCopiedTo()); System.out.println("SendOnBehalfOfCopiedTo:" + options.getSendOnBehalfOfCopiedTo()); System.out.println("ShowTreeInListView:" + options.showTreeInListView()); System.out.println("ShowWeekNumbers:" + options.showWeekNumbers()); System.out.println("SignatureHtml:" + options.getSignatureHtml()); System.out.println("SignatureText:" + options.getSignatureText()); System.out.println("SpellingCheckBeforeSend:" + options.isSpellingCheckBeforeSend()); System.out.println("SpellingDictionaryLanguage:" + options.getSpellingDictionaryLanguage()); System.out.println("SpellingIgnoreMixedDigits:" + options.isSpellingIgnoreMixedDigits()); System.out.println("SpellingIgnoreUpperCase:" + options.isSpellingIgnoreUpperCase()); System.out.println("ThemeStorageId:" + options.getThemeStorageId()); System.out.println("TimeFormat:" + options.getTimeFormat()); System.out.println("TimeZone:" + options.getTimeZone()); System.out.println("WeekStartDay:" + options.getWeekStartDay()); } catch (ServiceException e) { System.out.println(e.getMessage()); System.out.println(e.getXmlMessage()); e.printStackTrace(); } catch (Exception e) { System.out.println(e.getMessage()); e.printStackTrace(); } } }
Need help? Ask our developers:
Name*
Email*
Message*