Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @POST
- @Path("/stub")
- public static MyBean doSomething{ return new MyBean(); }
- @Override
- public void writeTo(
- SendBulkSMSResponse sendBulkSMSResponse,
- Class<?> type,
- Type genericType,
- Annotation[] annotations,
- MediaType mediaType,
- MultivaluedMap<String, Object> httpHeaders,
- OutputStream entityStream) throws IOException, WebApplicationException {
- JsonGenerator jsonGenerator =
- JsonGeneratorFactorySingleton.getFactory().createGenerator(entityStream);
- // write some stuff
- // that's all
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement