org.apache.cocoon.portal.impl
Class LinkInfo

java.lang.Object
  extended byorg.apache.cocoon.portal.impl.LinkInfo

public class LinkInfo
extends Object

Helper class containing the information about common parts for each link that will be generated in the portal page.

Version:
$Id: LinkInfo.java 293351 2005-10-03 13:43:39Z cziegeler $

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  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)
           
 String getBase(Boolean secure)
           
 boolean hasParameters()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

httpLinkBase

protected final String httpLinkBase
Link base contains the base url for the http protocol.


secureLinkBase

protected final String secureLinkBase

hasParameters

protected boolean hasParameters

comparableEvents

protected final ArrayList comparableEvents

url

protected final StringBuffer url

isSecure

protected final boolean isSecure
Is the page called using https?

Constructor Detail

LinkInfo

public LinkInfo(Request request,
                int defaultPort,
                int defaultSecurePort)
Method Detail

getAbsoluteUrl

protected String getAbsoluteUrl(Request request,
                                boolean useSecure,
                                int port)

getBase

public String getBase(Boolean secure)

appendToBase

public LinkInfo appendToBase(String value)

appendToBase

public LinkInfo appendToBase(char c)

deleteParameterFromBase

public void deleteParameterFromBase(String parameterName)

addParameterToBase

public void addParameterToBase(String name,
                               String value)

hasParameters

public boolean hasParameters()


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.