|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.turbine.util.DynamicURI
org.apache.turbine.util.RelativeDynamicURI
TurbineURI
with TurbineURI.getRelativeLink()
instead.
This creates a Dynamic URI for use within the Turbine system
If you use this class to generate all of your href tags as well
as all of your URI's, then you will not need to worry about having
session data setup for you or using HttpServletRequest.encodeUrl()
since this class does everything for you.
This class generates relative URI's which can be used in environments with
firewalls and gateways for outgoing connections.
The above call to getA() would return the String:
<A HREF="/servlets/Turbine/screen=UserScreen&user=jon">ClickHere</A>
RelativeDynamicURI dui = new RelativeDynamicURI (data, "UserScreen" );
dui.setName("Click Here").addPathInfo("user","jon");
dui.getA();
Field Summary |
Fields inherited from class org.apache.turbine.util.DynamicURI |
data, hasPathInfo, hasQueryData, HTTP, HTTPS, PATH_INFO, pathInfo, QUERY_DATA, queryData, redirect, reference, res, sd |
Constructor Summary | |
RelativeDynamicURI()
Deprecated. Default constructor - one of the init methods must be called before use. |
|
RelativeDynamicURI(RunData data)
Deprecated. Constructor sets up some variables. |
|
RelativeDynamicURI(RunData data,
boolean redirect)
Deprecated. Constructor sets up some variables. |
|
RelativeDynamicURI(RunData data,
java.lang.String screen)
Deprecated. Constructor sets up some variables. |
|
RelativeDynamicURI(RunData data,
java.lang.String screen,
boolean redirect)
Deprecated. Constructor sets up some variables. |
|
RelativeDynamicURI(RunData data,
java.lang.String screen,
java.lang.String action)
Deprecated. Constructor sets up some variables. |
|
RelativeDynamicURI(RunData data,
java.lang.String screen,
java.lang.String action,
boolean redirect)
Deprecated. Constructor sets up some variables. |
|
RelativeDynamicURI(ServerData sd)
Deprecated. Main constructor for RelativeDynamicURI. |
|
RelativeDynamicURI(ServerData sd,
boolean redirect)
Deprecated. Main constructor for RelativeDynamicURI. |
|
RelativeDynamicURI(ServerData sd,
java.lang.String screen)
Deprecated. Main constructor for RelativeDynamicURI. |
|
RelativeDynamicURI(ServerData sd,
java.lang.String screen,
boolean redirect)
Deprecated. Main constructor for RelativeDynamicURI. |
|
RelativeDynamicURI(ServerData sd,
java.lang.String screen,
java.lang.String action)
Deprecated. Main constructor for RelativeDynamicURI. |
|
RelativeDynamicURI(ServerData sd,
java.lang.String screen,
java.lang.String action,
boolean redirect)
Deprecated. Main constructor for RelativeDynamicURI. |
Method Summary | |
java.lang.String |
toString()
Deprecated. Builds the relative URL with all of the data URL-encoded as well as encoded using HttpServletResponse.encodeUrl(). |
static java.lang.String |
toString(RunData data)
Deprecated. Given a RunData object, get a relative URI for the request. |
Methods inherited from class org.apache.turbine.util.DynamicURI |
add, add, addPathInfo, addPathInfo, addPathInfo, addPathInfo, addPathInfo, addPathInfo, addQueryData, addQueryData, addQueryData, addQueryData, addQueryData, addQueryData, assertInitialized, getA, getContextPath, getReference, getScriptName, getServerData, getServerName, getServerPort, getServerScheme, init, init, remove, removePathInfo, removePathInfo, removeQueryData, removeQueryData, renderPathInfo, renderQueryString, setAction, setActionEvent, setContextPath, setReference, setScreen, setScriptName, setSecure, setSecure, setServerData, setServerName, setServerPort, setServerScheme |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RelativeDynamicURI()
public RelativeDynamicURI(RunData data)
data
- A Turbine RunData object.public RelativeDynamicURI(RunData data, java.lang.String screen)
data
- A Turbine RunData object.screen
- A String with the name of a screen.public RelativeDynamicURI(RunData data, java.lang.String screen, java.lang.String action)
data
- A Turbine RunData object.screen
- A String with the name of a screen.action
- A String with the name of an action.public RelativeDynamicURI(RunData data, java.lang.String screen, java.lang.String action, boolean redirect)
data
- A Turbine RunData object.screen
- A String with the name of a screen.action
- A String with the name of an action.redirect
- True if it should redirect.public RelativeDynamicURI(RunData data, java.lang.String screen, boolean redirect)
data
- A Turbine RunData object.screen
- A String with the name of a screen.redirect
- True if it should redirect.public RelativeDynamicURI(RunData data, boolean redirect)
data
- A Turbine RunData object.redirect
- True if it should redirect.public RelativeDynamicURI(ServerData sd)
sd
- A ServerData.public RelativeDynamicURI(ServerData sd, java.lang.String screen)
sd
- A ServerData.screen
- A String with the name of a screen.public RelativeDynamicURI(ServerData sd, java.lang.String screen, java.lang.String action)
sd
- A ServerData.screen
- A String with the name of a screen.action
- A String with the name of an action.public RelativeDynamicURI(ServerData sd, java.lang.String screen, java.lang.String action, boolean redirect)
sd
- A ServerData.screen
- A String with the name of a screen.action
- A String with the name of an action.redirect
- True if it should redirect.public RelativeDynamicURI(ServerData sd, java.lang.String screen, boolean redirect)
sd
- A ServerData.screen
- A String with the name of a screen.redirect
- True if it should redirect.public RelativeDynamicURI(ServerData sd, boolean redirect)
sd
- A ServerData.redirect
- True if it should redirect.Method Detail |
public java.lang.String toString()
The above call to toString() would return the String:
RelativeDynamicURI dui = new RelativeDynamicURI (data, "UserScreen" );
dui.addPathInfo("user","jon");
dui.toString();
/servlets/Turbine/screen/UserScreen/user/jon
toString
in class DynamicURI
public static java.lang.String toString(RunData data)
data
- A Turbine RunData object.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |