org.directwebremoting.dwrp
Enum PartialResponse

java.lang.Object
  extended by java.lang.Enum<PartialResponse>
      extended by org.directwebremoting.dwrp.PartialResponse
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PartialResponse>

public enum PartialResponse
extends java.lang.Enum<PartialResponse>

A set of constants that represent how browsers need data flushed to them

Author:
Joe Walker [joe at getahead dot ltd dot uk]

Enum Constant Summary
FLUSH
          The client can only handle partial responses with a 4k data post (can be whitespace) - we're talking IE here.
NO
          The client can not handle partial responses
YES
          The client can handle partial responses
 
Method Summary
static PartialResponse fromOrdinal(java.lang.String lookupid)
          Convert a string from the web into a PartialResponse.
static PartialResponse valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PartialResponse[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NO

public static final PartialResponse NO
The client can not handle partial responses


YES

public static final PartialResponse YES
The client can handle partial responses


FLUSH

public static final PartialResponse FLUSH
The client can only handle partial responses with a 4k data post (can be whitespace) - we're talking IE here.

Method Detail

values

public static PartialResponse[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (PartialResponse c : PartialResponse.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PartialResponse valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

fromOrdinal

public static PartialResponse fromOrdinal(java.lang.String lookupid)
Convert a string from the web into a PartialResponse. The values are PARTIAL_RESPONSE_NO = "0", PARTIAL_RESPONSE_YES = "1" and PARTIAL_RESPONSE_FLUSH = "2"

Parameters:
lookupid - The PartialResponse to look-up
Returns:
a matching PartialResponse or null if one was not found

Copyright 2008