Project Wonder 5.0

com.webobjects.appserver
Class WOCookie

java.lang.Object
  extended by com.webobjects.appserver.WOCookie
All Implemented Interfaces:
NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions, Serializable

public class WOCookie
extends Object
implements NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions, Serializable

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility
 
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCoding
NSKeyValueCoding._BooleanFieldBinding, NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._FieldBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._MethodBinding, NSKeyValueCoding._NumberFieldBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.MapImplementation, NSKeyValueCoding.Null<T>, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.ValueAccessor
 
Field Summary
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding.ErrorHandling
_CLASS
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
_CLASS, _KeyPathSeparatorChar, KeyPathSeparator
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding
NullValue
 
Constructor Summary
WOCookie(String name, String value)
           
WOCookie(String name, String value, String path, String domain, int timeout, boolean isSecure)
           
WOCookie(String name, String value, String path, String domain, int timeout, boolean isSecure, boolean httpOnly)
           
WOCookie(String name, String value, String path, String domain, NSTimestamp expires, boolean isSecure)
           
WOCookie(String name, String value, String path, String domain, NSTimestamp expires, boolean isSecure, boolean httpOnly)
           
 
Method Summary
static boolean canAccessFieldsDirectly()
           
static WOCookie cookieWithName(String name, String value)
          Deprecated. 
static WOCookie cookieWithName(String name, String value, String path, String domain, int timeout, boolean isSecure)
          Deprecated. 
static WOCookie cookieWithName(String name, String value, String path, String domain, NSTimestamp expires, boolean isSecure)
          Deprecated. 
 String domain()
           
 NSTimestamp expires()
           
 Object handleQueryWithUnboundKey(String key)
           
 void handleTakeValueForUnboundKey(Object value, String key)
           
 String headerString()
           
 boolean isHttpOnly()
           
 boolean isSecure()
           
 String name()
           
 String path()
           
 void readObject(ObjectInputStream out)
           
 void setDomain(String domain)
           
 void setExpires(NSTimestamp expires)
           
 void setIsHttpOnly(boolean isHttpOnly)
           
 void setIsSecure(boolean isSecure)
           
 void setName(String name)
           
 void setPath(String path)
           
 void setTimeOut(int timeout)
           
 void setValue(String value)
           
 void takeValueForKey(Object value, String key)
           
 void takeValueForKeyPath(Object value, String key)
           
 int timeOut()
           
 String toString()
           
 void unableToSetNullForKey(String key)
           
 String value()
           
 Object valueForKey(String key)
           
 Object valueForKeyPath(String key)
           
 void writeObject(ObjectOutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WOCookie

public WOCookie(String name,
                String value,
                String path,
                String domain,
                NSTimestamp expires,
                boolean isSecure)

WOCookie

public WOCookie(String name,
                String value,
                String path,
                String domain,
                NSTimestamp expires,
                boolean isSecure,
                boolean httpOnly)

WOCookie

public WOCookie(String name,
                String value,
                String path,
                String domain,
                int timeout,
                boolean isSecure)

WOCookie

public WOCookie(String name,
                String value,
                String path,
                String domain,
                int timeout,
                boolean isSecure,
                boolean httpOnly)

WOCookie

public WOCookie(String name,
                String value)
Method Detail

cookieWithName

@Deprecated
public static WOCookie cookieWithName(String name,
                                                 String value,
                                                 String path,
                                                 String domain,
                                                 NSTimestamp expires,
                                                 boolean isSecure)
Deprecated. 


cookieWithName

@Deprecated
public static WOCookie cookieWithName(String name,
                                                 String value,
                                                 String path,
                                                 String domain,
                                                 int timeout,
                                                 boolean isSecure)
Deprecated. 


cookieWithName

@Deprecated
public static WOCookie cookieWithName(String name,
                                                 String value)
Deprecated. 


toString

public String toString()
Overrides:
toString in class Object

headerString

public String headerString()

name

public String name()

setName

public void setName(String name)

value

public String value()

setValue

public void setValue(String value)

domain

public String domain()

setDomain

public void setDomain(String domain)

path

public String path()

setPath

public void setPath(String path)

expires

public NSTimestamp expires()

setExpires

public void setExpires(NSTimestamp expires)

setTimeOut

public void setTimeOut(int timeout)

timeOut

public int timeOut()

isSecure

public boolean isSecure()

setIsSecure

public void setIsSecure(boolean isSecure)

isHttpOnly

public boolean isHttpOnly()

setIsHttpOnly

public void setIsHttpOnly(boolean isHttpOnly)

canAccessFieldsDirectly

public static boolean canAccessFieldsDirectly()

valueForKey

public Object valueForKey(String key)
Specified by:
valueForKey in interface NSKeyValueCoding

takeValueForKey

public void takeValueForKey(Object value,
                            String key)
Specified by:
takeValueForKey in interface NSKeyValueCoding

handleQueryWithUnboundKey

public Object handleQueryWithUnboundKey(String key)
Specified by:
handleQueryWithUnboundKey in interface NSKeyValueCoding.ErrorHandling

handleTakeValueForUnboundKey

public void handleTakeValueForUnboundKey(Object value,
                                         String key)
Specified by:
handleTakeValueForUnboundKey in interface NSKeyValueCoding.ErrorHandling

unableToSetNullForKey

public void unableToSetNullForKey(String key)
Specified by:
unableToSetNullForKey in interface NSKeyValueCoding.ErrorHandling

valueForKeyPath

public Object valueForKeyPath(String key)
Specified by:
valueForKeyPath in interface NSKeyValueCodingAdditions

takeValueForKeyPath

public void takeValueForKeyPath(Object value,
                                String key)
Specified by:
takeValueForKeyPath in interface NSKeyValueCodingAdditions

writeObject

public void writeObject(ObjectOutputStream out)
                 throws IOException
Throws:
IOException

readObject

public void readObject(ObjectInputStream out)
                throws IOException,
                       ClassNotFoundException
Throws:
IOException
ClassNotFoundException

Last updated: Wed, Feb 22, 2012 • 07:00 AM EST

Copyright © 2002 – 2011 Project Wonder.