com.sapportals.wcm.util.http

Interface IExtendedCookie

All Superinterfaces:
ICookie

public interface IExtendedCookie
extends ICookie

HTTP cookie with extended functionality

Copyright (c) SAP AG 2001-2002


Method Summary
 long getCreationTime()
          Return when the cookie was set by the server
 long getExpiryTime()
          Get time when cookie will expire.
 IExtendedCookie setExpiryTime(long expires)
          Create a cookie with same values as this and expiration set to the given expiry time.
 
Methods inherited from interface com.sapportals.wcm.util.http.ICookie
appliesTo, getHeaderValue, getKey, getVersion, isExpired
 

Method Detail

getCreationTime

long getCreationTime()
Return when the cookie was set by the server

Returns:
when cookie was set by server

getExpiryTime

long getExpiryTime()
Get time when cookie will expire. If no expiry is set, Long.MAX_VALUE will be returned

Returns:
time of cookie expiry

setExpiryTime

IExtendedCookie setExpiryTime(long expires)
Create a cookie with same values as this and expiration set to the given expiry time.

Parameters:
expires - when cookie will expire (ms since epoch)
Returns:
new cookie with given expiration time
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] KMC-CM [sap.com] tc/km/frwk api EP-KM-CM
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM


Copyright 2014 SAP AG Complete Copyright Notice