/** * Sets the value of the senders argument which indicates the parties that will be generating * content in this session; the allowable values are defined in the <tt>SendersEnum</tt>. * * @param senders a {@link SendersEnum} instance indicating the the parties that will be * generating content in this session. */ public void setSenders(SendersEnum senders) { setAttribute(SENDERS_ATTR_NAME, senders.toString()); }
/** * Returns the value of the senders argument which indicates the parties that will be generating * content in this session; the allowable values are defined in the <tt>SendersEnum</tt>. * * @return a {@link SendersEnum} instance indicating the the parties that will be generating * content in this session. */ public SendersEnum getSenders() { Object attributeVal = getAttribute(SENDERS_ATTR_NAME); return attributeVal == null ? null : SendersEnum.valueOf(attributeVal.toString()); }