com.sapportals.wcm.util.http

Interface ICookie

All Known Subinterfaces:
IExtendedCookie

public interface ICookie

HTTP cookie.

Copyright (c) SAP AG 2001-2002


Method Summary
 boolean appliesTo(IUri uri)
          Determine if cookie applies to uri
 String getHeaderValue()
          Get cookie value suitable for sending back to server.
 String getKey()
          Get key under which this cookie can be stored.
 int getVersion()
          Get Version cookie was created with (0 = unknown).
 boolean isExpired()
          Determine if cookie has expired
 

Method Detail

isExpired

public boolean isExpired()
Determine if cookie has expired

Returns:
if cookie has expired

appliesTo

public boolean appliesTo(IUri uri)
Determine if cookie applies to uri

Parameters:
uri - TBD: Description of the incoming method parameter
Returns:
if cookie applues to uri

getKey

public String getKey()
Get key under which this cookie can be stored. Must be unique across domains and paths and names.

Returns:
key for storage of cookie

getVersion

public int getVersion()
Get Version cookie was created with (0 = unknown).

Returns:
version of cookie protocol

getHeaderValue

public String getHeaderValue()
Get cookie value suitable for sending back to server. The value is the HTTP header value, without leading "Cookie:" and without leading version information.

Returns:
HTTP header value


Copyright 2006 SAP AG Complete Copyright Notice