Advertisement
Guest User

Untitled

a guest
Mar 4th, 2015
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. @POST
  2. @Path("/stub")
  3. public static MyBean doSomething{ return new MyBean(); }
  4.  
  5. @Override
  6. public void writeTo(
  7. SendBulkSMSResponse sendBulkSMSResponse,
  8. Class<?> type,
  9. Type genericType,
  10. Annotation[] annotations,
  11. MediaType mediaType,
  12. MultivaluedMap<String, Object> httpHeaders,
  13. OutputStream entityStream) throws IOException, WebApplicationException {
  14.  
  15. JsonGenerator jsonGenerator =
  16. JsonGeneratorFactorySingleton.getFactory().createGenerator(entityStream);
  17. // write some stuff
  18. // that's all
  19.  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement