protected static class AbstractAssembler.DisassemblyContext extends Object
AbstractAssembler.AssemblyContext
, this class is handy for handling the state of a partially or wholly- decoded URI until the individual components are requested. Overriding assemblers will probably need to extend this class to maintain interim information. For example, an assembler that looks for a pattern such as "/foo/bar" may decode this to indicate that this is a ContentServer page rendering an asset type called "Bar" in the site "Foo" and that cid should be set to a value defined in a property file. This information can be stored in the DisassemblyContext for use in AbstractAssembler.getQuery(DisassemblyContext)
method.Modifier | Constructor and Description |
---|---|
protected |
DisassemblyContext(URI uri) |
Modifier and Type | Method and Description |
---|---|
Object |
getContextParameter(Object key)
Accessor method for arbitrary context parameters.
|
URI |
getURI()
Returns the original input URI belonging to the context.
|
boolean |
isForeign()
This flag represents the ownership of the URI being decoded.
|
void |
setForeign()
This flag represents the ownership of the URI being decoded.
|
protected DisassemblyContext(URI uri)
public final void setForeign()
public final boolean isForeign()
AbstractAssembler.disassemble(URI, Definition.ContainerType)
public final URI getURI()
public Object getContextParameter(Object key)
key
- a key