|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.dpml.transit.ClassicLayout
public class ClassicLayout
The ClassicLayout decodes artifacts into the Classic/Maven layout
of artifacts on a file system or http server.
This format says that for an artifact artifact:[type]:[group]/[name]#[version]
the location of such artifact would be;
[group]/[type]s/[name]-[version].[type]
.
Example; artifact:jar:metro/cache/dpml-cache-main#1.0.0
would return the path metro/cache/jars/dpml-cache-main-1.0.0.jar
.
Constructor Summary | |
---|---|
ClassicLayout()
|
Method Summary | |
---|---|
String |
resolveBase(Artifact artifact)
Return the base path for an artifact. |
String |
resolveFilename(Artifact artifact)
Return the expanded filename of the artifact. |
String |
resolvePath(Artifact artifact)
Returns the full path of the artifact relative to a logical root directory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClassicLayout()
Method Detail |
---|
public final String resolveBase(Artifact artifact)
resolveBase
in interface Layout
artifact
- the resource artifact
public final String resolvePath(Artifact artifact)
artifact:jar:metro/cache/dpml-cache-main#1.0.0
would return the path metro/cache/jars/dpml-cache-main-1.0.0.jar
.
resolvePath
in interface Layout
artifact
- the resource artifact
resolveBase(net.dpml.transit.Artifact)
,
resolveFilename(net.dpml.transit.Artifact)
public String resolveFilename(Artifact artifact)
resolveFilename
in interface Layout
artifact
- the resource artifact
Layout.resolveBase(net.dpml.transit.Artifact)
,
Layout.resolveFilename(net.dpml.transit.Artifact)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |