com.fatwire.gst.foundation.url
Class WraPathAssembler

java.lang.Object
  extended by com.fatwire.gst.foundation.url.LightweightAbstractAssembler
      extended by com.fatwire.gst.foundation.url.WraPathAssembler
All Implemented Interfaces:
com.fatwire.cs.core.uri.Assembler

public final class WraPathAssembler
extends LightweightAbstractAssembler

Web-referenceable asset path assembler.

Since:
Jul 20, 2010
Author:
Tony Field

Field Summary
static String BACKUP_ASSEMBLER_PROPNAME
          Configuration property for overriding the backup assembler.
static String DISPATCHER_PROPNAME
          Configuration property for overriding the default dispatcher pagename.
protected static org.apache.commons.logging.Log LOG
           
 
Fields inherited from interface com.fatwire.cs.core.uri.Assembler
LOG_NAME, PROP_PATH_PREFIX, PROP_URIBASE_BLOB_SERVER, PROP_URIBASE_CACHE_SERVER, PROP_URIBASE_CATALOG_MANAGER, PROP_URIBASE_CONTENT_SERVER, PROP_URIBASE_COOKIE_SERVER, PROP_URIBASE_DISPATCH_MANAGER, PROP_URIBASE_PAGE_DISPATCH_SERVER, PROP_URIBASE_SATELLITE_SERVER, PROP_URIBASE_SEED_DISPATCH_SERVER, PROP_URIBASE_SYNC_SEED_DISPATCH_SERVER, PROP_URIBASE_TREE_MANAGER
 
Constructor Summary
WraPathAssembler()
           
 
Method Summary
 URI assemble(com.fatwire.cs.core.uri.Definition definition)
          Looks for virtual-webroot and url-path.
 com.fatwire.cs.core.uri.Definition disassemble(URI uri, com.fatwire.cs.core.uri.Definition.ContainerType containerType)
           
 void setProperties(Properties properties)
          Set properties, initializing the assembler
 
Methods inherited from class com.fatwire.gst.foundation.url.LightweightAbstractAssembler
constructQueryString, constructURI, decode, decode, encode, excludeFromPackedargs, getProperty, parseQueryString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static final org.apache.commons.logging.Log LOG

DISPATCHER_PROPNAME

public static final String DISPATCHER_PROPNAME
Configuration property for overriding the default dispatcher pagename. The default is GST/Dispatcher.

See Also:
Constant Field Values

BACKUP_ASSEMBLER_PROPNAME

public static final String BACKUP_ASSEMBLER_PROPNAME
Configuration property for overriding the backup assembler. URLs that can't be built using this assembler, that is, URLs for assets that are not WRAs (or for WRAs missing critical fields), are built using the backup assembler. The default backup assembler is the standard QueryAssembler.

See Also:
Constant Field Values
Constructor Detail

WraPathAssembler

public WraPathAssembler()
Method Detail

setProperties

public void setProperties(Properties properties)
Set properties, initializing the assembler

Specified by:
setProperties in interface com.fatwire.cs.core.uri.Assembler
Overrides:
setProperties in class LightweightAbstractAssembler
Parameters:
properties - configuration properties

assemble

public URI assemble(com.fatwire.cs.core.uri.Definition definition)
             throws URISyntaxException
Looks for virtual-webroot and url-path. If found, concatenates virtual-webroot and url-path. Once core query params are suppressed, the remaining params are appended to the URL.

Parameters:
definition -
Returns:
valid URI
Throws:
URISyntaxException

disassemble

public com.fatwire.cs.core.uri.Definition disassemble(URI uri,
                                                      com.fatwire.cs.core.uri.Definition.ContainerType containerType)
                                               throws URISyntaxException
Throws:
URISyntaxException


Copyright © 2010-2013 Oracle Corporation. All Rights Reserved.