wt.content
Class HttpOperationStatus

java.lang.Object
  extended bywt.fc.EnumeratedType
      extended bywt.content.HttpOperationStatus
All Implemented Interfaces:
EnumeratedType, LocalizableMessage, LocalizableMetadata, Message, Serializable

public class HttpOperationStatus
extends EnumeratedType
implements Serializable

Used to indicate status of an upload or a download. The statuses are self-explanatory. The initial status of HttpOperationItems and HttpContentOperation objects is READY. Clients should be prepared to deal with statuses returned as COMPLETE, FAILED, UNKNOWN, IGNORE, CANCEL.

Supported API: true

Extendable: false

See Also:
HttpContentOperation, HttpOperationItem, Serialized Form

Nested Class Summary
 
Nested classes inherited from class wt.fc.EnumeratedType
 
Field Summary
static HttpOperationStatus CANCEL
          

Supported API: false
private static String CLASS_RESOURCE
           
private static String CLASSNAME
           
static HttpOperationStatus COMPLETE
          

Supported API: false
static HttpOperationStatus FAILED
          

Supported API: false
static HttpOperationStatus IGNORE
          

Supported API: false
private static Hashtable localeSets
           
static HttpOperationStatus READY
          

Supported API: false
private static String RESOURCE
           
static HttpOperationStatus RUNNING
          

Supported API: false
static HttpOperationStatus UNKNOWN
          

Supported API: false
private static EnumeratedType[] valueSet
           
static HttpOperationStatus WAITING_FOR_INPUT
          

Supported API: false
 
Fields inherited from class wt.fc.EnumeratedType
secretHandshake, SEP_CHAR
 
Fields inherited from interface wt.meta.EnumeratedType
DEFAULT_VALUE, ORDER, SELECTABLE
 
Constructor Summary
protected HttpOperationStatus()
          Used by sub-classes that need a default constructor.
 
Method Summary
static HttpOperationStatus getHttpOperationStatusDefault()
          Returns the default value (instance) for the HttpOperationStatus set.
static HttpOperationStatus[] getHttpOperationStatusSet()
          Returns a copy of the set of valid values (instances) for the HttpOperationStatus class.
protected  EnumeratedType[] getLocaleSet(Locale locale)
          Returns the set of values (instances) for this instance, for the specified locale.
 EnumeratedType[] getValueSet()
          Returns a copy of the set of valid values (instances) for this instance, for the current user locale.
private static EnumeratedType[] initializeLocaleSet(Locale locale)
           
static HttpOperationStatus newHttpOperationStatus(int secretHandshake)
          Used by EnumeratedType for constructing instances of HttpOperationStatus, from a resource bundle.
static HttpOperationStatus toHttpOperationStatus(String internal_value)
          Returns the HttpOperationStatus instance for the internal_value argument.
protected  EnumeratedType[] valueSet()
          Returns a reference to the set of valid values (instances) for this instance.
 
Methods inherited from class wt.fc.EnumeratedType
defaultEnumeratedType, dynamicInstance, equals, getAbbreviatedDisplay, getComment, getComment, getDisplay, getDisplay, getFullDisplay, getInternalKey, getLocalizedMessage, getLocalizedValues, getLongDescription, getOrder, getSelectableValueSet, getShortDescription, getShortDescription, getStringValue, getStringValue, getValidSet, getValue, hashCode, instantiateSet, isDefaultValue, isDefaultValue, isPrimaryKey, isSelectable, main, readResolve, toEnumeratedType, toEnumeratedType, toEnumeratedType, toString, validateFriendship
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

CLASS_RESOURCE

private static final String CLASS_RESOURCE
See Also:
Constant Field Values

valueSet

private static final EnumeratedType[] valueSet

localeSets

private static Hashtable localeSets

READY

public static final HttpOperationStatus READY


Supported API: false


WAITING_FOR_INPUT

public static final HttpOperationStatus WAITING_FOR_INPUT


Supported API: false


RUNNING

public static final HttpOperationStatus RUNNING


Supported API: false


COMPLETE

public static final HttpOperationStatus COMPLETE


Supported API: false


FAILED

public static final HttpOperationStatus FAILED


Supported API: false


UNKNOWN

public static final HttpOperationStatus UNKNOWN


Supported API: false


IGNORE

public static final HttpOperationStatus IGNORE


Supported API: false


CANCEL

public static final HttpOperationStatus CANCEL


Supported API: false

Constructor Detail

HttpOperationStatus

protected HttpOperationStatus()
Used by sub-classes that need a default constructor.

Supported API: false

Method Detail

newHttpOperationStatus

public static HttpOperationStatus newHttpOperationStatus(int secretHandshake)
                                                  throws IllegalAccessException
Used by EnumeratedType for constructing instances of HttpOperationStatus, from a resource bundle.

Supported API: false

Parameters:
secretHandshake -
Returns:
HttpOperationStatus
Throws:
IllegalAccessException

toHttpOperationStatus

public static HttpOperationStatus toHttpOperationStatus(String internal_value)
                                                 throws WTInvalidParameterException
Returns the HttpOperationStatus instance for the internal_value argument.

Supported API: true

Parameters:
internal_value - The internal (persistent) value for a valid instance of HttpOperationStatus.
Returns:
HttpOperationStatus
Throws:
WTInvalidParameterException

getHttpOperationStatusDefault

public static HttpOperationStatus getHttpOperationStatusDefault()
Returns the default value (instance) for the HttpOperationStatus set.

Supported API: true

Returns:
HttpOperationStatus

getHttpOperationStatusSet

public static HttpOperationStatus[] getHttpOperationStatusSet()
Returns a copy of the set of valid values (instances) for the HttpOperationStatus class.

Supported API: true

Returns:
HttpOperationStatus[]

getValueSet

public EnumeratedType[] getValueSet()
Returns a copy of the set of valid values (instances) for this instance, for the current user locale.

Supported API: true

Specified by:
getValueSet in class EnumeratedType
Returns:
EnumeratedType[]

valueSet

protected EnumeratedType[] valueSet()
Returns a reference to the set of valid values (instances) for this instance.

Supported API: false

Specified by:
valueSet in class EnumeratedType
Returns:
EnumeratedType[]

getLocaleSet

protected EnumeratedType[] getLocaleSet(Locale locale)
Returns the set of values (instances) for this instance, for the specified locale.

Supported API: false

Specified by:
getLocaleSet in class EnumeratedType
Parameters:
locale -
Returns:
EnumeratedType[]

initializeLocaleSet

private static EnumeratedType[] initializeLocaleSet(Locale locale)
                                             throws Throwable
Parameters:
locale -
Returns:
EnumeratedType[]
Throws:
Throwable