Enum Class WfMessageType
- All Implemented Interfaces:
Serializable
,Comparable<WfMessageType>
,Constable
This enumerable class implements the message types as defined in the Whiteflag standard.
- Since:
- 1.0
- Whiteflag version:
- v1-draft.6
- Whiteflag standard x-reference:
- 2.4.2 Message Functionality
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAuthentication message typeUndefined message typeDanger Sign message typeEmergency Signal message typeFree Text message typeInfrastructure Sign message typeCryptographic message typeMission Signal message typeProtective Sign message typeRequest Signal message typeResource message typeStatus Signal message typeTest message type -
Method Summary
Modifier and TypeMethodDescriptionfinal WfMessageField[]
createRequestFields
(int n) Returns an array with additional Whiteflag sign/signal message body request fieldsstatic final WfMessageType
Creates the message type from the message codefinal WfMessageField[]
Returns an array with the body fieldsfinal String
getCode()
Returns the message code stringfinal WfMessageField[]
Returns an array with the header fieldsfinal WfMessageField[]
Returns an array with the header fields that are never encryptedstatic WfMessageType
Returns the enum constant of this class with the specified name.static WfMessageType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ANY
Undefined message type -
A
Authentication message typeMessage introducing the sender on the network with the sender’s authentication data
- Whiteflag standard x-reference:
- 4.3.4 Management Messages: Authentication
-
K
Cryptographic message typeMessage for management of keys and parameters of cryptographic functions
- Whiteflag standard x-reference:
- 4.3.5 Management Messages: Cryptographic Support
-
T
Test message typeMessage that can be used for testing Whiteflag functionality by applications
- Whiteflag standard x-reference:
- 4.3.6 Management Messages: Test
-
R
Resource message typeMessage to point to an internet resource
- Whiteflag standard x-reference:
- 4.3.2 Functional Messages: Resource
-
F
Free Text message typeMessage to send a free text string
- Whiteflag standard x-reference:
- 4.3.3 Functional Messages: Free Text
-
P
Protective Sign message typeSign to mark objects under the protection of international law
- Whiteflag standard x-reference:
- 4.3.1 Functional Messages: Signs/Signals, 4.3.1.2.1 Protective Signs
-
E
Emergency Signal message typeSignal to send an emergency signal when in need of assistance
- Whiteflag standard x-reference:
- 4.3.1 Functional Messages: Signs/Signals, 4.3.1.2.2 Emergency Signals
-
D
Danger Sign message typeSign to mark a location or area of imminent danger, e.g. an area under attack, land mines, disaster, etc.
- Whiteflag standard x-reference:
- 4.3.1 Functional Messages: Signs/Signals, 4.3.1.2.3 Danger and Disaster Signs
-
S
Status Signal message typeSignal to provide the status of an object, or specifically for persons: give a proof of life
- Whiteflag standard x-reference:
- 4.3.1 Functional Messages: Signs/Signals, 4.3.1.2.4 Status Signals
-
I
Infrastructure Sign message typeSign to mark critical infrastructure, e.g. roads, utilities, water treatment, hospitals, power plants etc.
- Whiteflag standard x-reference:
- 4.3.1 Functional Messages: Signs/Signals, 4.3.1.2.5 Infrastructure Signs
-
M
Mission Signal message typeSignal to provide information on activities undertaken during a mission
- Whiteflag standard x-reference:
- 4.3.1 Functional Messages: Signs/Signals, 4.3.1.2.6 Mission Signals
-
Q
Request Signal message typeSignal to perform requests to other parties
- Whiteflag standard x-reference:
- 4.3.1 Functional Messages: Signs/Signals, 4.3.1.2.7 Request Signals
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getCode
Returns the message code string- Returns:
- the message code
-
getHeaderFields
Returns an array with the header fields- Returns:
- an array of the fields from the message header
- Whiteflag version:
- v1-draft.6
- Whiteflag standard x-reference:
- 4.2.1 Generic Message Header
-
getUnencryptedHeaderFields
Returns an array with the header fields that are never encrypted- Returns:
- an array of the fields from the message header
- Since:
- 1.1
- Whiteflag version:
- v1-draft.6
- Whiteflag standard x-reference:
- 4.2.1 Generic Message Header, 4.1.4 Encryption
-
getBodyFields
Returns an array with the body fields- Returns:
- an array with the fields from the message body
-
createRequestFields
Returns an array with additional Whiteflag sign/signal message body request fields- Parameters:
n
- the number of request objects- Returns:
- an array with the request message fields
- Whiteflag version:
- v1-draft.6
- Whiteflag standard x-reference:
- 4.3.1.9 Object Request Fields
-
fromCode
Creates the message type from the message code- Parameters:
messageCode
- the message code- Returns:
- the requested message type
- Throws:
WfCoreException
- if the message type is invalid- Since:
- 1.1
-