Interface Request

All Superinterfaces:
Message

public interface Request extends Message
An interface for building and executing HTTP requests.
  • Method Details

    • getUri

      URI getUri()
      Returns this request's URI, if set.
      Returns:
      The URI or null if not yet set
    • getAccept

      String getAccept()
      Returns this request's Accept header, if set.
      Returns:
      The accept header value
    • getAttribute

      String getAttribute(String name)
      Gets an attribute from the request. Attributes are request metadata that are forwarded to the analytics plugin when enabled.
      Parameters:
      name - The attribute name
      Returns:
      The attribute value, or null if not set
    • getAttributes

      Map<String,String> getAttributes()
      Gets all attributes for this request. Attributes are request metadata that are forwarded to the analytics plugin when enabled.
      Returns:
      All attributes
    • isCacheDisabled

      boolean isCacheDisabled()
    • getMethod

      Request.Method getMethod()