Class ResponseValidator¶
java.lang.Object com.citrix.mvpn.api.ResponseValidator
public class ResponseValidator extends java.lang.Object
ResponseValidator.java - This is a validator class. It can be used to validate the WebView, OkHttp, URL connection responses to check if NetScaler session is expired or not.
Constructor Summary¶
Constructor Detail¶
ResponseValidator¶
public ResponseValidator()
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 |
Method Detail¶
isNetScalerCookieExpired¶
public static boolean isNetScalerCookieExpired(java.lang.Object okHttpResponse)
Parameters¶
okHttpResponse - this is the Response for a OkHttp request
Returns¶
Returns true if NetScaler session is expired
isNetScalerCookieExpired¶
public static boolean isNetScalerCookieExpired(java.net.URLConnection urlConnection)
Parameters¶
urlConnection - this is the URLConnection object
Returns¶
Returns true if NetScaler session is expired
isNetScalerCookieExpired¶
public static boolean isNetScalerCookieExpired(android.webkit.WebResourceResponse response)
Parameters¶
response - this is the WebResourceResponse for a WebView request
Returns¶
returns true if NetScaler session is expired