public class HttpInfo extends Object implements Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
HttpInfo(BoundTransportAddress address,
long maxContentLength) |
| Modifier and Type | Method and Description |
|---|---|
BoundTransportAddress |
address() |
BoundTransportAddress |
getAddress() |
ByteSizeValue |
getMaxContentLength() |
ByteSizeValue |
maxContentLength() |
void |
readFrom(StreamInput in) |
static HttpInfo |
readHttpInfo(StreamInput in) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
public HttpInfo(BoundTransportAddress address, long maxContentLength)
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionpublic static HttpInfo readHttpInfo(StreamInput in) throws IOException
IOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamableIOExceptionpublic BoundTransportAddress address()
public BoundTransportAddress getAddress()
public ByteSizeValue maxContentLength()
public ByteSizeValue getMaxContentLength()
Copyright © 2009–2016. All rights reserved.