Package com.google.gerrit.httpd.raw
Class IndexPreloadingUtil
- java.lang.Object
-
- com.google.gerrit.httpd.raw.IndexPreloadingUtil
-
public class IndexPreloadingUtil extends Object
Helper for generating preloading parts ofindex.html
.
-
-
Field Summary
Fields Modifier and Type Field Description static String
BASE_PATCH_NUM_PATH_PART
static String
CC_QUERY
static String
CHANGE_CANONICAL_PATH
static com.google.common.collect.ImmutableSet<ListChangesOption>
CHANGE_DETAIL_OPTIONS
static Pattern
CHANGE_URL_PATTERN
static String
DASHBOARD_ASSIGNED_QUERY
static String
DASHBOARD_HAS_UNPUBLISHED_DRAFTS_QUERY
static String
DASHBOARD_INCOMING_QUERY
static com.google.common.collect.ImmutableSet<ListChangesOption>
DASHBOARD_OPTIONS
static String
DASHBOARD_OUTGOING_QUERY
static Pattern
DASHBOARD_PATTERN
static String
DASHBOARD_RECENTLY_CLOSED_QUERY
static String
DASHBOARD_WORK_IN_PROGRESS_QUERY
static Pattern
DIFF_URL_PATTERN
static String
NEW_USER
static String
ROOT_PATH
static String
SELF_DASHBOARD_ASSIGNED_QUERY
static String
SELF_DASHBOARD_HAS_UNPUBLISHED_DRAFTS_QUERY
static com.google.common.collect.ImmutableList<String>
SELF_DASHBOARD_QUERIES
static String
SELF_YOUR_TURN
static String
YOUR_TURN
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Optional<Integer>
computeChangeNum(String requestedURL, com.google.gerrit.httpd.raw.IndexPreloadingUtil.RequestedPage page)
static Optional<String>
computeChangeRequestsPath(String requestedURL, com.google.gerrit.httpd.raw.IndexPreloadingUtil.RequestedPage page)
static List<String>
computeDashboardQueryList(Server serverApi)
static String
getPath(String requestedURL)
static com.google.gerrit.httpd.raw.IndexPreloadingUtil.RequestedPage
parseRequestedPage(String requestedPath)
-
-
-
Field Detail
-
CHANGE_CANONICAL_PATH
public static final String CHANGE_CANONICAL_PATH
- See Also:
- Constant Field Values
-
BASE_PATCH_NUM_PATH_PART
public static final String BASE_PATCH_NUM_PATH_PART
- See Also:
- Constant Field Values
-
CHANGE_URL_PATTERN
public static final Pattern CHANGE_URL_PATTERN
-
DIFF_URL_PATTERN
public static final Pattern DIFF_URL_PATTERN
-
DASHBOARD_PATTERN
public static final Pattern DASHBOARD_PATTERN
-
ROOT_PATH
public static final String ROOT_PATH
- See Also:
- Constant Field Values
-
DASHBOARD_HAS_UNPUBLISHED_DRAFTS_QUERY
public static final String DASHBOARD_HAS_UNPUBLISHED_DRAFTS_QUERY
- See Also:
- Constant Field Values
-
YOUR_TURN
public static final String YOUR_TURN
- See Also:
- Constant Field Values
-
DASHBOARD_ASSIGNED_QUERY
public static final String DASHBOARD_ASSIGNED_QUERY
- See Also:
- Constant Field Values
-
DASHBOARD_WORK_IN_PROGRESS_QUERY
public static final String DASHBOARD_WORK_IN_PROGRESS_QUERY
- See Also:
- Constant Field Values
-
DASHBOARD_OUTGOING_QUERY
public static final String DASHBOARD_OUTGOING_QUERY
- See Also:
- Constant Field Values
-
DASHBOARD_INCOMING_QUERY
public static final String DASHBOARD_INCOMING_QUERY
- See Also:
- Constant Field Values
-
CC_QUERY
public static final String CC_QUERY
- See Also:
- Constant Field Values
-
DASHBOARD_RECENTLY_CLOSED_QUERY
public static final String DASHBOARD_RECENTLY_CLOSED_QUERY
- See Also:
- Constant Field Values
-
NEW_USER
public static final String NEW_USER
- See Also:
- Constant Field Values
-
SELF_DASHBOARD_HAS_UNPUBLISHED_DRAFTS_QUERY
public static final String SELF_DASHBOARD_HAS_UNPUBLISHED_DRAFTS_QUERY
-
SELF_YOUR_TURN
public static final String SELF_YOUR_TURN
-
SELF_DASHBOARD_ASSIGNED_QUERY
public static final String SELF_DASHBOARD_ASSIGNED_QUERY
-
SELF_DASHBOARD_QUERIES
public static final com.google.common.collect.ImmutableList<String> SELF_DASHBOARD_QUERIES
-
DASHBOARD_OPTIONS
public static final com.google.common.collect.ImmutableSet<ListChangesOption> DASHBOARD_OPTIONS
-
CHANGE_DETAIL_OPTIONS
public static final com.google.common.collect.ImmutableSet<ListChangesOption> CHANGE_DETAIL_OPTIONS
-
-
Method Detail
-
getPath
public static String getPath(String requestedURL) throws URISyntaxException
- Throws:
URISyntaxException
-
parseRequestedPage
public static com.google.gerrit.httpd.raw.IndexPreloadingUtil.RequestedPage parseRequestedPage(String requestedPath)
-
computeChangeRequestsPath
public static Optional<String> computeChangeRequestsPath(String requestedURL, com.google.gerrit.httpd.raw.IndexPreloadingUtil.RequestedPage page)
-
computeChangeNum
public static Optional<Integer> computeChangeNum(String requestedURL, com.google.gerrit.httpd.raw.IndexPreloadingUtil.RequestedPage page)
-
computeDashboardQueryList
public static List<String> computeDashboardQueryList(Server serverApi) throws RestApiException
- Throws:
RestApiException
-
-