public class CallTreeUtil extends Object
Constructor and Description |
---|
CallTreeUtil() |
Modifier and Type | Method and Description |
---|---|
static CallNode |
createNode(MimeHeaders mimeHeaders,
Iterable<jp.go.nict.langrid.commons.rpc.RpcHeader> rpcHeaders) |
static Collection<CallNode> |
decodeTree(String value) |
static Collection<CallNode> |
decodeTreeFromHttpBody(String body) |
static String |
encodeTree(Collection<CallNode> value) |
static String |
encodeTree(Collection<CallNode> value,
int indentFactor) |
static List<CallNode> |
extractNodes(Iterable<jp.go.nict.langrid.commons.rpc.RpcHeader> headers) |
public static String encodeTree(Collection<CallNode> value)
public static String encodeTree(Collection<CallNode> value, int indentFactor)
public static Collection<CallNode> decodeTree(String value) throws ParseException
ParseException
public static Collection<CallNode> decodeTreeFromHttpBody(String body) throws ParseException
ParseException
public static CallNode createNode(MimeHeaders mimeHeaders, Iterable<jp.go.nict.langrid.commons.rpc.RpcHeader> rpcHeaders) throws ParseException
ParseException
public static List<CallNode> extractNodes(Iterable<jp.go.nict.langrid.commons.rpc.RpcHeader> headers) throws ParseException
ParseException