MCPcopy Create free account
hub / github.com/DeNA/PacketProxy / getBodyParamsOrder

Method getBodyParamsOrder

src/main/java/core/packetproxy/http/Http.java:702–717  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

700 }
701
702 public List<String> getBodyParamsOrder() {
703 String body;
704 try {
705
706 body = new String(getBody(), "UTF-8");
707 } catch (UnsupportedEncodingException e) {
708
709 errWithStackTrace(e);
710 return null;
711 }
712 List<String> pairs = Arrays.asList(body.split("&"));
713 Set<String> usedName = new HashSet<>();
714 List<String> names = pairs.stream().map(p -> p.split("=")[0]).collect(Collectors.toList());
715
716 return names.stream().filter(n -> !usedName.contains(n)).peek(usedName::add).collect(Collectors.toList());
717 }
718
719 public MultiValueMap<String, Parameter> getBodyParams() {
720 String body;

Callers

nothing calls this directly

Calls 7

getBodyMethod · 0.95
errWithStackTraceMethod · 0.80
toListMethod · 0.80
mapMethod · 0.45
streamMethod · 0.45
filterMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected