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 SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic classFactory providing methods for getting aPreviewParameterinstance.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringThe name of theHttpSessionattribute this object will be assigned to.
- 
Method SummaryModifier and TypeMethodDescription@Nullable ObjectgetParameter(@NotNull String name) Returns the parameter value for the specified name.@Nullable DateReturns the configured preview time.
- 
Field Details- 
SESSION_ATTRIBUTEThe name of theHttpSessionattribute this object will be assigned to.- Since:
- 5.2.28
- See Also:
 
 
- 
- 
Method Details- 
getParameterReturns 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
 
- 
getTimeParameterReturns the configured preview time.- Returns:
- The time parameter.
- Since:
- 5.2.28
 
 
-