MCPcopy Create free account
hub / github.com/annmuor/jnode / convert

Method convert

jnode-httpd-module/src/org/jnode/httpd/util/JSONUtil.java:45–54  ·  view source on GitHub ↗
(Link object)

Source from the content-addressed store, hash-verified

43 map.put(Link.class, new JSONConverter<Link>() {
44
45 @Override
46 public String convert(Link object) {
47 return String.format("{%s, %s, %s, %s, %s, %s}",
48 pair("id", object.getId()),
49 pair("name", object.getLinkName()),
50 pair("addr", object.getLinkAddress()),
51 pair("address", object.getProtocolAddress()),
52 pair("password", object.getProtocolPassword()),
53 pair("pktpassword", object.getPaketPassword()));
54 }
55 });
56 map.put(LinkOption.class, new JSONConverter<LinkOption>() {
57

Callers

nothing calls this directly

Calls 15

pairMethod · 0.95
formatMethod · 0.80
getLinkNameMethod · 0.80
getLinkAddressMethod · 0.80
getProtocolAddressMethod · 0.80
getProtocolPasswordMethod · 0.80
getPaketPasswordMethod · 0.80
getIdMethod · 0.65
getSubjectMethod · 0.65
getOptionMethod · 0.45
getValueMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected