public class ImResponseCookie extends Object
该类用于封装会话响应的Cookie数据
Cookie response data encapsulation class
This class is used to encapsulate cookie data for session responses..
program: Sinlmao Commons Network Utils
description: 会话响应的Cookie数据封装类
create: 2019-11-07 15:50
| 构造器和说明 |
|---|
ImResponseCookie() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getDomain()
获取Domain值
Get Domain value
|
String |
getExpires()
获取有效期值
Get valid
|
String |
getMaxAge()
获取MaxAge值
Get MaxAge value
|
String |
getName()
获取数据名
Get Data name
|
String |
getPath()
获取Path值
Get Path value
|
String |
getValue()
获取数据值
Get Data value
|
void |
ImResponseCookie() |
void |
ImResponseCookie(String name,
String value)
封装一个响应的Cookie数据
Build a response cookie data
|
boolean |
isHttpOnly()
获取HttpOnly值
Get HttpOnly value
|
boolean |
isSecure()
获取Secure值
Get Path value
|
void |
setDomain(String domain)
设置Domain值
Set Domain value
|
void |
setExpires(String expires)
设置有效期值
Set valid
|
void |
setHttpOnly(boolean httpOnly)
设置HttpOnly值
Set HttpOnly value
|
void |
setMaxAge(String maxAge)
设置MaxAge值
Set MaxAge value
|
void |
setName(String name)
设置数据名
Set Data name
|
void |
setPath(String path)
设置Path值
Set Domain value
|
void |
setSecure(boolean secure)
设置Secure值
Set Domain value
|
void |
setValue(String value)
设置数据值
Set Data value
|
public void ImResponseCookie()
public void ImResponseCookie(String name, String value)
Build a response cookie data
name - 数据名 value - 数据值 public String getName()
Get Data name
public void setName(String name)
Set Data name
public String getValue()
Get Data value
public void setValue(String value)
Set Data value
value - 数据值 public String getExpires()
Get valid
public void setExpires(String expires)
Set valid
expires - 有效期值 public String getMaxAge()
Get MaxAge value
public void setMaxAge(String maxAge)
Set MaxAge value
maxAge - MaxAge public String getDomain()
Get Domain value
public void setDomain(String domain)
Set Domain value
domain - Domain值 public String getPath()
Get Path value
public void setPath(String path)
Set Domain value
path - Path值 public boolean isSecure()
Get Path value
public void setSecure(boolean secure)
Set Domain value
secure - Secure值 public boolean isHttpOnly()
Get HttpOnly value
public void setHttpOnly(boolean httpOnly)
Set HttpOnly value
httpOnly - HttpOnly值 Copyright © 2020. All rights reserved.