Interface PreviewParameter
@NonExtendable
public interface PreviewParameter
Object containing a map of parameters configured in the Multi-Perspective-Preview,
accessible via
Example:
PreviewParameter.Factory.from(Object) on the webserver.
Example:
PreviewParametermpp =PreviewParameter.Factory.from(request); if (mpp != null) { String gender = mpp.getParameter("gender"); Number age = mpp.getParameter("age"); if ("male".equals(gender) && age != null && age >= 18) { // ... } }
- Since:
- 5.2.28
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFactory providing methods for getting aPreviewParameterinstance. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of theHttpSessionattribute this object will be assigned to. -
Method Summary
Modifier and TypeMethodDescription@Nullable ObjectgetParameter(@NotNull String name) Returns the parameter value for the specified name.@Nullable DateReturns the configured preview time.
-
Field Details
-
SESSION_ATTRIBUTE
The name of theHttpSessionattribute this object will be assigned to.- Since:
- 5.2.28
- See Also:
-
-
Method Details
-
getParameter
Returns the parameter value for the specified name.- Parameters:
name- The name of the parameter value to return.- Returns:
- The parameter value, or
nullif not found. - Since:
- 5.2.28
-
getTimeParameter
Returns the configured preview time.- Returns:
- The time parameter.
- Since:
- 5.2.28
-