org.apache.wsrp4j.producer.provider.driver
Class PortletImpl

java.lang.Object
  extended by org.apache.wsrp4j.producer.provider.driver.PortletImpl
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Portlet
Direct Known Subclasses:
ConsumerConfiguredPortletImpl, ProducerOfferedPortletImpl

public abstract class PortletImpl
extends java.lang.Object
implements Portlet, java.io.Serializable

This abstract class implements the Portlet interface encapsulating Portlet-objects. Provides setters and getters.

Implements the Cloneable interface to enable cloning of portlets.

Implements the Serializable interface to enable serialization, e.g. to an XML-file.

Author:
Stefan Behl
See Also:
ProducerOfferedPortlet, Serialized Form

Constructor Summary
PortletImpl()
           
 
Method Summary
abstract  java.lang.Object clone()
          Redefines the clone-method of the Cloneable-interface.
 java.lang.String getPortletHandle()
          Returns the portletHandle.
 void setPortletHandle(java.lang.String portletHandle)
          Sets the portletHandle to enable identification of the portlet.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletImpl

public PortletImpl()
Method Detail

getPortletHandle

public java.lang.String getPortletHandle()
Returns the portletHandle.

Specified by:
getPortletHandle in interface Portlet
Returns:
A String representing the portletHandle.

setPortletHandle

public void setPortletHandle(java.lang.String portletHandle)
Sets the portletHandle to enable identification of the portlet.

Specified by:
setPortletHandle in interface Portlet
Parameters:
portletHandle - String to be assigned to handle.

clone

public abstract java.lang.Object clone()
Redefines the clone-method of the Cloneable-interface. This is necessary as the clone-method is declared protected in the Object class.

Overrides:
clone in class java.lang.Object
Returns:
Object representing the cloned object.