com.trolltech.qt.network
Class QNetworkCookie.RawForm

java.lang.Object
  extended by java.lang.Enum
      extended by com.trolltech.qt.network.QNetworkCookie.RawForm
All Implemented Interfaces:
QtEnumerator, java.io.Serializable, java.lang.Comparable
Enclosing class:
QNetworkCookie

public static final class QNetworkCookie.RawForm
extends java.lang.Enum
implements QtEnumerator

This enum is used with the toRawForm() function to declare which form of a cookie shall be returned. Note that only the Full form of the cookie can be parsed back into its original contents.

See also:
toRawForm(), and parseCookies().

See Also:
Serialized Form

Field Summary
static QNetworkCookie.RawForm Full
          makes toRawForm() return the full cookie contents, as suitable for sending to a client in a server's "Set-Cookie:" header.
static QNetworkCookie.RawForm NameAndValueOnly
          makes toRawForm() return only the "NAME=VALUE" part of the cookie, as suitable for sending back to a server in a client request's "Cookie:" header.
 
Method Summary
static QNetworkCookie.RawForm resolve(int value)
          Returns the QNetworkCookie$RawForm constant with the specified int.
 int value()
          This function should return an integer value for the enum values of the enumeration that implements this interface.
static QNetworkCookie.RawForm valueOf(java.lang.String name)
           
static QNetworkCookie.RawForm[] values()
           
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NameAndValueOnly

public static final QNetworkCookie.RawForm NameAndValueOnly
makes toRawForm() return only the "NAME=VALUE" part of the cookie, as suitable for sending back to a server in a client request's "Cookie:" header. Multiple cookies are separated by a semi-colon in the "Cookie:" header field.


Full

public static final QNetworkCookie.RawForm Full
makes toRawForm() return the full cookie contents, as suitable for sending to a client in a server's "Set-Cookie:" header. Multiple cookies are separated by commas in a "Set-Cookie:" header.

Method Detail

values

public static QNetworkCookie.RawForm[] values()

valueOf

public static QNetworkCookie.RawForm valueOf(java.lang.String name)

value

public int value()
This function should return an integer value for the enum values of the enumeration that implements this interface.

Specified by:
value in interface QtEnumerator

resolve

public static QNetworkCookie.RawForm resolve(int value)
Returns the QNetworkCookie$RawForm constant with the specified int.