Class Request

java.lang.Object
com.palantir.dialogue.Request

@ThreadSafe public final class Request extends Object
Defines the parameters of a single call to an Endpoint.
  • Method Details

    • headerParams

      public com.google.common.collect.ListMultimap<String,String> headerParams()
      The HTTP headers for this request, encoded as a map of header-name: header-value. Headers names are compared in a case-insensitive fashion as per https://tools.ietf.org/html/rfc7540#section-8.1.2.
    • queryParams

      public com.google.common.collect.ListMultimap<String,String> queryParams()
      The URL query parameters headers for this request. These should *not* be URL-encoded and Channels are responsible for performing the appropriate encoding if necessary.
    • pathParams

      @Deprecated public Map<String, @Nullable String> pathParams()
      Deprecated.
      in favor of pathParameters() which returns a multimap
      The HTTP path parameters for this request, encoded as a map of param-name: param-value. There is a one-to-one correspondence between variable path segments of a PathTemplate and the request's pathParams.
    • pathParameters

      public com.google.common.collect.ListMultimap<String,String> pathParameters()
      The HTTP path parameters for this request, encoded as a multimap of param-name: param-value. There is a one-to-many correspondence between variable path segments of a PathTemplate and the request's pathParams.
    • body

      public Optional<RequestBody> body()
      The HTTP request body for this request or empty if this request does not contain a body.
    • attachments

      public RequestAttachments attachments()
      The mutable request attachments for this request. Attachments will be propagated when this request is mutated through the builder
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • builder

      public static Request.Builder builder()