Class RemoteWebViewImpl

    • Method Detail

      • getItemsForSectionCompletionStage

        public CompletionStage<Iterable<WebItemView>> getItemsForSectionCompletionStage​(String section,
                                                                                        Map<String,​Object> additionalContext)
        Description copied from interface: RemoteWebView
        Fetch web items for a section from the REST API
        Specified by:
        getItemsForSectionCompletionStage in interface RemoteWebView
        Parameters:
        section - the section to fetch web items for
        additionalContext - additional context to add to the request to satisfy web item conditions
        Returns:
        a CompletionStage of an iterable of webItemViews for the given section
      • getSectionsForLocationCompletionStage

        public CompletionStage<Iterable<WebSectionView>> getSectionsForLocationCompletionStage​(String location,
                                                                                               Map<String,​Object> additionalContext)
        Description copied from interface: RemoteWebView
        Fetch web sections for a given location from the REST API
        Specified by:
        getSectionsForLocationCompletionStage in interface RemoteWebView
        Parameters:
        location - the section to fetch web items for
        additionalContext - additional context to add to the request to satisfy web item conditions
        Returns:
        a CompletionStage of an iterable of WebSectionViews for the given location
      • getPanelsForLocationCompletionStage

        public CompletionStage<Iterable<WebPanelView>> getPanelsForLocationCompletionStage​(String location,
                                                                                           Map<String,​Object> additionalContext)
        Description copied from interface: RemoteWebView
        Fetch web panels for a given location from the REST API
        Specified by:
        getPanelsForLocationCompletionStage in interface RemoteWebView
        Parameters:
        location - the location to fetch web items for
        additionalContext - additional context to add to the request to satisfy web item conditions
        Returns:
        a CompletionStage of an iterable of WebPanelViews for the given location
      • addContextParams

        protected com.sun.jersey.api.client.WebResource addContextParams​(com.sun.jersey.api.client.WebResource resource,
                                                                         Map<String,​Object> additionalContext)