com.fatwire.gst.foundation.url
Class WraPathAssembler
java.lang.Object
com.fatwire.gst.foundation.url.LightweightAbstractAssembler
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
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 |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
WraPathAssembler
public WraPathAssembler()
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.