Package org.apache.wicket.ajax
Class AjaxChannel
- java.lang.Object
-
- org.apache.wicket.ajax.AjaxChannel
-
- All Implemented Interfaces:
java.io.Serializable
,org.apache.wicket.util.io.IClusterable
public class AjaxChannel extends java.lang.Object implements org.apache.wicket.util.io.IClusterable
A Channel used to define how Ajax requests are processed at the client side. Channels are either:- queueing - Ajax requests are kept in a Queue at the client side and processed one at a time. Default.
- dropping - only the last Ajax request is processed, all previously scheduled requests are discarded
- active - discards any Ajax requests if there is a running Ajax request on the same channel
- Author:
- Martin Dilger
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AjaxChannel.Type
The type of anAjaxChannel
-
Field Summary
Fields Modifier and Type Field Description static AjaxChannel
DEFAULT
The default channel for all Ajax callsstatic java.lang.String
DEFAULT_NAME
The name of the default channelstatic AjaxChannel.Type
DEFAULT_TYPE
The type of the default channel
-
Constructor Summary
Constructors Constructor Description AjaxChannel(java.lang.String name)
Construct.AjaxChannel(java.lang.String name, AjaxChannel.Type type)
Construct.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getName()
AjaxChannel.Type
getType()
int
hashCode()
java.lang.String
toString()
-
-
-
Field Detail
-
DEFAULT_NAME
public static final java.lang.String DEFAULT_NAME
The name of the default channel- See Also:
- Constant Field Values
-
DEFAULT_TYPE
public static final AjaxChannel.Type DEFAULT_TYPE
The type of the default channel
-
DEFAULT
public static final AjaxChannel DEFAULT
The default channel for all Ajax calls
-
-
Constructor Detail
-
AjaxChannel
public AjaxChannel(java.lang.String name)
Construct.- Parameters:
name
- the name of the channel
-
AjaxChannel
public AjaxChannel(java.lang.String name, AjaxChannel.Type type)
Construct.- Parameters:
name
- the name of the channeltype
- the behavior type of this channel
-
-
Method Detail
-
getName
public java.lang.String getName()
- Returns:
- the name
-
getType
public AjaxChannel.Type getType()
- Returns:
- the type of this channel
- See Also:
AjaxChannel.Type
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-