Tabnine Logo
ResolvedSiteMapItem.getResolvedMount
Code IndexAdd Tabnine to your IDE (free)

How to use
getResolvedMount
method
in
org.hippoecm.hst.core.request.ResolvedSiteMapItem

Best Java code snippets using org.hippoecm.hst.core.request.ResolvedSiteMapItem.getResolvedMount (Showing top 6 results out of 315)

origin: org.onehippo.cms7.hst.components/hst-core

private boolean isSupportedScheme(final HstMutableRequestContext requestContext,
                 final ResolvedSiteMapItem resolvedSiteMapItem,
                 final String farthestRequestScheme) {
  if (requestContext.isCmsRequest()) {
    // cms request always supported as piggybacking on cms host
    return true;
  }
  final HstSiteMapItem hstSiteMapItem = resolvedSiteMapItem.getHstSiteMapItem();
  if (hstSiteMapItem.isSchemeAgnostic()) {
    return true;
  }
  if (hstSiteMapItem.getScheme().equals(farthestRequestScheme)) {
    return true;
  }
  if ("https".equals(farthestRequestScheme) && resolvedSiteMapItem.getResolvedMount().getMount().getVirtualHost().isCustomHttpsSupported()) {
    // although sitemap item indicates http, https is approved by default to be rendered
    return true;
  }
  return false;
}
origin: org.onehippo.cms7.hst.components/hst-core

  public Credentials getWritableCredentials(HstRequestContext requestContext) {
    Credentials credentials = super.getWritableCredentials(requestContext);
    
    if (credentials instanceof SimpleCredentials) {
      String siteName = requestContext.getResolvedSiteMapItem().getResolvedMount().getMount().getHstSite().getName();
      String userID = ((SimpleCredentials) credentials).getUserID();
      String userIDWithSiteName = userID + siteNameSeparator + siteName;
      char [] password = ((SimpleCredentials) credentials).getPassword();
      credentials = writableCredentialsCache.get(userIDWithSiteName);
      
      if (credentials == null) {
        credentials = new SimpleCredentials(userIDWithSiteName, password);
        writableCredentialsCache.put(userIDWithSiteName, credentials);
      }
    }
    
    return credentials;
  }
}
origin: org.onehippo.cms7.hst.components/hst-core

public Credentials getDefaultCredentials(HstRequestContext requestContext) {
  Credentials credentials = super.getDefaultCredentials(requestContext);
  
  if (credentials instanceof SimpleCredentials) {
    String siteName = requestContext.getResolvedSiteMapItem().getResolvedMount().getMount().getHstSite().getName();
    String userID = ((SimpleCredentials) credentials).getUserID();
    String userIDWithSiteName = userID + siteNameSeparator + siteName;
    char [] password = ((SimpleCredentials) credentials).getPassword();
    
    if (requestContext.isPreview()) {
      credentials = defaultCredentialsForPreviewModeCache.get(userIDWithSiteName);
      
      if (credentials == null) {
        credentials = new SimpleCredentials(userIDWithSiteName, password);
        defaultCredentialsForPreviewModeCache.put(userIDWithSiteName, credentials);
      }
    } else {
      credentials = defaultCredentialsCache.get(userIDWithSiteName);
      
      if (credentials == null) {
        credentials = new SimpleCredentials(userIDWithSiteName, password);
        defaultCredentialsCache.put(userIDWithSiteName, credentials);
      }
    }
  }
  
  return credentials;
}

origin: org.onehippo.cms7.hst.components/hst-core

containerRequest.removeAttribute(ContainerConstants.HST_FORWARD_PATH_INFO);
resolvedSiteMapItem = resolvedSiteMapItem.getResolvedMount().matchSiteMapItem(forwardPathInfo);
if(resolvedSiteMapItem == null) {
origin: org.onehippo.cms7.hst/hst-client

ResolvedMount resolvedMount = requestContext.getResolvedSiteMapItem().getResolvedMount();
if(preferItemId != null) {
  if(siteMapItem != null) {
origin: org.onehippo.cms7.hst.components/hst-core

  res.setStatus(HttpServletResponse.SC_MOVED_PERMANENTLY);
  urlWithExplicitSchemeForRequest = createURLWithExplicitSchemeForRequest(hstSiteMapItem.getScheme(), resolvedSiteMapItem.getResolvedMount().getMount(), req);
  log.debug("Scheme not allowed: MOVED PERMANENTLY {} to {}", containerRequest, urlWithExplicitSchemeForRequest);
  res.setHeader("Location", urlWithExplicitSchemeForRequest);
case HttpServletResponse.SC_TEMPORARY_REDIRECT:
  urlWithExplicitSchemeForRequest = createURLWithExplicitSchemeForRequest(hstSiteMapItem.getScheme(), resolvedSiteMapItem.getResolvedMount().getMount(), req);
  log.debug("Scheme not allowed: MOVED TEMPORARILY {} to {}", containerRequest, urlWithExplicitSchemeForRequest);
  res.sendRedirect(urlWithExplicitSchemeForRequest);
org.hippoecm.hst.core.requestResolvedSiteMapItemgetResolvedMount

Popular methods of ResolvedSiteMapItem

  • getHstSiteMapItem
  • getRelativeContentPath
    This method returns a content path, relative to the org.hippoecm.hst.configuration.site.HstSite#getC
  • getPathInfo
    Returns a relative path from hst request path to the SiteMapItem that was matched. This path never s
  • getHstComponentConfiguration
  • getResolvedSiteMount
  • getErrorCode
  • getNamedPipeline
    Returns the namedPipeline to be used for the Hst Request Processing. When the backing HstSiteMapItem
  • getParameters
    Return the parameter map from the HstSiteMapItem configuration, but all values containing property p
  • getRoles
  • getPageTitle
  • getParameter
    Returns a property from the HstSiteMapItem configuration but should have replaced possible property
  • getPortletHstComponentConfiguration
  • getParameter,
  • getPortletHstComponentConfiguration,
  • getStatusCode,
  • getUsers,
  • isAuthenticated,
  • isSecured

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setScale (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
  • requestLocationUpdates (LocationManager)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now