|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry.link.StaticLink
public class StaticLink
Used by GenericLink
to represent
an external, static URL.
Constructor Summary | |
---|---|
StaticLink(String url)
|
Method Summary | |
---|---|
String |
getAbsoluteURL()
Returns the absolute URL as a String, using default scheme, server and port, including parameters, and no anchor. |
String |
getAbsoluteURL(String scheme,
String server,
int port,
String anchor,
boolean includeParameters)
Returns the absolute URL as a String. |
String[] |
getParameterNames()
Returns an array of parameters names (in no specified order). |
String[] |
getParameterValues(String name)
Returns the values for the named parameter. |
String |
getURL()
Returns the relative URL as a String. |
String |
getURL(String anchor,
boolean includeParameters)
Returns the relative URL as a String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StaticLink(String url)
Method Detail |
---|
public String getURL()
ILink
getURL
in interface ILink
public String getURL(String anchor, boolean includeParameters)
ILink
getURL
in interface ILink
anchor
- if not null, appended to the URLincludeParameters
- if true, parameters are includedpublic String getAbsoluteURL()
ILink
getAbsoluteURL
in interface ILink
public String getAbsoluteURL(String scheme, String server, int port, String anchor, boolean includeParameters)
ILink
getAbsoluteURL
in interface ILink
scheme
- if not null, overrides the default scheme.server
- if not null, overrides the default serverport
- if non-zero, overrides the default portanchor
- if not null, appended to the URLincludeParameters
- if true, parameters are includedpublic String[] getParameterNames()
ILink
getParameterNames
in interface ILink
ILink.getParameterValues(String)
public String[] getParameterValues(String name)
ILink
getParameterValues
in interface ILink
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |