@ThreadRestricted(value="wicket") public static final class VoterPage.U extends Object
Modifier and Type | Method and Description |
---|---|
static IDPair |
idPairOrNobodyFor(PageParameters p)
Extracts the ID pair corresponding to query parameter 'u' or 'v' if either is
specified; otherwise returns IDPair.NOBODY.
|
static PageParameters |
setFrom(IDPair idPair,
PageParameters p)
Sets the appropriate identifier parameter ('u' or 'v') as specified by the ID
pair, and clears the other parameter; or clears both if ID pair is NOBODY.
|
static PageParameters |
withRecall_u_v(PageParameters pP)
Returns the specified page parameters (pP) with a value for the identifier
parameter ('u' or 'v') as recalled from the session.
|
public static IDPair idPairOrNobodyFor(PageParameters p)
RestartResponseException
- redirecting to an error message page if
both 'u' and 'v' are specified, or either is malformed.public static PageParameters setFrom(IDPair idPair, PageParameters p)
p
- the parameters, which may be null.public static PageParameters withRecall_u_v(PageParameters pP)
pP
- the parameter map, which may be null.