@Test public void testParseMuxExample() { ExtensionConfig cfg = ExtensionConfig.parse("mux; max-channels=4; flow-control"); Map<String, String> expectedParams = new HashMap<>(); expectedParams.put("max-channels", "4"); expectedParams.put("flow-control", null); assertConfig(cfg, "mux", expectedParams); }
public static ExtensionConfig parse(String parameterizedName) { return new ExtensionConfig(parameterizedName); }
ExtensionConfig { public static ExtensionConfig parse(String parameterizedName) { return new ExtensionConfig(parameterizedName); } }
ExtensionConfig { public static ExtensionConfig parse(String parameterizedName) { return new ExtensionConfig(parameterizedName); } ExtensionConfig(ExtensionConfig copy);  ExtensionConfig(String parameterizedName); }
ExtensionConfig { public static ExtensionConfig parse(String parameterizedName) { return new ExtensionConfig(parameterizedName); } ExtensionConfig(ExtensionConfig copy);  ExtensionConfig(String parameterizedName); static ExtensionConfig parse(String parameterizedName); static List<ExtensionConfig> parseEnum(Enumeration<String> valuesEnum); static List<ExtensionConfig> parseList(List<String> rawSecWebSocketExtensions); static String toHeaderValue(List<ExtensionConfig> configs); String getName(); final int getParameter(String key, int defValue); final String getParameter(String key, String defValue); final String getParameterizedName(); final Set<String> getParameterKeys(); final Map<String, String> getParameters(); final void init(ExtensionConfig other); final void setParameter(String key); final void setParameter(String key, int value); final void setParameter(String key, String value); @Override String toString(); }
ExtensionConfig { public static ExtensionConfig parse(String parameterizedName) { return new ExtensionConfig(parameterizedName); } ExtensionConfig(ExtensionConfig copy);  ExtensionConfig(String parameterizedName); static ExtensionConfig parse(String parameterizedName); static List<ExtensionConfig> parseEnum(Enumeration<String> valuesEnum); static List<ExtensionConfig> parseList(List<String> rawSecWebSocketExtensions); static String toHeaderValue(List<ExtensionConfig> configs); String getName(); final int getParameter(String key, int defValue); final String getParameter(String key, String defValue); final String getParameterizedName(); final Set<String> getParameterKeys(); final Map<String, String> getParameters(); final void init(ExtensionConfig other); final void setParameter(String key); final void setParameter(String key, int value); final void setParameter(String key, String value); @Override String toString();  }