Class Message
java.lang.Object
com.inductiveautomation.ignition.gateway.clientcomm.Message
A Message represents a request from an Ignition client or designer. Each message has a message type, defined in
GatewayConstants, and some named arguments.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addIndexedArg
(String name, String value) Returns the value of the named argument.int
Returns the number of non-indexed arguments in this messagegetIndexedArg
(String name) Returns a list of strings representing all of the indexed arguments for the given name.Returns the named argument as an Integer.Retruns the locale of the calling clientgetLongArg
(String name) Returns the named argument as a Long.int
getScope()
int
getType()
long
getWrappedArg
(String name) Like getArg, but returns empty string if the argument wasn't present.void
void
setLocaleCodes
(String[] localeCode) Not part of the public API - used by the MessageParservoid
setScope
(int scope) void
setType
(int i) void
setVersion
(long version)
-
Constructor Details
-
Message
public Message()
-
-
Method Details
-
getType
public int getType() -
setType
public void setType(int i) -
getVersion
public long getVersion() -
setVersion
public void setVersion(long version) -
getScope
public int getScope() -
setScope
public void setScope(int scope) -
addArg
-
addIndexedArg
-
getArgLength
public int getArgLength()Returns the number of non-indexed arguments in this message -
getArg
Returns the value of the named argument. If the argument isn't present, null is returned -
getWrappedArg
Like getArg, but returns empty string if the argument wasn't present. Never returns null. -
getLongArg
Returns the named argument as a Long. Null is returned if the arg doesn't exist, or fails parsing -
getIntArg
Returns the named argument as an Integer. Null is returned if the arg doesn't exist, or fails parsing -
getIndexedArg
Returns a list of strings representing all of the indexed arguments for the given name. Will return null if there are no indexed values with the given name. -
getCookie
-
setCookie
-
getLocale
Retruns the locale of the calling client -
setLocaleCodes
Not part of the public API - used by the MessageParser
-