@Immutable public final class MockRawHttpRequest extends Object implements RawHttpRequest
BaseHttpMessage.HeadersBuilder| Constructor and Description |
|---|
MockRawHttpRequest(String protocolVersion,
Origin origin,
String remote,
String method,
String scheme,
String host,
int port,
String path,
String query,
Map<String,List<String>> headers,
String contentType,
Charset charset,
String body) |
| Modifier and Type | Method and Description |
|---|---|
static RawHttpRequest |
create() |
default <K,V> Map<K,V> |
firstNonNullNorEmpty(Map<K,V> first,
Map<K,V> second) |
Charset |
getCharset() |
String |
getContentType() |
Map<String,List<String>> |
getHeaders() |
String |
getHost() |
String |
getMethod() |
Origin |
getOrigin() |
String |
getPath() |
int |
getPort() |
String |
getProtocolVersion() |
String |
getQuery() |
String |
getRemote() |
String |
getScheme() |
HttpRequest |
withBody() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRequestUripublic MockRawHttpRequest(@Nullable String protocolVersion, @Nullable Origin origin, @Nullable String remote, @Nullable String method, @Nullable String scheme, @Nullable String host, int port, @Nullable String path, @Nullable String query, @Nullable Map<String,List<String>> headers, @Nullable String contentType, @Nullable Charset charset, @Nullable String body)
public String getProtocolVersion()
getProtocolVersion in interface BaseHttpMessagepublic String getRemote()
getRemote in interface BaseHttpRequestpublic String getMethod()
getMethod in interface BaseHttpRequestpublic String getScheme()
getScheme in interface BaseHttpRequestpublic String getHost()
getHost in interface BaseHttpRequestpublic int getPort()
getPort in interface BaseHttpRequestpublic String getPath()
getPath in interface BaseHttpRequestpublic String getQuery()
getQuery in interface BaseHttpRequestpublic Map<String,List<String>> getHeaders()
getHeaders in interface BaseHttpMessagepublic String getContentType()
getContentType in interface BaseHttpMessagepublic Charset getCharset()
getCharset in interface BaseHttpMessagepublic Origin getOrigin()
getOrigin in interface BaseHttpMessagepublic HttpRequest withBody() throws IOException
withBody in interface RawHttpRequestIOExceptionpublic static RawHttpRequest create()
Copyright © 2015–2016 Zalando SE. All rights reserved.