Class RestTable
- java.lang.Object
-
- org.elasticsearch.rest.action.cat.RestTable
-
public class RestTable extends Object
-
-
Constructor Summary
Constructors Constructor Description RestTable()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int[]buildHelpWidths(Table table, RestRequest request)static RestResponsebuildResponse(Table table, RestChannel channel)static RestResponsebuildTextPlainResponse(Table table, RestChannel channel)static RestResponsebuildXContentBuilder(Table table, RestChannel channel)static voidpad(Table.Cell cell, int width, RestRequest request, UTF8StreamWriter out)static voidpad(Table.Cell cell, int width, RestRequest request, UTF8StreamWriter out, boolean isLast)
-
-
-
Method Detail
-
buildResponse
public static RestResponse buildResponse(Table table, RestChannel channel) throws Exception
- Throws:
Exception
-
buildXContentBuilder
public static RestResponse buildXContentBuilder(Table table, RestChannel channel) throws Exception
- Throws:
Exception
-
buildTextPlainResponse
public static RestResponse buildTextPlainResponse(Table table, RestChannel channel) throws IOException
- Throws:
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 IOException
- Throws:
IOException
-
pad
public static void pad(Table.Cell cell, int width, RestRequest request, UTF8StreamWriter out, boolean isLast) throws IOException
- Throws:
IOException
-
-