public static class KnownRequest.Builder
extends java.lang.Object
KnownRequest
instances.Modifier and Type | Method and Description |
---|---|
KnownRequest |
build()
Creates a request out of this builder.
|
KnownRequest.Builder |
withBinaryContent(byte[] content)
Sets the request content bytes.
|
KnownRequest.Builder |
withContent(java.lang.String content)
Sets the request content.
|
KnownRequest.Builder |
withHeaders(java.util.Map<java.lang.String,java.lang.String> headers)
Sets the request headers.
|
KnownRequest.Builder |
withType(com.google.common.net.MediaType type)
Sets the request media type.
|
KnownRequest.Builder |
withUri(java.lang.String uri)
Sets the request URI.
|
public KnownRequest.Builder withContent(java.lang.String content)
public KnownRequest.Builder withBinaryContent(byte[] content)
public KnownRequest.Builder withHeaders(java.util.Map<java.lang.String,java.lang.String> headers)
public KnownRequest.Builder withType(com.google.common.net.MediaType type)
public KnownRequest.Builder withUri(java.lang.String uri)
public KnownRequest build()