org.apache.tapestry.link
Class StaticLink
java.lang.Object
|
+--org.apache.tapestry.link.StaticLink
- All Implemented Interfaces:
- ILink
- public class StaticLink
- extends Object
- implements ILink
Used by GenericLink
to represent
an external, static URL.
- Since:
- 3.0
- Version:
- $Id: StaticLink.java,v 1.2 2003/04/17 21:33:58 hlship Exp $
- Author:
- Howard Lewis Ship
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StaticLink
public StaticLink(String url)
getURL
public String getURL()
- Description copied from interface:
ILink
- Returns the relative URL as a String. A relative
URL may include a leading slash, but omits
the scheme, host and port portions of a full URL.
- Specified by:
getURL
in interface ILink
getURL
public String getURL(String anchor,
boolean includeParameters)
- Description copied from interface:
ILink
- Returns the relative URL as a String. This is used
for most links.
- Specified by:
getURL
in interface ILink
- Following copied from interface:
org.apache.tapestry.engine.ILink
- Parameters:
anchor
- if not null, appended to the URLincludeParameters
- if true, parameters are included
getAbsoluteURL
public String getAbsoluteURL()
- Description copied from interface:
ILink
- Returns the absolute URL as a String, using
default scheme, server and port, including
parameters, and no anchor.
- Specified by:
getAbsoluteURL
in interface ILink
getAbsoluteURL
public String getAbsoluteURL(String scheme,
String server,
int port,
String anchor,
boolean includeParameters)
- Description copied from interface:
ILink
- Returns the absolute URL as a String.
- Specified by:
getAbsoluteURL
in interface ILink
- Following copied from interface:
org.apache.tapestry.engine.ILink
- Parameters:
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 included
getParameterNames
public String[] getParameterNames()
- Description copied from interface:
ILink
- Returns an array of parameters names (in
no specified order).
- Specified by:
getParameterNames
in interface ILink
- Following copied from interface:
org.apache.tapestry.engine.ILink
- See Also:
#getParameterValue(String)
getParameterValues
public String[] getParameterValues(String name)
- Description copied from interface:
ILink
- Returns the values for the named parameter.
- Specified by:
getParameterValues
in interface ILink
- Following copied from interface:
org.apache.tapestry.engine.ILink
- Throws:
IllegalArgumentException
- if the
link does not define values for the
specified name.