public final class SatelliteTokenAssembler extends QueryAssembler
Modifier and Type | Class and Description |
---|---|
static class |
SatelliteTokenAssembler.STADefinition
This class constructs a special Definition that is designed for use with the SatelliteTokenAssembler.
|
AbstractAssembler.AssemblyContext, AbstractAssembler.DisassemblyContext
Modifier and Type | Field and Description |
---|---|
static String |
APP_TYPE_PARAM |
static String |
AUTHORITY_PARAM |
static String |
CONTAINER_TYPE_PARAM |
static String |
FRAGMENT_PARAM |
static String |
PREFERRED_ASSEMBLER
Parameter for the preferred assembler
|
static String |
SATELLITE_CONTEXT_PARAM |
static String |
SATELLITE_FRAGMENT
Value always passed as the fragment into SatelliteTokenAssembler URIs.
|
static String |
SATELLITE_SCHEME
Value always passed as the scheme into SatelliteTokenAssembler URIs
|
static String |
SATELLITE_TOKEN
This string is a token that will appear in every URI assembled by this assembler.
|
static String |
SCHEME_PARAM |
static String |
SESSION_ENCODE_PARAM |
PAGENAME
BASE_NAME, 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 and Description |
---|
SatelliteTokenAssembler() |
Modifier and Type | Method and Description |
---|---|
Definition |
disassemble(URI uri, Definition.ContainerType ct)
This method disassembles a URI into its components, constructing a Definition object to provide conveniece accessors to the data encoded in the URI.
|
protected AbstractAssembler.AssemblyContext |
getAssemblyContext(Definition def)
Returns an assembly context object given the input definition.
|
String |
getAuthority(AbstractAssembler.AssemblyContext def)
Get the authority for this URI
|
String |
getFragment(AbstractAssembler.AssemblyContext def)
Returns the fragment for this URI.
|
String |
getPath(AbstractAssembler.AssemblyContext def)
This method returns the path for the URI given the definition specified.
|
String |
getScheme(AbstractAssembler.AssemblyContext def)
Returns the scheme (protocol) for the assembly context specified.
|
getAppType, getAuthority, getFragment, getPathForApp, getPathForSatelliteServer, getQuery, getQuery, getSatelliteContext, getScheme, getSessionEncode
assemble, decode, decode, encode, getDisassemblyContext, getLog, getProperty, parseQueryString, setProperties
public static String SATELLITE_SCHEME
public static String SATELLITE_FRAGMENT
public static String SATELLITE_TOKEN
public static String PREFERRED_ASSEMBLER
public static String SCHEME_PARAM
public static String AUTHORITY_PARAM
public static String CONTAINER_TYPE_PARAM
public static String APP_TYPE_PARAM
public static String FRAGMENT_PARAM
public static String SESSION_ENCODE_PARAM
public static String SATELLITE_CONTEXT_PARAM
protected AbstractAssembler.AssemblyContext getAssemblyContext(Definition def)
AbstractAssembler
getAssemblyContext
in class AbstractAssembler
def
- input definitionAbstractAssembler.AssemblyContext
public String getScheme(AbstractAssembler.AssemblyContext def)
AbstractAssembler
getScheme
in class QueryAssembler
def
- Assembly context objectpublic String getAuthority(AbstractAssembler.AssemblyContext def)
QueryAssembler
getAuthority
in class QueryAssembler
def
- a definitionpublic String getPath(AbstractAssembler.AssemblyContext def)
QueryAssembler
getPath
in class QueryAssembler
def
- definitionpublic String getFragment(AbstractAssembler.AssemblyContext def)
QueryAssembler
getFragment
in class QueryAssembler
def
- definitionpublic Definition disassemble(URI uri, Definition.ContainerType ct) throws URISyntaxException
disassemble
in interface Assembler
disassemble
in class AbstractAssembler
uri
- URI to disassemblect
- the type of the container that this URL is being generated for.URISyntaxException
- throws URISyntaxExceptionDefinition
, Definition.ContainerType