burp
Interface ICookie


public interface ICookie

This interface is used to hold details about an HTTP cookie.


Method Summary
 java.lang.String getDomain()
          This method is used to retrieve the domain for which the cookie is in scope.
 java.util.Date getExpiration()
          This method is used to retrieve the expiration time for the cookie.
 java.lang.String getName()
          This method is used to retrieve the name of the cookie.
 java.lang.String getPath()
          This method is used to retrieve the path for which the cookie is in scope.
 java.lang.String getValue()
          This method is used to retrieve the value of the cookie.
 

Method Detail

getDomain

java.lang.String getDomain()
This method is used to retrieve the domain for which the cookie is in scope.

Returns:
The domain for which the cookie is in scope. Note: For cookies that have been analyzed from responses (by calling IExtensionHelpers.analyzeResponse() and then IResponseInfo.getCookies(), the domain will be null if the response did not explicitly set a domain attribute for the cookie.

getPath

java.lang.String getPath()
This method is used to retrieve the path for which the cookie is in scope.

Returns:
The path for which the cookie is in scope or null if none is set.

getExpiration

java.util.Date getExpiration()
This method is used to retrieve the expiration time for the cookie.

Returns:
The expiration time for the cookie, or null if none is set (i.e., for non-persistent session cookies).

getName

java.lang.String getName()
This method is used to retrieve the name of the cookie.

Returns:
The name of the cookie.

getValue

java.lang.String getValue()
This method is used to retrieve the value of the cookie.

Returns:
The value of the cookie.