org.apache.jmeter.samplers
Class Cookie

java.lang.Object
  |
  +--org.apache.jmeter.samplers.Cookie

class Cookie
extends java.lang.Object
implements java.lang.Cloneable

This class is a Cookie encapsulator.

Author:
Sean Dowd

Field Summary
private  java.lang.String domain
           
private  long expires
           
private  java.lang.String name
           
private  java.lang.String path
           
private  boolean secure
           
private  java.lang.String value
           
 
Constructor Summary
(package private) Cookie(java.lang.String name, java.lang.String value, java.lang.String domain, java.lang.String path, boolean secure, long expires)
          create the coookie
 
Method Summary
 java.lang.String getDomain()
          get the domain for this object.
 long getExpires()
          get the expires for this object.
 java.lang.String getName()
          get the name for this object.
 java.lang.String getPath()
          get the path for this object.
 boolean getSecure()
          get the secure for this object.
 java.lang.String getValue()
          get the value for this object.
 void setDomain(java.lang.String domain)
          set the domain for this object.
 void setExpires(long expires)
          set the expires for this object.
 void setName(java.lang.String name)
          set the name for this object.
 void setPath(java.lang.String path)
          set the path for this object.
 void setSecure(boolean secure)
          set the secure for this object.
 void setValue(java.lang.String value)
          set the value for this object.
 java.lang.String toString()
          creates a string representation of this cookie
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

name

private java.lang.String name

value

private java.lang.String value

domain

private java.lang.String domain

expires

private long expires

secure

private boolean secure

path

private java.lang.String path
Constructor Detail

Cookie

Cookie(java.lang.String name,
       java.lang.String value,
       java.lang.String domain,
       java.lang.String path,
       boolean secure,
       long expires)
create the coookie
Method Detail

getName

public java.lang.String getName()
get the name for this object.

setName

public void setName(java.lang.String name)
set the name for this object.

getValue

public java.lang.String getValue()
get the value for this object.

setValue

public void setValue(java.lang.String value)
set the value for this object.

getDomain

public java.lang.String getDomain()
get the domain for this object.

setDomain

public void setDomain(java.lang.String domain)
set the domain for this object.

getExpires

public long getExpires()
get the expires for this object.

setExpires

public void setExpires(long expires)
set the expires for this object.

getSecure

public boolean getSecure()
get the secure for this object.

setSecure

public void setSecure(boolean secure)
set the secure for this object.

getPath

public java.lang.String getPath()
get the path for this object.

setPath

public void setPath(java.lang.String path)
set the path for this object.

toString

public java.lang.String toString()
creates a string representation of this cookie
Overrides:
toString in class java.lang.Object

Copyright (c) 1998-99 The Java Apache Project