@Test public void toStringShouldProduceHeaderWithNameOnlyParameter() throws Exception { String in = "x-kaazing-foo; param1"; ExtensionHeaderBuilder ext1 = new ExtensionHeaderBuilder(in); assertEquals(in, ext1.toString()); }
@Override public String toString() { StringBuilder b = new StringBuilder(extensionToken); for (ExtensionParameter wsExtensionParameter: parametersByName.values()) { b.append(';').append(' ').append(wsExtensionParameter); } return b.toString(); }
ExtensionHeaderBuilder implements ExtensionHeader { @Override public String toString() { StringBuilder b = new StringBuilder(extensionToken); for (ExtensionParameter wsExtensionParameter: parametersByName.values()) { b.append(';').append(' ').append(wsExtensionParameter); } return b.toString(); } }
ExtensionHeaderBuilder implements ExtensionHeader { @Override public String toString() { StringBuilder b = new StringBuilder(extensionToken); for (ExtensionParameter wsExtensionParameter: parametersByName.values()) { b.append(';').append(' ').append(wsExtensionParameter); } return b.toString(); } ExtensionHeaderBuilder(String extension);  ExtensionHeaderBuilder(ExtensionHeader extension); }
ExtensionHeaderBuilder implements ExtensionHeader { @Override public String toString() { StringBuilder b = new StringBuilder(extensionToken); for (ExtensionParameter wsExtensionParameter: parametersByName.values()) { b.append(';').append(' ').append(wsExtensionParameter); } return b.toString(); } ExtensionHeaderBuilder(String extension);  ExtensionHeaderBuilder(ExtensionHeader extension); @Override String getExtensionToken(); @Override List<ExtensionParameter> getParameters(); @Override boolean hasParameters(); ExtensionHeader done(); ExtensionHeaderBuilder setExtensionToken(String token); ExtensionHeaderBuilder append(ExtensionParameter parameter); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); void appendParameter(String parameterContents); void appendParameter(String parameterName, String parameterValue); }
ExtensionHeaderBuilder implements ExtensionHeader { @Override public String toString() { StringBuilder b = new StringBuilder(extensionToken); for (ExtensionParameter wsExtensionParameter: parametersByName.values()) { b.append(';').append(' ').append(wsExtensionParameter); } return b.toString(); } ExtensionHeaderBuilder(String extension);  ExtensionHeaderBuilder(ExtensionHeader extension); @Override String getExtensionToken(); @Override List<ExtensionParameter> getParameters(); @Override boolean hasParameters(); ExtensionHeader done(); ExtensionHeaderBuilder setExtensionToken(String token); ExtensionHeaderBuilder append(ExtensionParameter parameter); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); void appendParameter(String parameterContents); void appendParameter(String parameterName, String parameterValue);  }