IP*Works! V9

ipworks
Class HTTPCookie

java.lang.Object
  extended by ipworks.HTTPCookie

public class HTTPCookie
extends java.lang.Object

An HTTP cookie either sent to or received from the server.

An HTTP cookie can store the cookies that are to be sent to the server. It may also store the cookies set by the server.

Cookies that are to be sent to the server must have the Name and Value fields supplied prior to submitting the URL . However, when the SetCookie event is fired, all of the fields of an HTTPCookie are filled out accordingly.

Domain: The domain of a received cookie. This field contains a domain name to limit the cookie to (if provided by the server). If the server does not provide a domain name, this field will contain an empty string. The convention in this case is to use the server name specified by URLServer as the cookie domain.

Expiration: This field contains an expiration time for the cookie (if provided by the server). The time format used is "Weekday, DD-Mon-YY HH:MM:SS GMT". If the server does not provide an expiration time, this field will contain an empty string. The convention is to drop the cookie at the end of the session.

Name: The name of the cookie.

This field, along with Value store the cookie that is to be sent to the server. The SetCookie event displays the cookies set by the server and their properties.

Path: This field contains a path name to limit the cookie to (if provided by the server). If the server does not provide a cookie path, the path field will be an empty string. The convention in this case is to use the path specified by URLPath as the cookie path.

Secure: This field contains the security flag of the received cookie. This field specifies whether the cookie is secure. If the value of this field is True, the cookie value must be submitted through a secure (HTTPS) connection only.

Value: This field contains the value of the cookie. The cookie specified by Name has a corresponding value associated with it. This property holds that value.

The SetCookie event provides the cookies set by the server.

See Also:
Atom, Atom.HTTPCookie

Constructor Summary
HTTPCookie()
           
HTTPCookie(java.lang.String name, java.lang.String value)
           
 
Method Summary
 java.lang.String getDomain()
           
 java.lang.String getExpiration()
           
 java.lang.String getName()
           
 java.lang.String getPath()
           
 boolean getSecure()
           
 java.lang.String getValue()
           
 void setName(java.lang.String value)
           
 void setValue(java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTTPCookie

public HTTPCookie()

HTTPCookie

public HTTPCookie(java.lang.String name,
                  java.lang.String value)
Method Detail

getDomain

public java.lang.String getDomain()

getExpiration

public java.lang.String getExpiration()

getName

public java.lang.String getName()

setName

public void setName(java.lang.String value)

getPath

public java.lang.String getPath()

getSecure

public boolean getSecure()

getValue

public java.lang.String getValue()

setValue

public void setValue(java.lang.String value)

IP*Works! V9

Copyright (c) 2013 /n software inc. - All rights reserved.