Package com.fluenda.parcefone.event
Class CommonEvent
- java.lang.Object
-
- com.fluenda.parcefone.event.CommonEvent
-
-
Constructor Summary
Constructors Constructor Description CommonEvent()Default constructor for Common Events
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract Map<String,Object>getExtension(boolean populatedOnly)Get map of named extensionsabstract Map<String,Object>getExtension(boolean populatedOnly, boolean includeCustomExtensions)Get map of named extensions after applying specified filteringabstract Map<String,Object>getHeader()Get map of named headersabstract voidsetExtension(Map<String,String> extensions)Set extensions using named key to object valueabstract voidsetExtension(Map<String,String> extensions, boolean allowNulls)Set extensions using named key to object value with specified handling for null valuesabstract voidsetHeader(Map<String,Object> headers)Set headers using named key to object value
-
-
-
Method Detail
-
setHeader
public abstract void setHeader(Map<String,Object> headers) throws CEFHandlingException
Set headers using named key to object value- Parameters:
headers- A map containing the keys and values of headers of CEF event- Throws:
CEFHandlingException- when it has issues writing the values of the headers
-
setExtension
public abstract void setExtension(Map<String,String> extensions) throws CEFHandlingException
Set extensions using named key to object value- Parameters:
extensions- A map containing the keys and values of extensions of CEF event- Throws:
CEFHandlingException- when it has issues populating the extensions
-
setExtension
public abstract void setExtension(Map<String,String> extensions, boolean allowNulls) throws CEFHandlingException
Set extensions using named key to object value with specified handling for null values- Parameters:
extensions- A map containing the keys and values of extensions of CEF eventallowNulls- If true, extensions with an empty value will be seen as null. If false, parsing may fail depending on extension types- Throws:
CEFHandlingException- when it has issues populating the extensions
-
getHeader
public abstract Map<String,Object> getHeader() throws CEFHandlingException
Get map of named headers- Returns:
- A map containing the keys and values of headers
- Throws:
CEFHandlingException- when it has issues reading the headers of CEF event
-
getExtension
public abstract Map<String,Object> getExtension(boolean populatedOnly) throws CEFHandlingException
Get map of named extensions- Parameters:
populatedOnly- Boolean defining if Map should include all fields supported by the supported CEF standard- Returns:
- A map containing the keys and values of CEF extensions
- Throws:
CEFHandlingException- when it hits issues (e.g. IllegalAccessException) reading the extensions
-
getExtension
public abstract Map<String,Object> getExtension(boolean populatedOnly, boolean includeCustomExtensions) throws CEFHandlingException
Get map of named extensions after applying specified filtering- Parameters:
populatedOnly- Boolean defining if Map should include all fields supported byCefRev23includeCustomExtensions- Boolean defining if Map should include parsed keys that are not supported part of the base CEF Rev23 specification- Returns:
- A map containing the keys and values of CEF extensions
- Throws:
CEFHandlingException- when it hits issues (e.g. IllegalAccessException) reading the extensions
-
-