public class QueryAsPathInfoAssembler extends QueryAssembler
| Modifier and Type | Class and Description |
|---|---|
protected static class |
QueryAsPathInfoAssembler.PathInfo
Simple class containing information embedded in the pathinfo.
|
protected static class |
QueryAsPathInfoAssembler.QAPIDisassemblyContext |
AbstractAssembler.AssemblyContext, AbstractAssembler.DisassemblyContextPAGENAMEBASE_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 |
|---|
QueryAsPathInfoAssembler() |
| Modifier and Type | Method and Description |
|---|---|
URI |
assemble(Definition def)
Constructs a URI from the Definition provided.
|
protected Definition.AppType |
getAppType(AbstractAssembler.DisassemblyContext ctx)
This method uses the PathInfo object to get the AppType found on the URI.
|
protected AbstractAssembler.DisassemblyContext |
getDisassemblyContext(URI uri)
This method tries to create a
QueryAsPathInfoAssembler.PathInfo object by calling QueryAsPathInfoAssembler.parsePath(java.lang.String). |
String |
getPath(AbstractAssembler.AssemblyContext def)
This method calls super.getPath() and encode(super.getQuery()) and appends them together.
|
protected String |
getQuery(AbstractAssembler.AssemblyContext def)
Returns the query string.
|
protected Map |
getQuery(AbstractAssembler.DisassemblyContext ctx)
This method uses the PathInfo object to get the query parameters
|
protected Definition.SatelliteContext |
getSatelliteContext(AbstractAssembler.DisassemblyContext ctx)
This method uses the PathInfo object to get the Satellitecontext
|
protected QueryAsPathInfoAssembler.PathInfo |
parsePath(String path)
Parse the path from the uriDefinition and get back a PathInfo data object containing all the useful info that was encoded in the path.
|
getAuthority, getAuthority, getFragment, getFragment, getPathForApp, getPathForSatelliteServer, getScheme, getScheme, getSessionEncodedecode, decode, disassemble, encode, getAssemblyContext, getLog, getProperty, parseQueryString, setPropertiespublic String getPath(AbstractAssembler.AssemblyContext def)
getPath in class QueryAssemblerdef - Definitionprotected String getQuery(AbstractAssembler.AssemblyContext def)
getQuery in class QueryAssemblerdef - DefinitionEncode provides a helpful method for quoting illegal characters in the query string.protected AbstractAssembler.DisassemblyContext getDisassemblyContext(URI uri)
QueryAsPathInfoAssembler.PathInfo object by calling QueryAsPathInfoAssembler.parsePath(java.lang.String). If it gets one, it creates a QAPIDisassemblyContext object using the PathInfo returned. If it fails to get back a QueryAsPathInfoAssembler.PathInfo then it sets the foreign flag in the superclass' implementation of DisassemblyContext.getDisassemblyContext in class AbstractAssembleruri - aan URIprotected QueryAsPathInfoAssembler.PathInfo parsePath(String path)
path - the uri pathprotected Definition.AppType getAppType(AbstractAssembler.DisassemblyContext ctx)
getAppType in class QueryAssemblerctx - DisassemblyContext object containing the URI, context parameters, and a flag inidicating whether or not this assembler is capable of disassembling this URI.QueryAsPathInfoAssembler.parsePath(String)protected Definition.SatelliteContext getSatelliteContext(AbstractAssembler.DisassemblyContext ctx)
getSatelliteContext in class QueryAssemblerctx - DisassemblyContext object containing the URI, context parameters, and a flag inidicating whether or not this assembler is capable of disassembling this URI.QueryAsPathInfoAssembler.parsePath(String)protected Map getQuery(AbstractAssembler.DisassemblyContext ctx)
getQuery in class QueryAssemblerctx - DisassemblyContext object containing the URI, context parameters, and a flag inidicating whether or not this assembler is capable of disassembling this URI.QueryAsPathInfoAssembler.parsePath(String)public URI assemble(Definition def) throws URISyntaxException
AbstractAssemblerassemble in interface Assemblerassemble in class AbstractAssemblerdef - definitionURISyntaxException - throws URISyntaxExceptionAbstractAssembler.encode(String), AbstractAssembler.decode(String)