/* (non-Javadoc)
* @see org.jasig.portal.IChannel#setRuntimeData(org.jasig.portal.ChannelRuntimeData)
*/
public void setRuntimeData(ChannelRuntimeData rd) throws PortalException {
final PortalControlStructures portalControlStructures = this.portalControlStructuresLocal.get();
if (portalControlStructures == null) {
throw new IllegalStateException("setPortalControlStructures must be set before setRuntimeData is called");
}
this.channelRuntimeDataLocal.set(rd);
//Attach the runtime data as an attribute on the request so it is accessible to other portlet rendering related classes
final HttpServletRequest httpServletRequest = portalControlStructures.getHttpServletRequest();
httpServletRequest.setAttribute(ATTRIBUTE__RUNTIME_DATA, rd);
if (this.logger.isTraceEnabled()) {
this.logger.trace("Set ChannelRuntimeData " + rd + " on " + httpServletRequest);
}
}