| CLASS info |
| public final class NetworkTool |
| Uses a specified parameter to construct a cookie help class. |
| Return type | Method name |
| static String | public static String buildNetworkUrl(String domain, Boolean isUseHttps) Returns cookie url based on the domain name and isUseHttps. |
| static String | public static String buildNetworkCookie(String cookieName, String cookieValue, String domain, String path, Boolean isHttpOnly, Boolean isSecure, Long maxAge) Constructs a cookie by combining input values. |
| Method |
| public static String buildNetworkUrl(String domain, Boolean isUseHttps) |
| Returns cookie url based on the domain name and isUseHttps. |
Parameters
| Parameter name | Parameter desc |
| domain | Domain name. |
| isUseHttps | Value true indicates HTTPS, and value false indicates HTTP. |
Return
| type | desc |
| String | cookie url |
Parameters
| Parameter name | Parameter desc |
| cookieName | Cookie name. |
| cookieValue | Cookie value. |
| domain | Cookie domain name. |
| path | Page path for accessing the cookie. |
| isHttpOnly | Value true indicates that the cookie information is contained only in the HTTP request header and cannot be accessed through document.cookie. |
| isSecure | Value true indicates that the cookie can be transmitted only through HTTPS, and value false indicates that the cookie can be transmitted through HTTP. |
| maxAge | Cookie lifetime, in seconds. |
Return
| type | desc |
| String | Combined cookie data. |