Пример #1
0
 @Resource
 public Response.Content.Resource resource() throws AuthenticationException {
   return Response.ok("application/octet-stream", new ByteArrayInputStream("hello".getBytes()));
 }
Пример #2
0
 @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());
 }