@Test public void testValue() { AllowField allowField = new AllowField(Method.GET, Method.DELETE); Assert.assertEquals("GET, DELETE", allowField.value()); }
@Override public String value() { StringBuilder sb = new StringBuilder(); for (int i = 0; i < allowed.length; i++) { sb.append(allowed[i].toString()); if(i < allowed.length-1) { sb.append(", "); } } return sb.toString(); }
AllowField extends HeaderField { @Override public String value() { StringBuilder sb = new StringBuilder(); for (int i = 0; i < allowed.length; i++) { sb.append(allowed[i].toString()); if(i < allowed.length-1) { sb.append(", "); } } return sb.toString(); } }
AllowField extends HeaderField { @Override public String value() { StringBuilder sb = new StringBuilder(); for (int i = 0; i < allowed.length; i++) { sb.append(allowed[i].toString()); if(i < allowed.length-1) { sb.append(", "); } } return sb.toString(); } AllowField(Method... allowed); }
AllowField extends HeaderField { @Override public String value() { StringBuilder sb = new StringBuilder(); for (int i = 0; i < allowed.length; i++) { sb.append(allowed[i].toString()); if(i < allowed.length-1) { sb.append(", "); } } return sb.toString(); } AllowField(Method... allowed); @Override T accept(HeaderFieldVisitor<T> visitor); @Override String name(); @Override String value(); }
AllowField extends HeaderField { @Override public String value() { StringBuilder sb = new StringBuilder(); for (int i = 0; i < allowed.length; i++) { sb.append(allowed[i].toString()); if(i < allowed.length-1) { sb.append(", "); } } return sb.toString(); } AllowField(Method... allowed); @Override T accept(HeaderFieldVisitor<T> visitor); @Override String name(); @Override String value();  }