Skip to content

/AWS1/IF_GLU=>GETSESSIONENDPOINT()

About GetSessionEndpoint

Returns the Spark Connect endpoint URL and authentication token for an interactive session.

Method Signature

METHODS /AWS1/IF_GLU~GETSESSIONENDPOINT
  IMPORTING
    !IV_SESSIONID TYPE /AWS1/GLUNAMESTRING OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_glugetsessionendptrsp
  RAISING
    /AWS1/CX_GLUACCESSDENIEDEX
    /AWS1/CX_GLUENTITYNOTFOUNDEX
    /AWS1/CX_GLUILLEGALSESSSTATEEX
    /AWS1/CX_GLUINTERNALSERVICEEX
    /AWS1/CX_GLUINVALIDINPUTEX
    /AWS1/CX_GLUOPNOTSUPPORTEDEX
    /AWS1/CX_GLUOPERATIONTIMEOUTEX
    /AWS1/CX_GLUCLIENTEXC
    /AWS1/CX_GLUSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_sessionid TYPE /AWS1/GLUNAMESTRING /AWS1/GLUNAMESTRING

The unique identifier of the interactive session.

RETURNING

oo_output TYPE REF TO /aws1/cl_glugetsessionendptrsp /AWS1/CL_GLUGETSESSIONENDPTRSP

Examples

Syntax Example

This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.

DATA(lo_result) = lo_client->getsessionendpoint( |string| ).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_sessionendpoint = lo_result->get_sparkconnect( ).
  IF lo_sessionendpoint IS NOT INITIAL.
    lv_sparkconnectendpointurl = lo_sessionendpoint->get_url( ).
    lv_sensitivestring = lo_sessionendpoint->get_authtoken( ).
    lv_timestampvalue = lo_sessionendpoint->get_authtokenexpirationtime( ).
  ENDIF.
ENDIF.