public class PathConstructorImpl extends java.lang.Object implements PathConstructor
Constructor and Description |
---|
PathConstructorImpl(java.lang.String contextPath,
java.lang.String applicationFolder) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
constructClientPath(java.lang.String... terms)
Constructs a client path, the path portion of an absolute URL.
|
java.lang.String |
constructDispatchPath(java.lang.String... terms)
Constructs the dispatch path, which is like the client path, but omits the context path; this aligns
the result with the value returned from
Request.getPath() , and is used
in code, typically Dispatcher implementations, that are attempting to route based on the incoming request path. |
public PathConstructorImpl(@Symbol(value="tapestry.context-path") java.lang.String contextPath, @Symbol(value="tapestry.application-folder") java.lang.String applicationFolder)
public java.lang.String constructClientPath(java.lang.String... terms)
PathConstructor
constructClientPath
in interface PathConstructor
terms
- additional terms (folder names, or a file name) following the context path and application folder.public java.lang.String constructDispatchPath(java.lang.String... terms)
PathConstructor
Request.getPath()
, and is used
in code, typically Dispatcher
implementations, that are attempting to route based on the incoming request path.constructDispatchPath
in interface PathConstructor
terms
- additional terms (folder names, or a file name) following the context path and application folder.${project.version} - Copyright © 2003-2015 The Apache Software Foundation.