Package nl.nn.adapterframework.stream
Class MessageContext
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<String,Object>
-
- nl.nn.adapterframework.stream.MessageContext
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,Object>
public class MessageContext extends LinkedHashMap<String,Object>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static String
HEADER_PREFIX
static String
METADATA_CHARSET
static String
METADATA_LOCATION
static String
METADATA_MIMETYPE
static String
METADATA_MODIFICATIONTIME
static String
METADATA_NAME
static String
METADATA_SIZE
-
Constructor Summary
Constructors Constructor Description MessageContext()
MessageContext(String charset)
MessageContext(Map<String,Object> base)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageContext
with(String name, String value)
MessageContext
withAllFrom(Map<String,Object> base)
MessageContext
withCharset(String charset)
MessageContext
withCharset(Charset charset)
MessageContext
withLocation(String location)
MessageContext
withMimeType(String mimeType)
MessageContext
withMimeType(org.springframework.util.MimeType mimeType)
MessageContext
withModificationTime(long time)
MessageContext
withModificationTime(Instant time)
MessageContext
withModificationTime(Date time)
MessageContext
withName(String name)
MessageContext
withoutSize()
MessageContext
withSize(long size)
-
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
-
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
-
-
-
Field Detail
-
HEADER_PREFIX
public static final String HEADER_PREFIX
- See Also:
- Constant Field Values
-
METADATA_CHARSET
public static final String METADATA_CHARSET
- See Also:
- Constant Field Values
-
METADATA_SIZE
public static final String METADATA_SIZE
- See Also:
- Constant Field Values
-
METADATA_MODIFICATIONTIME
public static final String METADATA_MODIFICATIONTIME
- See Also:
- Constant Field Values
-
METADATA_NAME
public static final String METADATA_NAME
- See Also:
- Constant Field Values
-
METADATA_LOCATION
public static final String METADATA_LOCATION
- See Also:
- Constant Field Values
-
METADATA_MIMETYPE
public static final String METADATA_MIMETYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
withAllFrom
public MessageContext withAllFrom(Map<String,Object> base)
-
withCharset
public MessageContext withCharset(String charset)
-
withCharset
public MessageContext withCharset(Charset charset)
-
withMimeType
public MessageContext withMimeType(String mimeType)
-
withMimeType
public MessageContext withMimeType(org.springframework.util.MimeType mimeType)
-
withSize
public MessageContext withSize(long size)
-
withoutSize
public MessageContext withoutSize()
-
withModificationTime
public MessageContext withModificationTime(long time)
-
withModificationTime
public MessageContext withModificationTime(Date time)
-
withModificationTime
public MessageContext withModificationTime(Instant time)
-
withName
public MessageContext withName(String name)
-
withLocation
public MessageContext withLocation(String location)
-
with
public MessageContext with(String name, String value)
-
-