Class Message
- java.lang.Object
- 
- com.inductiveautomation.ignition.gateway.clientcomm.Message
 
- 
 public class Message extends java.lang.ObjectA 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 Constructor Description Message()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddArg(java.lang.String name, java.lang.String value)voidaddIndexedArg(java.lang.String name, java.lang.String value)java.lang.StringgetArg(java.lang.String name)Returns the value of the named argument.intgetArgLength()Returns the number of non-indexed arguments in this messagejava.lang.StringgetCookie()java.util.List<java.lang.String>getIndexedArg(java.lang.String name)Returns a list of strings representing all of the indexed arguments for the given name.java.lang.IntegergetIntArg(java.lang.String name)Returns the named argument as an Integer.java.util.LocalegetLocale()Retruns the locale of the calling clientjava.lang.LonggetLongArg(java.lang.String name)Returns the named argument as a Long.intgetScope()intgetType()longgetVersion()java.lang.StringgetWrappedArg(java.lang.String name)Like getArg, but returns empty string if the argument wasn't present.voidsetCookie(java.lang.String cookie)voidsetLocaleCodes(java.lang.String[] localeCode)Not part of the public API - used by the MessageParservoidsetScope(int scope)voidsetType(int i)voidsetVersion(long version)
 
- 
- 
- 
Method Detail- 
getTypepublic int getType() 
 - 
setTypepublic void setType(int i) 
 - 
getVersionpublic long getVersion() 
 - 
setVersionpublic void setVersion(long version) 
 - 
getScopepublic int getScope() 
 - 
setScopepublic void setScope(int scope) 
 - 
addArgpublic void addArg(java.lang.String name, java.lang.String value)
 - 
addIndexedArgpublic void addIndexedArg(java.lang.String name, java.lang.String value)
 - 
getArgLengthpublic int getArgLength() Returns the number of non-indexed arguments in this message
 - 
getArgpublic java.lang.String getArg(java.lang.String name) Returns the value of the named argument. If the argument isn't present, null is returned
 - 
getWrappedArgpublic java.lang.String getWrappedArg(java.lang.String name) Like getArg, but returns empty string if the argument wasn't present. Never returns null.
 - 
getLongArgpublic java.lang.Long getLongArg(java.lang.String name) Returns the named argument as a Long. Null is returned if the arg doesn't exist, or fails parsing
 - 
getIntArgpublic java.lang.Integer getIntArg(java.lang.String name) Returns the named argument as an Integer. Null is returned if the arg doesn't exist, or fails parsing
 - 
getIndexedArgpublic java.util.List<java.lang.String> getIndexedArg(java.lang.String name) 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.
 - 
getCookiepublic java.lang.String getCookie() 
 - 
setCookiepublic void setCookie(java.lang.String cookie) 
 - 
getLocalepublic java.util.Locale getLocale() Retruns the locale of the calling client
 - 
setLocaleCodespublic void setLocaleCodes(java.lang.String[] localeCode) Not part of the public API - used by the MessageParser
 
- 
 
-