Joltrequestmessage methods – HP NonStop G-Series User Manual

Page 111

Advertising
background image

JoltRequestMessage Methods

The JoltRequestMessage methods are used in conjunction with the abstract JoltRequestMessage class. These methods are
divided into five categories: the clear method, get methods, set methods, add methods, and delete methods.

Note

The clear() method removes JoltRequestMessage settings.

Get Methods

The get JoltRequestMessage methods are used to get values from the remote service object. These methods encompass
two types of get methods: service and request methods, and output parameter methods.

Service and Request Methods. The service methods handle queries about service attributes such as the name of the
current service, or the application code (i.e., tpusrcode in ATMI). These methods include:

getApplicationCode()

getName()

Output Parameter Methods. All of the get methods are used to obtain the value of a named item that must be one of the
result parameters. If the item does not exist, the method returns the specified default value. A get method without itemNo
parameter is equivalent to a get method with itemNo 0 (i.e., first occurrence). These methods include the following:

getOccurrenceCount

getByteDef

getBytesDef

getDoubleDef

getFloatDef

getIntDef

getShortDef

getStringDef

getByteItemDef

getBytesItemsDef

getDoubleItemDef

getFloatItemDef

getIntItemDef

getShortItemDef

getStringItemDef

The corresponding set methods for these get methods are located in

setByte

.

Set Methods

The set methods are used to set values for the remote service object. These methods manipulate the input parameters. The
set JoltRequestMessage methods are divided into two categories:

Service and Request Method. The service method sets the request priority service attribute, this includes:

Advertising