I am looking among the standard libraries (like apache commons, jax, jboss, javax) for an interface or enum that lists the values of all the standard mime-type (aka content-type).
This interface should not be encumbered with too deep with other classes that would make it difficult to include the whole bunch as gwt source code.
for example
interface ContentType{
String JSON = "Application/JSON";
blah ... blah ...
}
or,
enum ContentType{
JSON("Application/JSON"),
blah ... blah ...
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…