com.ibm.zosconnect.spi

Interface DataRequester



  • public interface DataRequester
    Defines the request specific API requester data available to interceptors. The documentation describes which data values are available to which interceptor methods. Some data values may also be available in other interceptor methods, depending on where a request fails. Data is available for OpenAPI 3 requests from V3.0.76.0.

    The EarlyFailureInterceptorRequester Interface is supported only for OpenAPI 2, not for OpenAPI 3.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface and Description
      static class  DataRequester.RequestApplicationType
      Enumeration for the application type of the originating request.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String API_REQUESTER_DESCRIPTION
      Constant for the key used in getData(String) for the description of the API requester associated with this request.
      static java.lang.String API_REQUESTER_NAME
      Constant for the key used in getData(String) for the name of the API requester associated with this request.
      static java.lang.String API_REQUESTER_VERSION
      Constant for the key used in getData(String) for the version of the API requester associated with this request.
      static java.lang.String AUTHORIZATION_ADMIN_GROUP_NAMES
      Constant for the key used in getData(String) for the configured administrator groups names to be used for authorization validation.
      static java.lang.String AUTHORIZATION_INVOKE_GROUP_NAMES
      Constant for the key used in getData(String) for the configured invoke group names to be used for authorization validation.
      static java.lang.String AUTHORIZATION_OPERATIONS_GROUP_NAMES
      Constant for the key used in getData(String) for the configured operations group names to be used for authorization validation.
      static java.lang.String AUTHORIZATION_READER_GROUP_NAMES
      Constant for the key used in getData(String) for the configured reader group names to be used for authorization validation.
      static java.lang.String CICS_APPLID
      Constant for the key used in getData(String) for the CICS APPLID of the region invoking this request.
      static java.lang.String CICS_NETUOWID
      Constant for the key used in getData(String) for the CICS network unit of work (UOW) ID of the task invoking this request.
      static java.lang.String CICS_TASK_NUMBER
      Constant for the key used in getData(String) for the CICS task number invoking this request.
      static java.lang.String CICS_TRANSID
      Constant for the key used in getData(String) for the CICS transid invoking this request.
      static java.lang.String CICS_UOWID
      Constant for the key used in getData(String) for the CICS unit of work (UOW) ID of the task invoking this request.
      static java.lang.String copyright_notice 
      static java.lang.String ENDPOINT_FULL_PATH
      Constant for the key used in getData(String) for a string containing the full path of the resource invoked at the endpoint.
      static java.lang.String ENDPOINT_HOST
      Constant for the key used in getData(String) for a string containing the host value of the API endpoint.
      static java.lang.String ENDPOINT_METHOD
      Constant for the key used in getData(String) for the endpoint request method.
      static java.lang.String ENDPOINT_PORT
      Constant for the key used in getData(String) for a string containing the port value of the API endpoint.
      static java.lang.String ENDPOINT_QUERY_STRING
      Constant for the key used in getData(String) for a string containing information identifying the endpoint request query string.
      static java.lang.String ENDPOINT_REFERENCE
      Constant for the key used in getData(String) for the configured connection reference that identifies the connection to the API endpoint.
      static java.lang.String HTTP_RESPONSE_CODE
      Constant for the key used in getData(String) for the HTTP status code for the response from the API endpoint.
      static java.lang.String IMS_APPNAME
      Constant for the key used in getData(String) for the name of the IMS application program invoking this request.
      static java.lang.String IMS_EXIT_DATA
      Constant for the key used in getData(String) when the IMS INQY exit of the program invoking this request has populated the Exit Data with character data.
      static java.lang.String IMS_EXIT_DATA_BYTES
      Constant for the key used in getData(String) when the IMS INQY exit of the program invoking this request has populated the Exit Data with binary data.
      static java.lang.String IMS_IDENTIFIER
      Constant for the key used in getData(String) for the IMS identifier invoking this request.
      static java.lang.String IMS_PSBNAME
      Constant for the key used in getData(String) for the name of the IMS PSB currently allocated to the program invoking this request.
      static java.lang.String IMS_RECOVERY_TOKEN
      Deprecated. 
      static java.lang.String IMS_RECOVERY_TOKEN_BYTES
      Constant for the key used in getData(String) for the IMS recovery token of the program invoking this request.
      static java.lang.String IMS_REGION_ID
      Constant for the key used in getData(String) for the IMS region identifier invoking this request.
      static java.lang.String IMS_TRANSNAME
      Constant for the key used in getData(String) for the name of the IMS transaction invoking this request.
      static java.lang.String MVS_ASID
      Constant for the key used in getData(String) for the address space identifier (ASID) of the MVS system invoking this request.
      static java.lang.String MVS_JOBID
      Constant for the key used in getData(String) for the ID of the MVS job invoking this request, taken from the IAZJSAB JOBID parameter.
      static java.lang.String MVS_JOBNAME
      Constant for the key used in getData(String) for the name of the MVS job invoking this request, taken from the IAZJSAB JOBNAME parameter.
      static java.lang.String MVS_SID
      Constant for the key used in getData(String) for the system identifier (SID) that is used in all SMF records of the MVS system invoking this request.
      static java.lang.String MVS_SYSNAME
      Constant for the key used in getData(String) for the name of the MVS system invoking this request, taken from the CVT CVTSNAME field.
      static java.lang.String REQUEST_APPLICATION_TYPE
      Constant for the key used in getData(String) for the request application type.
      static java.lang.String REQUEST_ID
      Constant for the key used in getData(String) for the unique identifier associated with this request.
      static java.lang.String REQUEST_RETRY
      Constant for the key used in getData(String) for an indicator that this request is the retry of a request that used one or more cached access tokens, following a 401 authentication failure response from the API endpoint.
      static java.lang.String REQUEST_STATUS_CODE
      Constant for the key used in getData(String) for the status code returned to the client application in the BAQ-STATUS-CODE field of the BAQ-RESPONSE-INFO structure for COBOL programs or the BAQ_STATUS_CODE field of the BAQ_RESPONSE_INFO for PL/I programs.
      static java.lang.String TIME_ENDPOINT_RECEIVED
      Constant for the key used in getData(String) for the timestamp of when this response was received from the API endpoint by the z/OS Connect EE server.
      static java.lang.String TIME_ENDPOINT_SENT
      Constant for the key used in getData(String) for the timestamp of when this request was sent to the API endpoint by the z/OS Connect EE server.
      static java.lang.String TIME_STUB_SENT
      Constant for the key used in getData(String) for the timestamp of when the communications stub sent this request.
      static java.lang.String TIME_TOKEN_GET_FINISH
      Constant for the key used in getData(String) for the timestamp for when the z/OS Connect EE server has completed acquiring the access token(s) for this request.
      static java.lang.String TIME_TOKEN_GET_START
      Constant for the key used in getData(String) for the timestamp for when the z/OS Connect EE server starts to acquire the access token(s) for this request.
      static java.lang.String TIME_ZOS_CONNECT_ENTRY
      Constant for the key used in getData(String) for the timestamp of when this request was received by the z/OS Connect EE server from the API requester communications stub.
      static java.lang.String TIME_ZOS_CONNECT_EXIT
      Constant for the key used in getData(String) for the timestamp of when this response was sent to the API requester communications stub by the z/OS Connect EE server.
      static java.lang.String TRACKING_TOKEN
      Constant for the key used in getData(String) for a byte array containing a tracking token.
      static java.lang.String USER_NAME
      Constant for the key used in getData(String) for the user identity associated with this request.
      static java.lang.String USER_NAME_ASSERTED
      Constant for the key used in getData(String) for the SAF asserted user ID associated with this request, if there is one.
      static java.lang.String USER_NAME_MAPPED
      Constant for the key used in getData(String) for the SAF mapped user ID associated with this request, if there is one.
      static java.lang.String ZOS_CONNECT_FEATURE_VERSION
      Constant for the key used in getData(String) indicating the z/OS Connect feature version this server is running.
      static java.lang.String ZOS_CONNECT_FEATURE_VERSION_2_0
      Constant String value 2.0 indicating z/OS Connect feature zosconnect-2.0 is in use.
      static java.lang.String ZOS_CONNECT_FEATURE_VERSION_3_0
      Constant String value 3.0 indicating z/OS Connect feature zosconnect-3.0 is in use.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      java.lang.Object getData(java.lang.String key)
      Returns the specified data.
      java.lang.String getInputPayload()
      Returns a String representation of the input payload sent to the endpoint.
      boolean getInterceptorPreInvokeFailed()
      Returns a boolean value indicating that an exception was thrown by an interceptor.
      java.lang.String getOutputPayload()
      Returns a String representation of the output payload returned by the endpoint.
      java.lang.String getRequestHeader(java.lang.String key)
      Returns the value of the specified request header as a String.
      java.util.Enumeration<java.lang.String> getRequestHeaderNames()
      Returns an Enumeration of the names of all the request headers for this request.
      java.lang.String getResponseHeader(java.lang.String key)
      Returns the value of the specified response header as a String.
      java.util.Enumeration<java.lang.String> getResponseHeaderNames()
      Returns an Enumeration of the names of all the response headers for this request.