@param rundata RunData object from Turbine.
@return ConcreteElement object, including the complete ECS code for rendering
the page.
*/
public ConcreteElement getContent( RunData rundata ) {
CapabilityMap cm = CapabilityMapFactory.getCapabilityMap( rundata );
if ( cm.getPreferredType().equals( MimeType.HTML ) ) {
return getHTMLContent( rundata );
}
if ( cm.getPreferredType().equals( MimeType.WML ) ) {
return getWMLContent( rundata );
}
logger.error("The Given MIME-Type is not supportet for this control");
return null;
}