Class KnownRequest.Builder

  • Enclosing class:
    KnownRequest

    public static class KnownRequest.Builder
    extends java.lang.Object
    A builder for producing KnownRequest instances.
    • Method Detail

      • withContent

        public KnownRequest.Builder withContent​(java.lang.String content)
        Sets the request content.
      • withBinaryContent

        public KnownRequest.Builder withBinaryContent​(byte[] content)
        Sets the request content bytes.
      • withHeaders

        public KnownRequest.Builder withHeaders​(java.util.Map<java.lang.String,​java.lang.String> headers)
        Sets the request headers.
      • withType

        public KnownRequest.Builder withType​(com.google.common.net.MediaType type)
        Sets the request media type.
      • build

        public KnownRequest build()
        Creates a request out of this builder.