cfboom.http

Class HttpMethod

lucee.Component
    extended by cfboom.lang.Object
      extended by cfboom.http.HttpMethod

Enumeration of HTTP request methods.

Class Attributes:
  • output : false
  •  
  • displayname : Enum HttpMethod
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Constructor Summary
    init(string value)
          Internally used during HttpMethod.
    Method Summary
    HttpMethod enum()
    boolean matches(string method)
         Determine whether this {@code HttpMethod} matches the given.
    any resolve(string method)
         Resolve the given method value to an {@code HttpMethod}.
    string toString()
    string value()
    struct values()
         Return the enum values.
     
    Methods inherited from class cfboom.lang.Object
    $equals, getComponentName, getIdentityHashCode, getIdentityString, getMeta, hashCode
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init(string value)

    Internally used during HttpMethod.enum().

    Parameters:
    value

    Method Detail

    enum

    public HttpMethod enum()


    matches

    public boolean matches(string method)

    Determine whether this {@code HttpMethod} matches the given method value.

    Parameters:
    method
    Returns:
    {@code true} if it matches, {@code false} otherwise

    resolve

    public any resolve(string method)

    Resolve the given method value to an {@code HttpMethod}.

    Parameters:
    method
    Returns:
    the corresponding {@code HttpMethod}, or {@code null} if not found

    toString

    public string toString()

    Overrides:
    toString in class cfboom.lang.Object

    value

    public string value()


    values

    public struct values()

    Return the enum values.