/** * 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); }
@Override public Status with(PropertyType<Boolean> propertyType) throws NullPointerException { return (Status)super.with(propertyType); }
/** * Removes a property. * * @param propertyType the property type * @throws NullPointerException if the property type is null */ public <T> Response without(PropertyType<T> propertyType) throws NullPointerException { return with(propertyType, null); }
/** * 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); }
/** * 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); }
@Override public View with(PropertyType<Boolean> propertyType) throws NullPointerException { return (View)super.with(propertyType); }
@Override public <T> Redirect with(PropertyType<T> propertyType, T propertyValue) throws NullPointerException { return (Redirect)super.with(propertyType, propertyValue); }
@Override public <T> Redirect with(PropertyType<T> propertyType, T propertyValue) throws NullPointerException { return (Redirect)super.with(propertyType, propertyValue); }
/** * Removes a property. * * @param propertyType the property type * @throws NullPointerException if the property type is null */ public <T> Response without(PropertyType<T> propertyType) throws NullPointerException { return with(propertyType, null); }
/** * 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); }
@Override public Redirect with(PropertyType<Boolean> propertyType) throws NullPointerException { return (Redirect)super.with(propertyType); }
@Override public <T> View with(PropertyType<T> propertyType, T propertyValue) throws NullPointerException { return (View)super.with(propertyType, propertyValue); }
@Override public <T> View with(PropertyType<T> propertyType, T propertyValue) throws NullPointerException { return (View)super.with(propertyType, propertyValue); }
@Override public View with(PropertyType<Boolean> propertyType) throws NullPointerException { return (View)super.with(propertyType); }
@Override public Status with(PropertyType<Boolean> propertyType) throws NullPointerException { return (Status)super.with(propertyType); }
@Override public <T> Status with(PropertyType<T> propertyType, T propertyValue) throws NullPointerException { return (Status)super.with(propertyType, propertyValue); }
@Override public <T> Status with(PropertyType<T> propertyType, T propertyValue) throws NullPointerException { return (Status)super.with(propertyType, propertyValue); }
@Override public Redirect with(PropertyType<Boolean> propertyType) throws NullPointerException { return (Redirect)super.with(propertyType); }
public Response withHeader(String name, String... value) { return with(PropertyType.HEADER, new AbstractMap.SimpleEntry<String, String[]>(name, value)); }
public Response withHeader(String name, String... value) { return with(PropertyType.HEADER, new AbstractMap.SimpleEntry<String, String[]>(name, value)); }