/** * Set the provided element on the response as an HTML header. * * @param header the header * @return this object */ public Content withHeaderTag(Element header) { return with(PropertyType.HEADER_TAG, header); }
/** * Set a boolean property to true. * * @param propertyType the property type * @throws NullPointerException if the property type is null */ public Response with(PropertyType<Boolean> propertyType) throws NullPointerException { return with(propertyType, true); }
/** @author <a href="mailto:julien.viet@exoplatform.com">Julien Viet</a> */ @RequestScoped public class Bean { public final BeanProvider provider; public Bean(BeanProvider provider) { this.provider = provider; } }
/** * Set the provided element on the response as an HTML header. * * @param header the header * @return this object */ public Content withHeaderTag(Element header) { return with(PropertyType.HEADER_TAG, header); }
/** * Set a boolean property to false. * * @param propertyType the property type * @throws NullPointerException if the property type is null */ public Response withNo(PropertyType<Boolean> propertyType) throws NullPointerException { return with(propertyType, false); }