示例#1
0
文件: A.java 项目: kmenzli/juzu
 @Resource
 public Response.Content.Resource resource() throws AuthenticationException {
   return Response.ok("application/octet-stream", new ByteArrayInputStream("hello".getBytes()));
 }
示例#2
0
文件: A.java 项目: kmenzli/juzu
 @View
 public Response.Content index() throws IOException {
   return Response.content(A_.resourceURL().toString());
 }
示例#3
0
文件: A.java 项目: edpzjh/juzu
 @View
 public Response.Mime index() throws IOException {
   return Response.ok(A_.actionURL().toString());
 }