Class Snippets

java.lang.Object
net.bjmsw.hda.vs.helper.Snippets

public class Snippets extends Object
Snippets class provides methods for some common http tasks.
  • Constructor Details

    • Snippets

      public Snippets()
  • Method Details

    • checkMethod

      public static boolean checkMethod(Request r, Request.Method m)
      Checks if the specified request method is allowed.
      Parameters:
      r - the request to be checked
      m - the allowed request method
      Returns:
      true if the request method is allowed, false otherwise