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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidvoidaddIndexedArg(String name, String value) Returns the value of the named argument.intReturns 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.intgetScope()intgetType()longgetWrappedArg(String name) Like getArg, but returns empty string if the argument wasn't present.voidvoidsetLocaleCodes(String[] localeCode) Not part of the public API - used by the MessageParservoidsetScope(int scope) voidsetType(int i) voidsetVersion(long version) 
- 
Constructor Details- 
Messagepublic Message()
 
- 
- 
Method Details- 
getTypepublic int getType()
- 
setTypepublic void setType(int i) 
- 
getVersionpublic long getVersion()
- 
setVersionpublic void setVersion(long version) 
- 
getScopepublic int getScope()
- 
setScopepublic void setScope(int scope) 
- 
addArg
- 
addIndexedArg
- 
getArgLengthpublic int getArgLength()Returns the number of non-indexed arguments in this message
- 
getArgReturns the value of the named argument. If the argument isn't present, null is returned
- 
getWrappedArgLike getArg, but returns empty string if the argument wasn't present. Never returns null.
- 
getLongArgReturns the named argument as a Long. Null is returned if the arg doesn't exist, or fails parsing
- 
getIntArgReturns the named argument as an Integer. Null is returned if the arg doesn't exist, or fails parsing
- 
getIndexedArgReturns 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
- 
getLocaleRetruns the locale of the calling client
- 
setLocaleCodesNot part of the public API - used by the MessageParser
 
-