Enum Class HtmxResponseHeader
- All Implemented Interfaces:
Serializable,Comparable<HtmxResponseHeader>,Constable
Enum representing the response headers used by htmx.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAllows you to do a client-side redirect that does not do a full page reload.Pushes a new url into the history stack.Can be used to do a client-side redirect to a new location.Can be used to do a full refresh of the page on the client-side.Allows you to replace the current URL in the location bar.A CSS selector that allows you to choose which part of the response is used to be swapped in.Allows you to specify how the response will be swapped.A CSS selector that updates the target of the content update to a different element on the page.Can be used to trigger client side events.Can be used to trigger client side events after the settling step.Can be used to trigger client side events after the swap step. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()static HtmxResponseHeaderReturns the enum constant of this class with the specified name.static HtmxResponseHeader[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HX_LOCATION
Allows you to do a client-side redirect that does not do a full page reload.- See Also:
-
HX_REPLACE_URL
Allows you to replace the current URL in the location bar.- See Also:
-
HX_PUSH_URL
Pushes a new url into the history stack.- See Also:
-
HX_REDIRECT
Can be used to do a client-side redirect to a new location.- See Also:
-
HX_REFRESH
Can be used to do a full refresh of the page on the client-side.- See Also:
-
HX_RETARGET
A CSS selector that updates the target of the content update to a different element on the page.- See Also:
-
HX_RESELECT
A CSS selector that allows you to choose which part of the response is used to be swapped in.- See Also:
-
HX_TRIGGER
Can be used to trigger client side events.- See Also:
-
HX_TRIGGER_AFTER_SETTLE
Can be used to trigger client side events after the settling step.- See Also:
-
HX_TRIGGER_AFTER_SWAP
Can be used to trigger client side events after the swap step.- See Also:
-
HX_RESWAP
Allows you to specify how the response will be swapped.- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
-