@Test public void testMarshalNoBody() throws Envelope.ParserException { Envelope envelope = new Envelope("Test", ""); envelope.addHeader("header1", "1"); checkMarshaling(envelope, "Test 14 0\r\n" + "header1: 1\r\n\r\n"); }
public void addHeader(String header, String value) { headersMap.put(header, value); }
Envelope { public void addHeader(String header, String value) { headersMap.put(header, value); } }
Envelope { public void addHeader(String header, String value) { headersMap.put(header, value); } protected  Envelope(String tag, String payload); protected  Envelope(String tag, Map<String, String> headersMap, String payload); }
Envelope { public void addHeader(String header, String value) { headersMap.put(header, value); } protected  Envelope(String tag, String payload); protected  Envelope(String tag, Map<String, String> headersMap, String payload); boolean equals(Object obj); String getPayload(); String getHeader(String header); void addHeader(String header, String value); String marshal(); static Envelope parse(String message); }
Envelope { public void addHeader(String header, String value) { headersMap.put(header, value); } protected  Envelope(String tag, String payload); protected  Envelope(String tag, Map<String, String> headersMap, String payload); boolean equals(Object obj); String getPayload(); String getHeader(String header); void addHeader(String header, String value); String marshal(); static Envelope parse(String message);  }