| 1 | |
package org.webslinger.template.text; |
| 2 | |
|
| 3 | |
import org.webslinger.template.TemplateEngineInfo; |
| 4 | |
|
| 5 | 51 | public final class TextTemplateInfo implements TemplateEngineInfo { |
| 6 | 1 | public static final TextTemplateInfo INSTANCE = new TextTemplateInfo(); |
| 7 | |
|
| 8 | |
public final String[] getNames() { |
| 9 | 50 | return new String[] {"text"}; |
| 10 | |
} |
| 11 | |
|
| 12 | |
public final String[] getExtensions(String name) { |
| 13 | 50 | return new String[] {"txt", "text"}; |
| 14 | |
} |
| 15 | |
|
| 16 | |
public String getImplClassName(String name) { |
| 17 | 50 | return TextTemplateEngine.class.getName(); |
| 18 | |
} |
| 19 | |
|
| 20 | |
public String getMimeType(String name) { |
| 21 | 0 | if ("text".equals(name)) return "application/x-httpd-text"; |
| 22 | 0 | return null; |
| 23 | |
} |
| 24 | |
} |