Skip navigation links

Oracle® WebCenter Content Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-03


oracle.stellent.wcm.client
Class SitePathBuilder

java.lang.Object
  extended by oracle.stellent.wcm.client.SitePathBuilder


public class SitePathBuilder
extends java.lang.Object

Class for building the paths used to create URLs to this site


Constructor Summary
SitePathBuilder(ClientApplication clientApplication)
          Build a site pattern builder using the configuration in the given bean

 

Method Summary
 java.lang.String getUrlPath(UrlRequest.UrlRoot root, SiteRequest.Mode mode, java.lang.String siteID)
          Retrieve the url path
 void populateContext(SiteContext siteContext, boolean overwrite)
          Populate the SiteContext with the pattern values for UrlRequest.UrlRoot.Site and UrlRequest.UrlRoot.PublicDir.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

SitePathBuilder

public SitePathBuilder(ClientApplication clientApplication)
Build a site pattern builder using the configuration in the given bean
Parameters:
configuration - the configuration object

Method Detail

populateContext

public void populateContext(SiteContext siteContext,
                            boolean overwrite)
Populate the SiteContext with the pattern values for UrlRequest.UrlRoot.Site and UrlRequest.UrlRoot.PublicDir. Uses the mode and siteID configured in the SiteContext to determine URLs.
Parameters:
siteContext - the site context
overwrite - if true, overwrite existing values even if already set

getUrlPath

public java.lang.String getUrlPath(UrlRequest.UrlRoot root,
                                   SiteRequest.Mode mode,
                                   java.lang.String siteID)
Retrieve the url path
Parameters:
root - the url type
mode - the current mode
siteID - the site ID (if applicable)
Returns:
the url pattern

Skip navigation links

Oracle® WebCenter Content Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-03


Copyright © 2010, 2011, Oracle and/or its affiliates. All rights reserved.