getScope()

The getScope method gets the scope of NamevaluePair method.

The following are the valid values.
  • Scope.INVOCATION: The NameValuePair object is effective during the process of this API invocation. Its value is not saved in the session.
  • Scope.SESSION: The NameValuePair object is effective from the beginning of this API invocation until it is removed. Its value is saved in the session.

Return value

The getScope method returns a value of Scope enum.