Class RestTable
- java.lang.Object
-
- org.elasticsearch.rest.action.cat.RestTable
-
public class RestTable extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description RestTable()
-
Method Summary
Modifier and Type Method Description static int[]
buildHelpWidths(Table table, RestRequest request)
static RestResponse
buildResponse(Table table, RestChannel channel)
static RestResponse
buildTextPlainResponse(Table table, RestChannel channel)
static RestResponse
buildXContentBuilder(Table table, RestChannel channel)
static void
pad(Table.Cell cell, int width, RestRequest request, UTF8StreamWriter out)
static void
pad(Table.Cell cell, int width, RestRequest request, UTF8StreamWriter out, boolean isLast)
-
-
-
Method Detail
-
buildResponse
public static RestResponse buildResponse(Table table, RestChannel channel) throws java.lang.Exception
- Throws:
java.lang.Exception
-
buildXContentBuilder
public static RestResponse buildXContentBuilder(Table table, RestChannel channel) throws java.lang.Exception
- Throws:
java.lang.Exception
-
buildTextPlainResponse
public static RestResponse buildTextPlainResponse(Table table, RestChannel channel) throws java.io.IOException
- Throws:
java.io.IOException
-
buildHelpWidths
public static int[] buildHelpWidths(Table table, RestRequest request)
-
pad
public static void pad(Table.Cell cell, int width, RestRequest request, UTF8StreamWriter out) throws java.io.IOException
- Throws:
java.io.IOException
-
pad
public static void pad(Table.Cell cell, int width, RestRequest request, UTF8StreamWriter out, boolean isLast) throws java.io.IOException
- Throws:
java.io.IOException
-
-