Package davmail.exchange
Class ExchangeSession.Item
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,String>
- Direct Known Subclasses:
ExchangeSession.Contact,ExchangeSession.Event
- Enclosing class:
ExchangeSession
Generic folder item.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract StringgetBody()Retrieve item body from Exchangeabstract StringReturn item content typegetEtag()Get event etag (last change tag).getHref()Return item href.getName()Get event name (file name part in URL).voidSet item href.voidsetItemName(String itemName) Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, newHashMap, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Field Details
-
folderPath
-
itemName
-
permanentUrl
-
displayName
Display name. -
etag
item etag -
noneMatch
-
-
Constructor Details
-
Item
Build item instance.- Parameters:
folderPath- folder pathitemName- item name classetag- item etagnoneMatch- none match flag
-
Item
protected Item()Default constructor.
-
-
Method Details
-
getContentType
Return item content type- Returns:
- content type
-
getBody
Retrieve item body from Exchange- Returns:
- item body
- Throws:
IOException- on error
-
getName
Get event name (file name part in URL).- Returns:
- event name
-
getEtag
Get event etag (last change tag).- Returns:
- event etag
-
setHref
Set item href.- Parameters:
href- item href
-
getHref
Return item href.- Returns:
- item href
-
setItemName
-