Secure iNet Factory

com.jscape.inet.http
Class HttpCookie

java.lang.Object
  extended by com.jscape.inet.mime.MimeHeader
      extended by com.jscape.inet.http.HttpCookie
All Implemented Interfaces:
MimeConstants, java.io.Serializable

public class HttpCookie
extends MimeHeader

Represents an HTTP cookie returned in an HTTP response.

See Also:
HttpResponse.getCookies(), Serialized Form

Field Summary
 
Fields inherited from interface com.jscape.inet.mime.MimeConstants
COLON, CR, CRLF, EQUALS, LF, QUESTION_MARK, SEMI_COLON, SPACE, TAB
 
Constructor Summary
HttpCookie()
          Constructs a new HttpCookie instance.
 
Method Summary
 java.lang.String getComment()
          Gets the comment of this HttpCookie
 java.lang.String getCookieName()
          Gets the name of this HttpCookie
 java.lang.String getCookieValue()
          Gets the value of this HttpCookie
 java.lang.String getDomain()
          Gets the domain of this HttpCookie
 java.util.Date getExpires()
          Gets the expiration date of this HttpCookie
 java.lang.String getPath()
          Gets the path of this HttpCookie
 boolean isSecure()
          Checks if this HttpCookie is secure.
 
Methods inherited from class com.jscape.inet.mime.MimeHeader
addAttribute, addAttribute, getAttribute, getAttributes, getName, getValue, getValueString, isFolding, isValid, removeAttribute, setFolding, setName, setValue, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HttpCookie

public HttpCookie()
           throws MimeException
Constructs a new HttpCookie instance.

Throws:
MimeException - if a MIME related parsing error occurs
Method Detail

getCookieName

public java.lang.String getCookieName()
Gets the name of this HttpCookie

Returns:
cookie name

getCookieValue

public java.lang.String getCookieValue()
Gets the value of this HttpCookie

Returns:
cookie value

getPath

public java.lang.String getPath()
Gets the path of this HttpCookie

Returns:
path

getComment

public java.lang.String getComment()
Gets the comment of this HttpCookie

Returns:
comment

getExpires

public java.util.Date getExpires()
Gets the expiration date of this HttpCookie

Returns:
expires

getDomain

public java.lang.String getDomain()
Gets the domain of this HttpCookie

Returns:
domain

isSecure

public boolean isSecure()
Checks if this HttpCookie is secure.

Returns:
true if cookie is secure, false otherwise

Secure iNet Factory

Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved