/**
* <p>getResponseEntityClass.</p>
*
* @param mimeType a {@link org.aml.apimodel.MimeType} object.
* @return a {@link com.sun.codemodel.JType} object.
* @throws java.io.IOException if any.
*/
public JType getResponseEntityClass(final MimeType mimeType) throws IOException
{
final JClass schemaClass = getSchemaClass(mimeType);
if (schemaClass != null)
{
return schemaClass;
}
else if (startsWith(mimeType.getType(), "text/"))
{
return getGeneratorType(String.class);
}
else
{
// fallback to a streaming output
return getGeneratorType(StreamingOutput.class);
}
}
Types.java 文件源码
java
阅读 28
收藏 0
点赞 0
评论 0
项目:aml
作者:
评论列表
文章目录