public class MessageMetadata extends BaseTypesMap<String,Object> implements Cloneable
BaseTypesMap.BaseTypesEntryAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Field and Description |
|---|---|
static String |
CGI_QUERY_STRING_PROPERTY |
static String |
REQUEST_IP_PROPERTY |
| Constructor and Description |
|---|
MessageMetadata() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAll(Properties p)
Adds all values from the properties object.
|
MessageMetadata |
clone()
Performs a deep clone of this map.
|
boolean |
containsKey(Object key) |
boolean |
equals(Object other) |
Object |
get(Object key) |
String |
getCgiQueryString()
Gets the cgi query string.
|
long |
getEstimatedSize() |
Object |
getProperty(String key)
Gets a property.
|
boolean |
getProperty(String key,
boolean defaultValue)
Gets arbitrary boolean property from the query.
|
int |
getProperty(String key,
int defaultValue)
Gets arbitrary integer property from the query.
|
long |
getProperty(String key,
long defaultValue)
Gets arbitrary long property from the query.
|
String |
getProperty(String key,
String defaultValue)
Gets arbitrary String property from the query.
|
String |
getRequestIp()
Gets the request ip.
|
int |
hashCode() |
Object |
remove(Object key) |
void |
setCgiQueryString(String value)
Sets the cgi query string.
|
void |
setProperty(String key,
Object value)
Sets a property.
|
void |
setRequestIp(String value)
Sets the request ip.
|
Properties |
toProperties()
Gets a new Properties object that represents this metadata object.
|
checkType, getEntries, put, putAll, setEntriesclear, containsValue, entrySet, forEach, getOrDefault, keySet, removeEldestEntry, replaceAll, valuescompute, computeIfAbsent, computeIfPresent, isEmpty, merge, putIfAbsent, remove, replace, replace, sizetoStringfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, isEmpty, merge, putIfAbsent, remove, replace, replace, sizepublic static final String CGI_QUERY_STRING_PROPERTY
public static final String REQUEST_IP_PROPERTY
public boolean containsKey(Object key)
containsKey in interface Map<String,Object>containsKey in class HashMap<String,Object>public Object getProperty(String key)
key - the keypublic void setProperty(String key, Object value)
key - the keyvalue - the valuepublic void setCgiQueryString(String value)
value - the valuepublic String getCgiQueryString()
public void setRequestIp(String value)
value - the valuepublic String getRequestIp()
public Properties toProperties()
Properties objectpublic String getProperty(String key, String defaultValue)
key - the keydefaultValue - the default valuepublic boolean getProperty(String key, boolean defaultValue)
key - the keydefaultValue - the default valuepublic int getProperty(String key, int defaultValue)
key - the keydefaultValue - the default valuepublic long getProperty(String key, long defaultValue)
key - the keydefaultValue - the default valuepublic void addAll(Properties p)
p - the properties object to populate frompublic MessageMetadata clone()
clone in class BaseTypesMap<String,Object>public int hashCode()
public boolean equals(Object other)
public long getEstimatedSize()
Copyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.