|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jmeter.testelement.AbstractTestElement org.apache.jmeter.protocol.http.control.Cookie
public class Cookie
This class is a Cookie encapsulator.
Field Summary |
---|
Fields inherited from interface org.apache.jmeter.testelement.TestElement |
---|
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS |
Constructor Summary | |
---|---|
Cookie()
create the coookie |
|
Cookie(String name,
String value,
String domain,
String path,
boolean secure,
long expires)
create the coookie |
|
Cookie(String name,
String value,
String domain,
String path,
boolean secure,
long expires,
boolean hasPath,
boolean hasDomain)
create the coookie |
|
Cookie(String name,
String value,
String domain,
String path,
boolean secure,
long expires,
boolean hasPath,
boolean hasDomain,
int version)
Create a JMeter Cookie. |
Method Summary | |
---|---|
void |
addConfigElement(ConfigElement config)
|
String |
getDomain()
get the domain for this object. |
long |
getExpires()
get the expiry time for the cookie |
long |
getExpiresMillis()
get the expiry time for the cookie |
String |
getPath()
get the path for this object. |
boolean |
getSecure()
get the secure for this object. |
String |
getValue()
get the value for this object. |
int |
getVersion()
|
boolean |
isDomainSpecified()
|
boolean |
isPathSpecified()
|
void |
setDomain(String domain)
set the domain for this object. |
void |
setDomainSpecified(boolean b)
|
void |
setExpires(long expires)
set the expiry time for the cookie |
void |
setPath(String path)
set the path for this object. |
void |
setPathSpecified(boolean b)
|
void |
setSecure(boolean secure)
set the secure for this object. |
void |
setValue(String value)
set the value for this object. |
void |
setVersion(int version)
|
String |
toString()
creates a string representation of this cookie |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Cookie()
public Cookie(String name, String value, String domain, String path, boolean secure, long expires)
expires
- - this is in secondspublic Cookie(String name, String value, String domain, String path, boolean secure, long expires, boolean hasPath, boolean hasDomain)
expires
- - this is in secondshasPath
- - was the path explicitly specified?hasDomain
- - was the domain explicitly specified?public Cookie(String name, String value, String domain, String path, boolean secure, long expires, boolean hasPath, boolean hasDomain, int version)
name
- value
- domain
- path
- secure
- expires
- - this is in secondshasPath
- - was the path explicitly specified?hasDomain
- - was the domain explicitly specified?version
- - cookie spec. versionMethod Detail |
---|
public void addConfigElement(ConfigElement config)
public String getValue()
public void setValue(String value)
public String getDomain()
public void setDomain(String domain)
public long getExpires()
public long getExpiresMillis()
public void setExpires(long expires)
expires
- - expiry time in seconds since the Java epochpublic boolean getSecure()
public void setSecure(boolean secure)
public String getPath()
public void setPath(String path)
public void setPathSpecified(boolean b)
public boolean isPathSpecified()
public void setDomainSpecified(boolean b)
public boolean isDomainSpecified()
public String toString()
toString
in class Object
public int getVersion()
public void setVersion(int version)
version
- the version to set
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |