Package com.fluenda.parcefone.event
Class CefRev23
- java.lang.Object
-
- com.fluenda.parcefone.event.CommonEvent
-
- com.fluenda.parcefone.event.CefRev23
-
public class CefRev23 extends CommonEvent
Implements the Common Event Format (CEF) as documented by revision 23 (Retrieved on August 2016).
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>getExtension(boolean populatedOnly)Get map of named extensionsMap<String,Object>getExtension(boolean populatedOnly, boolean includeCustomExtensions)Get map of named extensions after applying specified filteringMap<String,Object>getHeader()Get map of named headersvoidsetExtension(Map<String,String> extensions)Set extensions using named key to object valuevoidsetExtension(Map<String,String> extensions, boolean allowNulls)Set extensions using named key to object value with specified handling for null valuesvoidsetHeader(Map<String,Object> headers)Set headers using named key to object value
-
-
-
Constructor Detail
-
CefRev23
public CefRev23(Locale locale)
Standard constructor with locale for date objects- Parameters:
locale- Locale for date objects
-
CefRev23
public CefRev23()
Default constructor with date locale set to English
-
-
Method Detail
-
setHeader
public void setHeader(Map<String,Object> headers) throws CEFHandlingException
Description copied from class:CommonEventSet headers using named key to object value- Specified by:
setHeaderin classCommonEvent- 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
-
getHeader
public Map<String,Object> getHeader() throws CEFHandlingException
Description copied from class:CommonEventGet map of named headers- Specified by:
getHeaderin classCommonEvent- Returns:
- A map containing the keys and values of headers
- Throws:
CEFHandlingException- when it has issues reading the headers of CEF event
-
setExtension
public void setExtension(Map<String,String> extensions) throws CEFHandlingException
Description copied from class:CommonEventSet extensions using named key to object value- Specified by:
setExtensionin classCommonEvent- 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 void setExtension(Map<String,String> extensions, boolean allowNulls) throws CEFHandlingException
Description copied from class:CommonEventSet extensions using named key to object value with specified handling for null values- Specified by:
setExtensionin classCommonEvent- 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
-
getExtension
public Map<String,Object> getExtension(boolean populatedOnly) throws CEFHandlingException
Description copied from class:CommonEventGet map of named extensions- Specified by:
getExtensionin classCommonEvent- Parameters:
populatedOnly- Boolean defining if Map should include all fields supported byCefRev23- 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 Map<String,Object> getExtension(boolean populatedOnly, boolean includeCustomExtensions) throws CEFHandlingException
Description copied from class:CommonEventGet map of named extensions after applying specified filtering- Specified by:
getExtensionin classCommonEvent- 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
-
-