|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tapestry.portlet.PortletLink
public class PortletLink
Wrapper around PortletURL
.
Constructor Summary | |
---|---|
PortletLink(javax.portlet.PortletURL portletURL,
QueryParameterMap parameters)
|
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 alphabetical 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. |
String |
getURL(String scheme,
String server,
int port,
String anchor,
boolean includeParameters)
Returns the URL as either a local or absoluate URL, depending on whether any of the parameters are both non-null and mismatched against the incoming request. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PortletLink(javax.portlet.PortletURL portletURL, QueryParameterMap parameters)
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 getURL(String scheme, String server, int port, String anchor, boolean includeParameters)
ILink
getURL
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 includedILink.getURL(String, boolean)
,
ILink.getAbsoluteURL(String, String, int, String, boolean)
public 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 |