Class ResponseValidator

java.lang.Object
    com.citrix.mvpn.api.ResponseValidator
public class ResponseValidator
extends java.lang.Object
<!--NeedCopy-->

ResponseValidator.java - This is a validator class. It can be used to validate the WebView, OkHttp, URL connection responses to check if the Citrix Gateway session is expired or not.

Field Summary

Modifier and Type Field and Description
static java.lang.String TAG

Method Summary

Modifier and Type Method Description
static boolean isNetScalerCookieExpired (java.lang.Object okHttpResponse) This method checks if OkHttp Response has cookie expiry header info.
static boolean isNetScalerCookieExpired (java.net.URLConnection urlConnection) This method checks if URLConnection Response has cookie expiry header info.
static boolean isNetScalerCookieExpired (android.webkit.WebResourceResponse response) This method checks if WebView Response has cookie expiry header info.

Field Detail

TAG

public static final java.lang.String TAG
<!--NeedCopy-->

See Also: Constant Field Values

Method Detail

isNetScalerCookieExpired

public static boolean isNetScalerCookieExpired(java.lang.Object okHttpResponse)
<!--NeedCopy-->

This method checks if OkHttp response has cookie expiry header info.

Parameters

okHttpResponse - This is the Response for a OkHttp request.

Returns

Returns true if the Citrix Gateway session is expired.


isNetScalerCookieExpired

public static boolean isNetScalerCookieExpired(java.net.URLConnection urlConnection)
<!--NeedCopy-->

This method checks if URLConnection response has cookie expiry header info.

Parameters

urlConnection - This is the URLConnection object.

Returns

Returns true if the Citrix Gateway session is expired.


isNetScalerCookieExpired

public static boolean isNetScalerCookieExpired(android.webkit.WebResourceResponse response)
<!--NeedCopy-->

This method checks if WebView response has cookie expiry header info.

Parameters

response - This is the WebResourceResponse for a WebView request.

Returns

Returns true if the Citrix Gateway session is expired.

Class ResponseValidator