public class PageMaker extends Object
| Constructor and Description |
|---|
PageMaker() |
| Modifier and Type | Method and Description |
|---|---|
static Page |
findPageInConversation(IRequestContext rctx,
Class<? extends UrlPage> clz,
String cid)
This tries to locate the specified page class in the conversation specified, and returns
null if the page cannot be located.
|
static <T extends UrlPage> |
getBestPageConstructor(Class<T> clz,
boolean hasparam) |
static Class<? extends ConversationContext> |
getConversationType(Constructor<? extends UrlPage> clz)
From a page constructor, get the Conversation class to use.
|
static <T extends UrlPage> |
getPageConstructor(Class<T> clz,
Class<? extends ConversationContext> ccclz,
boolean hasparam)
Finds the best constructor to use for the given page and the given conversation context.
|
@Nullable public static Page findPageInConversation(@Nonnull IRequestContext rctx, @Nonnull Class<? extends UrlPage> clz, @Nonnull String cid) throws Exception
Exception@Nonnull public static <T extends UrlPage> Constructor<T> getBestPageConstructor(@Nonnull Class<T> clz, boolean hasparam)
@Nonnull public static <T extends UrlPage> Constructor<T> getPageConstructor(@Nonnull Class<T> clz, @Nonnull Class<? extends ConversationContext> ccclz, boolean hasparam)
clz - ccclz - hasparam - @Nonnull public static Class<? extends ConversationContext> getConversationType(@Nonnull Constructor<? extends UrlPage> clz)
clz - Copyright © 2017 etc.to. All rights reserved.