org.apache.cocoon.portal.impl
Class PageLabelLinkService
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.portal.impl.DefaultLinkService
org.apache.cocoon.portal.impl.PageLabelLinkService
- All Implemented Interfaces:
- Disposable, Component, Contextualizable, LogEnabled, Parameterizable, Serviceable, ThreadSafe, LinkService
public class PageLabelLinkService
- extends DefaultLinkService
The PageLabelLinkService generates links for named items defined in the layout portal.xml. Links
for other entities are passed to the DefaultLinkService to be resolved.
- Version:
- CVS $Id: PageLabelLinkService.html 1304258 2012-03-23 10:09:27Z ilgrosso $
- Author:
- Ralph Goers
Methods inherited from class org.apache.cocoon.portal.impl.DefaultLinkService |
addEventToLink, addParameterToLink, addUniqueParameterToLink, contextualize, encodeURL, getLinkURI, getLinkURI, getLinkURI, getRefreshLinkURI, getRefreshLinkURI, isSecure, parameterize |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
apectName
protected String apectName
labelManager
protected PageLabelManager labelManager
- The label manager
PageLabelLinkService
public PageLabelLinkService()
service
public void service(ServiceManager manager)
throws ServiceException
- Specified by:
service
in interface Serviceable
- Overrides:
service
in class DefaultLinkService
- Throws:
ServiceException
- See Also:
Serviceable.service(org.apache.avalon.framework.service.ServiceManager)
getLinkURI
public String getLinkURI(List events,
Boolean secure)
- Description copied from interface:
LinkService
- Get a uri for this coplet containing the additional events. Use a secure
protocol if requested.
- Specified by:
getLinkURI
in interface LinkService
- Overrides:
getLinkURI
in class DefaultLinkService
- Parameters:
events
- The events to add: These can either be Event
s or LinkService.ParameterDescription
s.secure
- true if a secure protocol is required, false otherwise.
- Returns:
- A URI
- See Also:
LinkService.getLinkURI(java.util.List)
initBuffer
protected String initBuffer(LinkInfo info,
Event event,
Boolean secure)
- Overrides:
initBuffer
in class DefaultLinkService
initBuffer
protected String initBuffer(LinkInfo info,
List events,
Boolean secure)
- Overrides:
initBuffer
in class DefaultLinkService
addEvent
protected boolean addEvent(StringBuffer buffer,
Event event,
boolean hasParams)
- Add one event to the buffer
- Overrides:
addEvent
in class DefaultLinkService
- Returns:
- Returns true, if the link contains a parameter
processEvent
protected String processEvent(Event event,
StringBuffer value)
- Overrides:
processEvent
in class DefaultLinkService
dispose
public void dispose()
- Specified by:
dispose
in interface Disposable
- Overrides:
dispose
in class DefaultLinkService
- See Also:
Disposable.dispose()
getInfo
protected LinkInfo getInfo()
- Return the current info for the request.
- Overrides:
getInfo
in class DefaultLinkService
- Returns:
- A LinkInfo object.
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.