public class PathConstructorImpl extends Object implements PathConstructor
Constructor and Description |
---|
PathConstructorImpl(String contextPath,
String applicationFolder) |
Modifier and Type | Method and Description |
---|---|
String |
constructClientPath(String... terms)
Constructs a client path, the path portion of an absolute URL.
|
String |
constructDispatchPath(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 String constructClientPath(String... terms)
PathConstructor
constructClientPath
in interface PathConstructor
terms
- additional terms (folder names, or a file name) following the context path and application folder.public String constructDispatchPath(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.5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.