/** * Tell RestExpress to support TXT format specifiers in routes, outgoing only at present. * * @param isDefault true to make TXT the default format. * @return the RestExpress instance. */ public RestExpress supportTxt(boolean isDefault) { if (!getResponseProcessors().containsKey(Format.TXT)) { getResponseProcessors().put(Format.TXT, ResponseProcessor.defaultTxtProcessor()); } if (isDefault) { setDefaultFormat(Format.TXT); } return this; }