org.apache.cocoon.portal.event.impl
Class PageLabelEventConverter

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.cocoon.portal.event.impl.PageLabelEventConverter
All Implemented Interfaces:
EventConverter, LogEnabled, Serviceable, ThreadSafe

public class PageLabelEventConverter
extends AbstractLogEnabled
implements EventConverter, Serviceable, ThreadSafe

Convert events from and into strings.

Version:
$Id: PageLabelEventConverter.java 326626 2005-10-19 18:16:57Z cziegeler $

Field Summary
protected  PageLabelManager labelManager
           
protected  ServiceManager manager
           
 
Fields inherited from interface org.apache.cocoon.portal.event.EventConverter
ROLE
 
Constructor Summary
PageLabelEventConverter()
           
 
Method Summary
 Event decode(String value)
          Decode an event.
 String encode(Event event)
          Encode an event.
 void finish()
          This notifies the converter that an event processing phase ends.
 void service(ServiceManager manager)
           
 void start()
          This notifies the converter that a new event processing phase starts.
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

labelManager

protected PageLabelManager labelManager

manager

protected ServiceManager manager
Constructor Detail

PageLabelEventConverter

public PageLabelEventConverter()
Method Detail

service

public void service(ServiceManager manager)
             throws ServiceException
Specified by:
service in interface Serviceable
Throws:
ServiceException
See Also:
Serviceable.service(org.apache.avalon.framework.service.ServiceManager)

encode

public String encode(Event event)
Description copied from interface: EventConverter
Encode an event. This is used to "activate" events using a link

Specified by:
encode in interface EventConverter
Parameters:
event - The event to encode
Returns:
A unique string representation for this event
See Also:
EventConverter.encode(org.apache.cocoon.portal.event.Event)

decode

public Event decode(String value)
Description copied from interface: EventConverter
Decode an event. This is used to "activate" events using a link

Specified by:
decode in interface EventConverter
Parameters:
value - The string representation created using EventConverter.encode(Event)
Returns:
The event or null
See Also:
EventConverter.decode(java.lang.String)

start

public void start()
Description copied from interface: EventConverter
This notifies the converter that a new event processing phase starts.

Specified by:
start in interface EventConverter
See Also:
EventConverter.start()

finish

public void finish()
Description copied from interface: EventConverter
This notifies the converter that an event processing phase ends.

Specified by:
finish in interface EventConverter
See Also:
EventConverter.finish()


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