Class AbstractApiActionHandler

    • Field Detail

      • appName

        protected String appName
      • baseURL

        protected String baseURL
      • activeProfileName

        protected String activeProfileName
      • activeUserProfile

        protected UserProfile activeUserProfile
      • sessionExpiryDurationInSeconds

        protected int sessionExpiryDurationInSeconds
      • lastRequestAccessTimeInMs

        protected long lastRequestAccessTimeInMs
      • logoutRequest

        protected boolean logoutRequest
      • targetServerName

        protected String targetServerName
    • Constructor Detail

      • AbstractApiActionHandler

        public AbstractApiActionHandler​(String appName,
                                        int sessionExpiryDurationInSeconds,
                                        String targetServerName)
    • Method Detail

      • setApiTestManager

        public void setApiTestManager​(ApiTestManager apiTestManager)
      • setActiveProfileName

        public HttpSession setActiveProfileName​(String profileName)
      • authenticate

        protected void authenticate​(String profileName)
      • getActiveProfileName

        public String getActiveProfileName()
      • prepareResponse

        protected HttpResponse prepareResponse​(okhttp3.OkHttpClient client,
                                               okhttp3.Request.Builder requestBuilder,
                                               boolean expectResponseBody,
                                               String targetURL)
      • prepareRequestCookieFromHttpSession

        protected String prepareRequestCookieFromHttpSession()
      • checkAndSetSessionCookie

        protected void checkAndSetSessionCookie​(HttpResponse httpResponse)
      • isSessionExpired

        protected boolean isSessionExpired()
      • getActiveUserProfile

        public UserProfile getActiveUserProfile()
      • getSessionExpiryDurationInSeconds

        public int getSessionExpiryDurationInSeconds()
      • getLastRequestAccessTimeInMs

        public long getLastRequestAccessTimeInMs()