congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
FacesServlet$HttpMethod
Code IndexAdd Tabnine to your IDE (free)

How to use
FacesServlet$HttpMethod
in
javax.faces.webapp

Best Java code snippets using javax.faces.webapp.FacesServlet$HttpMethod (Showing top 20 results out of 315)

origin: eclipse-ee4j/mojarra

private void logUnknownHttpMethod(String httpMethod) {
  if (LOGGER.isLoggable(WARNING)) {
    HttpMethod[] values = HttpMethod.values();
    Object[] arg = new Object[values.length + 1];
    arg[0] = httpMethod;
    System.arraycopy(values, HttpMethod.OPTIONS.ordinal(), arg, 1, values.length);
    
    LOGGER.log(WARNING, "warning.webapp.facesservlet.init_invalid_http_method", arg);
  }
}

origin: org.glassfish/javax.faces

public void initializeAllowedKnownHttpMethods(List<String> allowedKnownHttpMethodsStringList) {
  if (5 == allowedKnownHttpMethodsStringList.size()) {
    allowedKnownHttpMethods = EnumSet.of(
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(0)),
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(1)), 
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(2)),
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(3)),
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(4)));
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(0)),
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(1)), 
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(2)),
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(3)));
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(0)),
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(1)), 
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(2)));
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(0)),
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(1)));
        EnumSet.of(HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(0)));
      restList.add(HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(i)));
    HttpMethod first = HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(0));
    HttpMethod[] rest = new HttpMethod[restList.size()];
    restList.toArray(rest);
origin: jboss/jboss-javaee-specs

    HttpMethod.valueOf(cur);
    isKnownHttpMethod = true;
  } catch (IllegalArgumentException e) {
      HttpMethod [] values = HttpMethod.values();
      Object [] arg = new Object[values.length + 1];
      arg[0] = cur;
      System.arraycopy(values, HttpMethod.OPTIONS.ordinal(),
               arg, 1, values.length);
      LOGGER.log(Level.WARNING,
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(0)),
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(1)),
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(2)),
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(3)),
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(4))
      );
} else if (4 == allowedKnownHttpMethodsStringList.size()) {
  allowedKnownHttpMethods = EnumSet.of(
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(0)),
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(1)),
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(2)),
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(3))
      );
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(0)),
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(1)),
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(2))
      );
origin: javax.faces/javax.faces-api

    HttpMethod.valueOf(cur);
    isKnownHttpMethod = true;
  } catch (IllegalArgumentException e) {
      HttpMethod [] values = HttpMethod.values();
      Object [] arg = new Object[values.length + 1];
      arg[0] = cur;
      System.arraycopy(values, HttpMethod.OPTIONS.ordinal(),
               arg, 1, values.length);
      LOGGER.log(Level.WARNING,
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(0)),
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(1)),
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(2)),
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(3)),
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(4))
      );
} else if (4 == allowedKnownHttpMethodsStringList.size()) {
  allowedKnownHttpMethods = EnumSet.of(
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(0)),
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(1)),
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(2)),
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(3))
      );
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(0)),
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(1)),
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(2))
      );
origin: javax/javaee-web-api

    HttpMethod.valueOf(cur);
    isKnownHttpMethod = true;
  } catch (IllegalArgumentException e) {
      HttpMethod [] values = HttpMethod.values();
      Object [] arg = new Object[values.length + 1];
      arg[0] = cur;
      System.arraycopy(values, HttpMethod.OPTIONS.ordinal(),
               arg, 1, values.length);
      LOGGER.log(Level.WARNING,
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(0)),
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(1)),
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(2)),
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(3)),
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(4))
      );
} else if (4 == allowedKnownHttpMethodsStringList.size()) {
  allowedKnownHttpMethods = EnumSet.of(
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(0)),
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(1)),
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(2)),
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(3))
      );
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(0)),
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(1)),
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(2))
      );
origin: com.sun.faces/jsf-api

    HttpMethod.valueOf(cur);
    isKnownHttpMethod = true;
  } catch (IllegalArgumentException e) {
      HttpMethod [] values = HttpMethod.values();
      Object [] arg = new Object[values.length + 1];
      arg[0] = cur;
      System.arraycopy(values, HttpMethod.OPTIONS.ordinal(), 
               arg, 1, values.length);
      LOGGER.log(Level.WARNING,
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(0)),
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(1)),
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(2)),
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(3)),
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(4))
      );
} else if (4 == allowedKnownHttpMethodsStringList.size()) {
  allowedKnownHttpMethods = EnumSet.of(
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(0)),
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(1)),
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(2)),
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(3))
      );
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(0)),
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(1)),
      HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(2))
      );
origin: eclipse-ee4j/mojarra

private void initializeAllowedKnownHttpMethods(List<String> allowedKnownHttpMethodsStringList) {
  if (5 == allowedKnownHttpMethodsStringList.size()) {
    allowedKnownHttpMethods = EnumSet.of(
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(0)),
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(1)), 
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(2)),
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(3)),
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(4)));
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(0)),
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(1)), 
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(2)),
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(3)));
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(0)),
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(1)), 
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(2)));
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(0)),
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(1)));
        EnumSet.of(HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(0)));
      restList.add(HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(i)));
    HttpMethod first = HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(0));
    HttpMethod[] rest = new HttpMethod[restList.size()];
    restList.toArray(rest);
origin: eclipse-ee4j/mojarra

private void initializeAllowedKnownHttpMethods(List<String> allowedKnownHttpMethodsStringList) {
  if (5 == allowedKnownHttpMethodsStringList.size()) {
    allowedKnownHttpMethods = EnumSet.of(
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(0)),
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(1)), 
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(2)),
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(3)),
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(4)));
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(0)),
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(1)), 
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(2)),
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(3)));
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(0)),
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(1)), 
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(2)));
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(0)),
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(1)));
        EnumSet.of(HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(0)));
      restList.add(HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(i)));
    HttpMethod first = HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(0));
    HttpMethod[] rest = new HttpMethod[restList.size()];
    restList.toArray(rest);
origin: org.glassfish/jakarta.faces

private void initializeAllowedKnownHttpMethods(List<String> allowedKnownHttpMethodsStringList) {
  if (5 == allowedKnownHttpMethodsStringList.size()) {
    allowedKnownHttpMethods = EnumSet.of(
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(0)),
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(1)), 
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(2)),
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(3)),
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(4)));
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(0)),
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(1)), 
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(2)),
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(3)));
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(0)),
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(1)), 
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(2)));
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(0)),
        HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(1)));
        EnumSet.of(HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(0)));
      restList.add(HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(i)));
    HttpMethod first = HttpMethod.valueOf(allowedKnownHttpMethodsStringList.get(0));
    HttpMethod[] rest = new HttpMethod[restList.size()];
    restList.toArray(rest);
origin: eclipse-ee4j/mojarra

private boolean isHttpMethodValid(HttpServletRequest request) {
  boolean result = false;
  if (allowAllMethods) {
    result = true;
  } else {
    String requestMethodString = request.getMethod();
    HttpMethod requestMethod = null;
    boolean isKnownHttpMethod;
    try {
      requestMethod = HttpMethod.valueOf(requestMethodString);
      isKnownHttpMethod = true;
    } catch (IllegalArgumentException e) {
      isKnownHttpMethod = false;
    }
    if (isKnownHttpMethod) {
      result = allowedKnownHttpMethods.contains(requestMethod);
    } else {
      result = allowedUnknownHttpMethods.contains(requestMethodString);
    }
  }
  return result;
}
origin: eclipse-ee4j/mojarra

private boolean isHttpMethodValid(HttpServletRequest request) {
  boolean result = false;
  if (allowAllMethods) {
    result = true;
  } else {
    String requestMethodString = request.getMethod();
    HttpMethod requestMethod = null;
    boolean isKnownHttpMethod;
    try {
      requestMethod = HttpMethod.valueOf(requestMethodString);
      isKnownHttpMethod = true;
    } catch (IllegalArgumentException e) {
      isKnownHttpMethod = false;
    }
    if (isKnownHttpMethod) {
      result = allowedKnownHttpMethods.contains(requestMethod);
    } else {
      result = allowedUnknownHttpMethods.contains(requestMethodString);
    }
  }
  return result;
}
origin: jboss/jboss-javaee-specs

private boolean isHttpMethodValid(HttpServletRequest request) {
  boolean result = false;
  if (allowAllMethods) {
    result = true;
  } else {
    String requestMethodString = request.getMethod();
    HttpMethod requestMethod = null;
    boolean isKnownHttpMethod;
    try {
      requestMethod = HttpMethod.valueOf(requestMethodString);
      isKnownHttpMethod = true;
    } catch (IllegalArgumentException e) {
      isKnownHttpMethod = false;
    }
    if (isKnownHttpMethod) {
      result = allowedKnownHttpMethods.contains(requestMethod);
    } else {
      result = allowedUnknownHttpMethods.contains(requestMethodString);
    }
  }
  return result;
}
origin: org.glassfish/jakarta.faces

private boolean isHttpMethodValid(HttpServletRequest request) {
  boolean result = false;
  if (allowAllMethods) {
    result = true;
  } else {
    String requestMethodString = request.getMethod();
    HttpMethod requestMethod = null;
    boolean isKnownHttpMethod;
    try {
      requestMethod = HttpMethod.valueOf(requestMethodString);
      isKnownHttpMethod = true;
    } catch (IllegalArgumentException e) {
      isKnownHttpMethod = false;
    }
    if (isKnownHttpMethod) {
      result = allowedKnownHttpMethods.contains(requestMethod);
    } else {
      result = allowedUnknownHttpMethods.contains(requestMethodString);
    }
  }
  return result;
}
origin: org.glassfish/javax.faces

private boolean isHttpMethodValid(HttpServletRequest request) {
  boolean result = false;
  if (allowAllMethods) {
    result = true;
  } else {
    String requestMethodString = request.getMethod();
    HttpMethod requestMethod = null;
    boolean isKnownHttpMethod;
    try {
      requestMethod = HttpMethod.valueOf(requestMethodString);
      isKnownHttpMethod = true;
    } catch (IllegalArgumentException e) {
      isKnownHttpMethod = false;
    }
    if (isKnownHttpMethod) {
      result = allowedKnownHttpMethods.contains(requestMethod);
    } else {
      result = allowedUnknownHttpMethods.contains(requestMethodString);
    }
  }
  return result;
}
origin: javax.faces/javax.faces-api

private boolean isHttpMethodValid(HttpServletRequest request) {
  boolean result = false;
  if (allowAllMethods) {
    result = true;
  } else {
    String requestMethodString = request.getMethod();
    HttpMethod requestMethod = null;
    boolean isKnownHttpMethod;
    try {
      requestMethod = HttpMethod.valueOf(requestMethodString);
      isKnownHttpMethod = true;
    } catch (IllegalArgumentException e) {
      isKnownHttpMethod = false;
    }
    if (isKnownHttpMethod) {
      result = allowedKnownHttpMethods.contains(requestMethod);
    } else {
      result = allowedUnknownHttpMethods.contains(requestMethodString);
    }
  }
  return result;
}
origin: com.sun.faces/jsf-api

private boolean isHttpMethodValid(HttpServletRequest request) {
  boolean result = false;
  if (allowAllMethods) {
    result = true;
  } else {
    String requestMethodString = request.getMethod();
    HttpMethod requestMethod = null;
    boolean isKnownHttpMethod;
    try {
      requestMethod = HttpMethod.valueOf(requestMethodString);
      isKnownHttpMethod = true;
    } catch (IllegalArgumentException e) {
      isKnownHttpMethod = false;
    }
    if (isKnownHttpMethod) {
      result = allowedKnownHttpMethods.contains(requestMethod);
    } else {
      result = allowedUnknownHttpMethods.contains(requestMethodString);
    }
    
  }
  return result;
}
origin: javax/javaee-web-api

private boolean isHttpMethodValid(HttpServletRequest request) {
  boolean result = false;
  if (allowAllMethods) {
    result = true;
  } else {
    String requestMethodString = request.getMethod();
    HttpMethod requestMethod = null;
    boolean isKnownHttpMethod;
    try {
      requestMethod = HttpMethod.valueOf(requestMethodString);
      isKnownHttpMethod = true;
    } catch (IllegalArgumentException e) {
      isKnownHttpMethod = false;
    }
    if (isKnownHttpMethod) {
      result = allowedKnownHttpMethods.contains(requestMethod);
    } else {
      result = allowedUnknownHttpMethods.contains(requestMethodString);
    }
  }
  return result;
}
origin: eclipse-ee4j/mojarra

private boolean isKnownHttpMethod(String httpMethod) {
  try {
    HttpMethod.valueOf(httpMethod);
    return true;
  } catch (IllegalArgumentException e) {
    return false;
  }
}

origin: eclipse-ee4j/mojarra

private boolean isKnownHttpMethod(String httpMethod) {
  try {
    HttpMethod.valueOf(httpMethod);
    return true;
  } catch (IllegalArgumentException e) {
    return false;
  }
}

origin: org.glassfish/jakarta.faces

private void logUnknownHttpMethod(String httpMethod) {
  if (LOGGER.isLoggable(WARNING)) {
    HttpMethod[] values = HttpMethod.values();
    Object[] arg = new Object[values.length + 1];
    arg[0] = httpMethod;
    System.arraycopy(values, HttpMethod.OPTIONS.ordinal(), arg, 1, values.length);
    
    LOGGER.log(WARNING, "warning.webapp.facesservlet.init_invalid_http_method", arg);
  }
}

javax.faces.webappFacesServlet$HttpMethod

Most used methods

  • ordinal
  • valueOf
  • values

Popular in Java

  • Creating JSON documents from java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getResourceAsStream (ClassLoader)
  • setRequestProperty (URLConnection)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Path (java.nio.file)
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • JFileChooser (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • IsNull (org.hamcrest.core)
    Is the value null?
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now