@Override public void writeTo(AccessTokenGrant t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) throws IOException, WebApplicationException { String form = FormUtils.formToString(new Form(t.toMap())); entityStream.write(form.getBytes()); }
@Override public void writeTo(AccessTokenGrant t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) throws IOException, WebApplicationException { String form = FormUtils.formToString(new Form(t.toMap())); entityStream.write(form.getBytes()); }
Form form = new Form(grant.toMap()); if (extraParams != null) { for (Map.Entry<String, String> entry : extraParams.entrySet()) {
Form form = new Form(grant.toMap()); if (extraParams != null) { for (Map.Entry<String, String> entry : extraParams.entrySet()) {