Package com.yahoo.container.jdisc
Class HttpRequestBuilder
- java.lang.Object
-
- com.yahoo.container.jdisc.HttpRequestBuilder
-
public class HttpRequestBuilder extends Object
Builder for creating aHttpRequest
to be used in test context- Author:
- bjorncs
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpRequest
build()
static HttpRequestBuilder
create(HttpRequest.Method method, String path)
HttpRequestBuilder
withHeader(String name, String value)
HttpRequestBuilder
withHostname(String hostname)
HttpRequestBuilder
withQueryParameter(String name, String value)
HttpRequestBuilder
withRequestContent(InputStream content)
HttpRequestBuilder
withScheme(String scheme)
-
-
-
Method Detail
-
create
public static HttpRequestBuilder create(HttpRequest.Method method, String path)
-
withQueryParameter
public HttpRequestBuilder withQueryParameter(String name, String value)
-
withHeader
public HttpRequestBuilder withHeader(String name, String value)
-
withRequestContent
public HttpRequestBuilder withRequestContent(InputStream content)
-
withScheme
public HttpRequestBuilder withScheme(String scheme)
-
withHostname
public HttpRequestBuilder withHostname(String hostname)
-
build
public HttpRequest build()
-
-