public class QueryAssembler extends AbstractAssembler
AbstractAssembler.AssemblyContext, AbstractAssembler.DisassemblyContext
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 |
---|
QueryAssembler() |
Modifier and Type | Method and Description |
---|---|
protected Definition.AppType |
getAppType(AbstractAssembler.DisassemblyContext ctx)
Get the app type for this URI.
|
protected String |
getAuthority(AbstractAssembler.AssemblyContext def)
Get the authority for this URI
|
protected String |
getAuthority(AbstractAssembler.DisassemblyContext ctx)
Get the authority from the URI specified
|
protected String |
getFragment(AbstractAssembler.AssemblyContext def)
Returns the fragment for this URI.
|
protected String |
getFragment(AbstractAssembler.DisassemblyContext ctx)
Get the fragment from the URI specified
|
protected String |
getPath(AbstractAssembler.AssemblyContext def)
This method returns the path for the URI given the definition specified.
|
protected String |
getPathForApp(Definition.AppType type)
Returns the path for the definition specified given the app type.
|
protected String |
getPathForSatelliteServer(Definition.AppType type)
This method returns the path for a given app type when a Satellite Server URI has been requested.
|
protected String |
getQuery(AbstractAssembler.AssemblyContext def)
This method grabs all the parameters from the Definition specified and converts them into a query string.
|
protected Map |
getQuery(AbstractAssembler.DisassemblyContext ctx)
Return the query paramers from the URI.
|
protected Definition.SatelliteContext |
getSatelliteContext(AbstractAssembler.DisassemblyContext ctx)
Returns the satellite context for the URI specified.
|
protected String |
getScheme(AbstractAssembler.AssemblyContext def)
Returns the scheme (protocol) for the assembly context specified.
|
protected String |
getScheme(AbstractAssembler.DisassemblyContext ctx)
Get the scheme from the URI specified.
|
protected boolean |
getSessionEncode(AbstractAssembler.DisassemblyContext ctx)
Return whether or not session encoding should be done for the URI specified.
|
assemble, decode, decode, disassemble, encode, getAssemblyContext, getDisassemblyContext, getLog, getProperty, parseQueryString, setProperties
protected String getScheme(AbstractAssembler.AssemblyContext def)
AbstractAssembler
getScheme
in class AbstractAssembler
def
- Assembly context objectprotected String getAuthority(AbstractAssembler.AssemblyContext def)
getAuthority
in class AbstractAssembler
def
- a definitionprotected String getPath(AbstractAssembler.AssemblyContext def)
getPath
in class AbstractAssembler
def
- definitionprotected String getPathForSatelliteServer(Definition.AppType type)
type
- The app typeIllegalArgumentException
- if the app type is not supported by Satellite Server.protected String getPathForApp(Definition.AppType type)
type
- app typeQueryAssembler.getPathForSatelliteServer(Definition.AppType)
protected String getQuery(AbstractAssembler.AssemblyContext def)
AssemblyContext
's AssemblyContext#getParameterNames
method.getQuery
in class AbstractAssembler
def
- definitionEncode provides a helpful method for quoting illegal characters in the query string.
protected String getFragment(AbstractAssembler.AssemblyContext def)
getFragment
in class AbstractAssembler
def
- definitionprotected boolean getSessionEncode(AbstractAssembler.DisassemblyContext ctx)
getSessionEncode
in class AbstractAssembler
ctx
- DisassemblyContext object containing the URI, context parameters, and a flag inidicating whether or not this assembler is capable of disassembling this URI.protected String getScheme(AbstractAssembler.DisassemblyContext ctx)
getScheme
in class AbstractAssembler
ctx
- DisassemblyContext object containing the URI, context parameters, and a flag inidicating whether or not this assembler is capable of disassembling this URI.protected String getAuthority(AbstractAssembler.DisassemblyContext ctx)
getAuthority
in class AbstractAssembler
ctx
- DisassemblyContext object containing the URI, context parameters, and a flag inidicating whether or not this assembler is capable of disassembling this URI.protected String getFragment(AbstractAssembler.DisassemblyContext ctx)
getFragment
in class AbstractAssembler
ctx
- DisassemblyContext object containing the URI, context parameters, and a flag inidicating whether or not this assembler is capable of disassembling this URI.protected Definition.SatelliteContext getSatelliteContext(AbstractAssembler.DisassemblyContext ctx)
getSatelliteContext
in class AbstractAssembler
ctx
- DisassemblyContext object containing the URI, context parameters, and a flag inidicating whether or not this assembler is capable of disassembling this URI.protected Definition.AppType getAppType(AbstractAssembler.DisassemblyContext ctx)
QueryAssembler.getPathForSatelliteServer(com.fatwire.cs.core.uri.Definition.AppType)
and QueryAssembler.getPathForApp(com.fatwire.cs.core.uri.Definition.AppType)
methods will have to override this method as well.getAppType
in class AbstractAssembler
ctx
- DisassemblyContext object containing the URI, context parameters, and a flag inidicating whether or not this assembler is capable of disassembling this URI.protected Map getQuery(AbstractAssembler.DisassemblyContext ctx)
AbstractAssembler.getQuery(AssemblyContext)
will need to override this method as well.getQuery
in class AbstractAssembler
ctx
- DisassemblyContext object containing the URI, context parameters, and a flag inidicating whether or not this assembler is capable of disassembling this URI.