Package io.spine.web.given
Class KnownRequest.Builder
- java.lang.Object
-
- io.spine.web.given.KnownRequest.Builder
-
- Enclosing class:
- KnownRequest
public static class KnownRequest.Builder extends java.lang.Object
A builder for producingKnownRequest
instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
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.
-
withUri
public KnownRequest.Builder withUri(java.lang.String uri)
Sets the request URI.
-
build
public KnownRequest build()
Creates a request out of this builder.
-
-