public class DataURI extends BaseURI
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 and Description |
|---|
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
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearResponse()
Content Tool wants to be able to turn the encoding
of the servlet container off.
|
String |
getAbsoluteLink()
Builds the URL with all of the data URL-encoded as well as
encoded using HttpServletResponse.encodeUrl().
|
String |
getRelativeLink()
Builds the URL with all of the data URL-encoded as well as
encoded using HttpServletResponse.encodeUrl().
|
String |
toString()
toString() simply calls getAbsoluteLink.
|
encodeResponse, getContextAndScript, getContextPath, getReference, getResponse, getSchemeAndPort, getScriptName, getServerName, getServerPort, getServerScheme, hasReference, isRedirect, setContextPath, setRedirect, setReference, setResponse, setScriptName, setSecure, setSecure, setServerName, setServerPort, setServerSchemepublic 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.public void clearResponse()
public String getAbsoluteLink()
TurbineURI tui = new TurbineURI (data, "UserScreen");
tui.addPathInfo("user","jon");
tui.getAbsoluteLink();
The above call to getAbsoluteLink() would return the String:
http://www.server.com/servlets/Turbine/screen/UserScreen/user/jon
public String getRelativeLink()
TurbineURI tui = new TurbineURI (data, "UserScreen");
tui.addPathInfo("user","jon");
tui.getRelativeLink();
The above call to getRelativeLink() would return the String:
/servlets/Turbine/screen/UserScreen/user/jon
Copyright © 2000–2018 The Apache Software Foundation. All rights reserved.