Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The internal default settings are:

Status

OK

Message

zero length string object

ByteArray

zero length byte array object

List

null object

Fieldlist

null object

Two static final string variables called OK and ERROR are available for ease of use.

Example

...

     new JSMResponse ( "Ok message" ) ;

...


new JSMResponse ( JSMResponse.OK, "Ok message" ) ;

...


new JSMResponse ( JSMResponse.ERROR, "Error message" ) ;

...


new JSMResponse ( exception ) ;