public class HttpInfo extends Object implements Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_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 ToXContent
IOException
public static HttpInfo readHttpInfo(StreamInput in) throws IOException
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
public BoundTransportAddress address()
public BoundTransportAddress getAddress()
public ByteSizeValue maxContentLength()
public ByteSizeValue getMaxContentLength()
Copyright © 2009–2017. All rights reserved.