|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cocoon.portal.impl.LinkInfo
public class LinkInfo
Helper class containing the information about common parts for each link that will be generated in the portal page.
| Field Summary | |
|---|---|
protected ArrayList |
comparableEvents
|
protected boolean |
hasParameters
|
protected String |
httpLinkBase
Link base contains the base url for the http protocol. |
protected boolean |
isSecure
Is the page called using https? |
protected Request |
request
|
protected String |
secureLinkBase
|
protected StringBuffer |
url
|
| Constructor Summary | |
|---|---|
LinkInfo(Request request,
int defaultPort,
int defaultSecurePort)
|
|
| Method Summary | |
|---|---|
void |
addParameterToBase(String name,
String value)
|
LinkInfo |
appendToBase(char c)
|
LinkInfo |
appendToBase(String value)
|
void |
deleteParameterFromBase(String parameterName)
|
protected String |
getAbsoluteUrl(Request request,
boolean useSecure,
int port)
Return the absolute URL for a reqeust |
String |
getBase(Boolean secure)
|
protected String |
getHttpLinkBase(Request request,
String relativeURI,
int defaultPort)
Return the url for an http request |
protected String |
getRelativeURI(Request request)
|
protected String |
getSecureLinkBase(Request request,
String relativeURI,
int defaultPort)
Return the base url for a secure http request |
boolean |
hasParameters()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final String httpLinkBase
protected final String secureLinkBase
protected boolean hasParameters
protected final ArrayList comparableEvents
protected final StringBuffer url
protected final Request request
protected final boolean isSecure
| Constructor Detail |
|---|
public LinkInfo(Request request,
int defaultPort,
int defaultSecurePort)
| Method Detail |
|---|
protected String getRelativeURI(Request request)
protected String getSecureLinkBase(Request request,
String relativeURI,
int defaultPort)
relativeURI - The current relative URIdefaultPort - The default port to use
protected String getHttpLinkBase(Request request,
String relativeURI,
int defaultPort)
relativeURI - The current relative URIdefaultPort - The default port to use
protected String getAbsoluteUrl(Request request,
boolean useSecure,
int port)
request - The current RequestuseSecure - true if the Request should be secureport - The port to use
public String getBase(Boolean secure)
public LinkInfo appendToBase(String value)
public LinkInfo appendToBase(char c)
public void deleteParameterFromBase(String parameterName)
public void addParameterToBase(String name,
String value)
public boolean hasParameters()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||