|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.turbine.util.uri.BaseURI org.apache.turbine.util.uri.DataURI
This class can convert a simple link into a turbine relative URL. It should be used to convert references for images, style sheets and similar references. The resulting links have no query data or path info. If you need this, use TurbineURI or TemplateURI.
Field Summary |
Fields inherited from interface org.apache.turbine.util.uri.URIConstants |
CGI_ACTION_PARAM, CGI_SCREEN_PARAM, CGI_TEMPLATE_PARAM, EVENT_PREFIX, FTP_PORT, HTTP, HTTP_PORT, HTTPS, HTTPS_PORT, PATH_INFO, QUERY_DATA, URI_SCHEME_SEPARATOR |
Constructor Summary | |
DataURI()
Empty C'tor. |
|
DataURI(RunData runData)
Constructor with a RunData object |
|
DataURI(RunData runData,
boolean redirect)
Constructor, set explicit redirection |
|
DataURI(ServerData serverData)
Constructor with a ServerData object |
|
DataURI(ServerData serverData,
boolean redirect)
Constructor, set explicit redirection |
Method Summary | |
void |
clearResponse()
Content Tool wants to be able to turn the encoding of the servlet container off. |
java.lang.String |
getAbsoluteLink()
Builds the URL with all of the data URL-encoded as well as encoded using HttpServletResponse.encodeUrl(). |
java.lang.String |
getRelativeLink()
Builds the URL with all of the data URL-encoded as well as encoded using HttpServletResponse.encodeUrl(). |
java.lang.String |
toString()
toString() simply calls getAbsoluteLink. |
Methods inherited from class org.apache.turbine.util.uri.BaseURI |
encodeResponse, getContextAndScript, getContextPath, getReference, getResponse, getSchemeAndPort, getScriptName, getServerName, getServerPort, getServerScheme, hasReference, isRedirect, setContextPath, setRedirect, setReference, setResponse, setScriptName, setSecure, setSecure, setServerName, setServerPort, setServerScheme |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DataURI()
public DataURI(RunData runData)
runData
- A RunData objectpublic DataURI(RunData runData, boolean redirect)
runData
- A RunData objectredirect
- True if redirection allowed.public DataURI(ServerData serverData)
serverData
- A ServerData objectpublic DataURI(ServerData serverData, boolean redirect)
serverData
- A ServerData objectredirect
- True if redirection allowed.Method Detail |
public void clearResponse()
public java.lang.String getAbsoluteLink()
The above call to getAbsoluteLink() would return the String:
TurbineURI tui = new TurbineURI (data, "UserScreen");
tui.addPathInfo("user","jon");
tui.getAbsoluteLink();
http://www.server.com/servlets/Turbine/screen/UserScreen/user/jon
public java.lang.String getRelativeLink()
The above call to getRelativeLink() would return the String:
TurbineURI tui = new TurbineURI (data, "UserScreen");
tui.addPathInfo("user","jon");
tui.getRelativeLink();
/servlets/Turbine/screen/UserScreen/user/jon
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |