Codota Logo
UIWebsocket$PropertyKeys.toString
Code IndexAdd Codota to your IDE (free)

How to use
toString
method
in
javax.faces.component.UIWebsocket$PropertyKeys

Best Java code snippets using javax.faces.component.UIWebsocket$PropertyKeys.toString (Showing top 8 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: org.apache.myfaces.core/myfaces-api

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);
}
origin: javax/javaee-web-api

/**
 * <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);
}
origin: javax.faces/javax.faces-api

/**
 * <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);
}
origin: eclipse-ee4j/mojarra

/**
 * <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);
}
origin: org.glassfish/javax.faces

/**
 * <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);
}
origin: org.glassfish/jakarta.faces

/**
 * <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);
}
origin: jboss/jboss-javaee-specs

/**
 * <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);
}
origin: eclipse-ee4j/mojarra

/**
 * <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);
}
javax.faces.componentUIWebsocket$PropertyKeystoString

Popular methods of UIWebsocket$PropertyKeys

    Popular in Java

    • Making http requests using okhttp
    • notifyDataSetChanged (ArrayAdapter)
    • scheduleAtFixedRate (Timer)
      Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
    • requestLocationUpdates (LocationManager)
    • Color (java.awt)
      The Color class is used encapsulate colors in the default sRGB color space or colors in arbitrary co
    • File (java.io)
      An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
    • Thread (java.lang)
      A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
    • Proxy (java.net)
      This class represents proxy server settings. A created instance of Proxy stores a type and an addres
    • MessageFormat (java.text)
      MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
    • List (java.util)
      A List is a collection which maintains an ordering for its elements. Every element in the List has a
    Codota Logo
    • Products

      Search for Java codeSearch for JavaScript codeEnterprise
    • IDE Plugins

      IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Codota for your IDE now