|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.fatwire.cs.core.uri.AbstractAssembler.DisassemblyContext
protected static class AbstractAssembler.DisassemblyContext
This class is a wrapper over the incoming URI that contains an accessor to
arbitrary context parameters that extending classes can specify. It also provides
access to an ownership flag that is checked during the disassembly process.
If a URI is determined to be foreign, the flag should be tripped and disassembly will
cease.
Similar to the 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.
Constructor Summary | |
---|---|
protected |
AbstractAssembler.DisassemblyContext(java.net.URI uri)
|
Method Summary | |
---|---|
java.lang.Object |
getContextParameter(java.lang.Object key)
Accessor method for arbitrary context parameters. |
java.net.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractAssembler.DisassemblyContext(java.net.URI uri)
Method Detail |
---|
public final void setForeign()
AbstractAssembler.disassemble(URI, Definition.ContainerType)
public final boolean isForeign()
AbstractAssembler.disassemble(URI, Definition.ContainerType)
public final java.net.URI getURI()
public java.lang.Object getContextParameter(java.lang.Object key)
key
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |