/** * <p> * Set the {@link ValueExpression} used to calculate the value for the specified attribute or property name, if any. * If a {@link ValueExpression} is set for the <code>channel</code> or <code>scope</code> property, regardless of * the value, throw an illegal argument exception. If a {@link ValueExpression} is set for the <code>user</code> * property, and the non-null value is not an instance of <code>Serializable</code>, throw an illegal argument * exception. * </p> * * @throws IllegalArgumentException If <code>name</code> is one of <code>id</code>, <code>parent</code>, * <code>channel</code> or <code>scope</code>, or it <code>name</code> is <code>user</code> and the non-null value * is not an instance of <code>Serializable</code>. * @throws NullPointerException If <code>name</code> is <code>null</code>. */ @Override public void setValueExpression(String name, ValueExpression binding) { if (PropertyKeys.channel.toString().equals(name) || PropertyKeys.scope.toString().equals(name)) { throw new IllegalArgumentException(name); } if (PropertyKeys.user.toString().equals(name)) { Object user = binding.getValue(getFacesContext().getELContext()); if (user != null && !(user instanceof Serializable)) { throw new IllegalArgumentException(String.format(ERROR_INVALID_USER, user)); } } super.setValueExpression(name, binding); }
/** * <p> * Set the {@link ValueExpression} used to calculate the value for the specified attribute or property name, if any. * If a {@link ValueExpression} is set for the <code>channel</code> or <code>scope</code> property, regardless of * the value, throw an illegal argument exception. If a {@link ValueExpression} is set for the <code>user</code> * property, and the non-null value is not an instance of <code>Serializable</code>, throw an illegal argument * exception. * </p> * * @throws IllegalArgumentException If <code>name</code> is one of <code>id</code>, <code>parent</code>, * <code>channel</code> or <code>scope</code>, or it <code>name</code> is <code>user</code> and the non-null value * is not an instance of <code>Serializable</code>. * @throws NullPointerException If <code>name</code> is <code>null</code>. */ @Override public void setValueExpression(String name, ValueExpression binding) { if (PropertyKeys.channel.toString().equals(name) || PropertyKeys.scope.toString().equals(name)) { throw new IllegalArgumentException(name); } if (PropertyKeys.user.toString().equals(name)) { Object user = binding.getValue(getFacesContext().getELContext()); if (user != null && !(user instanceof Serializable)) { throw new IllegalArgumentException(String.format(ERROR_INVALID_USER, user)); } } super.setValueExpression(name, binding); }
/** * <p> * Set the {@link ValueExpression} used to calculate the value for the specified attribute or property name, if any. * If a {@link ValueExpression} is set for the <code>channel</code> or <code>scope</code> property, regardless of * the value, throw an illegal argument exception. If a {@link ValueExpression} is set for the <code>user</code> * property, and the non-null value is not an instance of <code>Serializable</code>, throw an illegal argument * exception. * </p> * * @throws IllegalArgumentException If <code>name</code> is one of <code>id</code>, <code>parent</code>, * <code>channel</code> or <code>scope</code>, or it <code>name</code> is <code>user</code> and the non-null value * is not an instance of <code>Serializable</code>. * @throws NullPointerException If <code>name</code> is <code>null</code>. */ @Override public void setValueExpression(String name, ValueExpression binding) { if (PropertyKeys.channel.toString().equals(name) || PropertyKeys.scope.toString().equals(name)) { throw new IllegalArgumentException(name); } if (PropertyKeys.user.toString().equals(name)) { Object user = binding.getValue(getFacesContext().getELContext()); if (user != null && !(user instanceof Serializable)) { throw new IllegalArgumentException(String.format(ERROR_INVALID_USER, user)); } } super.setValueExpression(name, binding); }
/** * <p> * Set the {@link ValueExpression} used to calculate the value for the specified attribute or property name, if any. * If a {@link ValueExpression} is set for the <code>channel</code> or <code>scope</code> property, regardless of * the value, throw an illegal argument exception. If a {@link ValueExpression} is set for the <code>user</code> * property, and the non-null value is not an instance of <code>Serializable</code>, throw an illegal argument * exception. * </p> * * @throws IllegalArgumentException If <code>name</code> is one of <code>id</code>, <code>parent</code>, * <code>channel</code> or <code>scope</code>, or it <code>name</code> is <code>user</code> and the non-null value * is not an instance of <code>Serializable</code>. * @throws NullPointerException If <code>name</code> is <code>null</code>. */ @Override public void setValueExpression(String name, ValueExpression binding) { if (PropertyKeys.channel.toString().equals(name) || PropertyKeys.scope.toString().equals(name)) { throw new IllegalArgumentException(name); } if (PropertyKeys.user.toString().equals(name)) { Object user = binding.getValue(getFacesContext().getELContext()); if (user != null && !(user instanceof Serializable)) { throw new IllegalArgumentException(String.format(ERROR_INVALID_USER, user)); } } super.setValueExpression(name, binding); }
/** * <p> * Set the {@link ValueExpression} used to calculate the value for the specified attribute or property name, if any. * If a {@link ValueExpression} is set for the <code>channel</code> or <code>scope</code> property, regardless of * the value, throw an illegal argument exception. If a {@link ValueExpression} is set for the <code>user</code> * property, and the non-null value is not an instance of <code>Serializable</code>, throw an illegal argument * exception. * </p> * * @throws IllegalArgumentException If <code>name</code> is one of <code>id</code>, <code>parent</code>, * <code>channel</code> or <code>scope</code>, or it <code>name</code> is <code>user</code> and the non-null value * is not an instance of <code>Serializable</code>. * @throws NullPointerException If <code>name</code> is <code>null</code>. */ @Override public void setValueExpression(String name, ValueExpression binding) { if (PropertyKeys.channel.toString().equals(name) || PropertyKeys.scope.toString().equals(name)) { throw new IllegalArgumentException(name); } if (PropertyKeys.user.toString().equals(name)) { Object user = binding.getValue(getFacesContext().getELContext()); if (user != null && !(user instanceof Serializable)) { throw new IllegalArgumentException(String.format(ERROR_INVALID_USER, user)); } } super.setValueExpression(name, binding); }
/** * <p> * Set the {@link ValueExpression} used to calculate the value for the specified attribute or property name, if any. * If a {@link ValueExpression} is set for the <code>channel</code> or <code>scope</code> property, regardless of * the value, throw an illegal argument exception. If a {@link ValueExpression} is set for the <code>user</code> * property, and the non-null value is not an instance of <code>Serializable</code>, throw an illegal argument * exception. * </p> * * @throws IllegalArgumentException If <code>name</code> is one of <code>id</code>, <code>parent</code>, * <code>channel</code> or <code>scope</code>, or it <code>name</code> is <code>user</code> and the non-null value * is not an instance of <code>Serializable</code>. * @throws NullPointerException If <code>name</code> is <code>null</code>. */ @Override public void setValueExpression(String name, ValueExpression binding) { if (PropertyKeys.channel.toString().equals(name) || PropertyKeys.scope.toString().equals(name)) { throw new IllegalArgumentException(name); } if (PropertyKeys.user.toString().equals(name)) { Object user = binding.getValue(getFacesContext().getELContext()); if (user != null && !(user instanceof Serializable)) { throw new IllegalArgumentException(String.format(ERROR_INVALID_USER, user)); } } super.setValueExpression(name, binding); }
/** * <p> * Set the {@link ValueExpression} used to calculate the value for the specified attribute or property name, if any. * If a {@link ValueExpression} is set for the <code>channel</code> or <code>scope</code> property, regardless of * the value, throw an illegal argument exception. If a {@link ValueExpression} is set for the <code>user</code> * property, and the non-null value is not an instance of <code>Serializable</code>, throw an illegal argument * exception. * </p> * * @throws IllegalArgumentException If <code>name</code> is one of <code>id</code>, <code>parent</code>, * <code>channel</code> or <code>scope</code>, or it <code>name</code> is <code>user</code> and the non-null value * is not an instance of <code>Serializable</code>. * @throws NullPointerException If <code>name</code> is <code>null</code>. */ @Override public void setValueExpression(String name, ValueExpression binding) { if (PropertyKeys.channel.toString().equals(name) || PropertyKeys.scope.toString().equals(name)) { throw new IllegalArgumentException(name); } if (PropertyKeys.user.toString().equals(name)) { Object user = binding.getValue(getFacesContext().getELContext()); if (user != null && !(user instanceof Serializable)) { throw new IllegalArgumentException(String.format(ERROR_INVALID_USER, user)); } } super.setValueExpression(name, binding); }
public void setValueExpression(java.lang.String name, javax.el.ValueExpression binding) { if (PropertyKeys.channel.toString().equals(name) || PropertyKeys.scope.toString().equals(name)) { throw new IllegalArgumentException(name); } if (PropertyKeys.user.toString().equals(name)) { Object user = binding.getValue(getFacesContext().getELContext()); if (user != null && !(user instanceof Serializable)) { throw new IllegalArgumentException("f:websocket 'user' attribute does not represent a valid user identifier because it is not Serializable."); } } super.setValueExpression(name, binding); }