Top Description Fields Constructors Methods
com.sun.faces.context

public final Enum ContextParam

extends Enum<ContextParam>
Class Inheritance
Imports
javax.faces.push.PushContext

The enumeration of all our context-param entries.

Field Summary

Modifier and TypeField and Description
private final Object
defaultValue

Stores the default value.

public static final ContextParam
EnableDistributable

Enable distributable code.

private final String
name

Hides java.lang.Enum.name.

Stores the name.
public static final ContextParam
SendPoweredByHeader

Send the "X-Powered-By" header.

private final Class<T>
type

Stores the type.

public static final ContextParam
WebsocketEndpointPort

The websocket endpoint port (default 0 means the code will take the port from the request)

Constructor Summary

AccessConstructor and Description
private
ContextParam(String name, Class<T> type, Object defaultValue)

Constructor.

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

the default value.
getDefaultValue
()

Get the default value.

public <
the type.
T
>
T

Returns:

the default value.
getDefaultValue
(Class<T>
the class.
clazz
)

Get the default value.

public String

Returns:

the name.
getName
()

Get the name.

public Class<T>

Returns:

the type.
getType
()

Get the type.

public static ContextParam
public static ContextParam[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

defaultValueback to summary
private final Object defaultValue

Stores the default value.

EnableDistributableback to summary
public static final ContextParam EnableDistributable

Enable distributable code.

nameback to summary
private final String name

Hides java.lang.Enum.name.

Stores the name.

SendPoweredByHeaderback to summary
public static final ContextParam SendPoweredByHeader

Send the "X-Powered-By" header.

typeback to summary
private final Class<T> type

Stores the type.

WebsocketEndpointPortback to summary
public static final ContextParam WebsocketEndpointPort

The websocket endpoint port (default 0 means the code will take the port from the request)

Constructor Detail

ContextParamback to summary
private ContextParam(String name, Class<T> type, Object defaultValue)

Constructor.

Method Detail

getDefaultValueback to summary
public Object getDefaultValue()

Get the default value.

Returns:Object

the default value.

getDefaultValueback to summary
public <T> T getDefaultValue(Class<T> clazz)

Get the default value.

Parameters
<T>
the type.
clazz:Class<T>

the class.

Returns:T

the default value.

getNameback to summary
public String getName()

Get the name.

Returns:String

the name.

getTypeback to summary
public Class<T> getType()

Get the type.

Returns:Class<T>

the type.

valueOfback to summary
public static ContextParam valueOf(String name)
valuesback to summary
public static ContextParam[] values()