|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectDefaultTemplatedURLFormatter
public class DefaultTemplatedURLFormatter
Default implementation of TemplatedURLFormatter for formatting URLs based on templates from a URL template config file.
Constructor Summary | |
---|---|
DefaultTemplatedURLFormatter()
|
Method Summary | |
---|---|
String |
getTemplatedURL(ServletRequest request,
MutableURI uri,
String key,
boolean forXML)
Format the given URL using a URL template, if defined in a URL template config file. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultTemplatedURLFormatter()
Method Detail |
---|
public String getTemplatedURL(ServletRequest request, MutableURI uri, String key, boolean forXML)
TemplatedURLFormatter
getTemplatedURL
in interface TemplatedURLFormatter
request
- the current ServletRequest.uri
- the MutableURI to be formatted into a String.key
- key for the URL template type to use for formatting the URIforXML
- flag indicating that the query of the uri should be written
using the "&" entity for XML, rather than the character, '&'.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |