Headers<Object> metadata = new Headers<Object>(); metadata.putAll(r.getMetadata()); builtResponse = new BuiltResponse(r.getStatus(), r.getStatusInfo().getReasonPhrase(), metadata, r.getEntity(), method.getMethodAnnotations()); jaxrsResponse.addMethodAnnotations(method.getMethodAnnotations()); builtResponse = jaxrsResponse;
ByteArrayOutputStream tmpOutputStream = new ByteArrayOutputStream(); MessageBodyWriter msgBodyWriter = ResteasyProviderFactory.getInstance().getMessageBodyWriter( object.getClass(), object.getClass(), methodInvoker.getMethodAnnotations(), MediaType.APPLICATION_JSON_TYPE); msgBodyWriter.writeTo(object, object.getClass(), object.getClass(), methodInvoker.getMethodAnnotations(), MediaType.APPLICATION_JSON_TYPE, new MultivaluedTreeMap<String, Object>(), tmpOutputStream); ObjectMapper mapper = new ObjectMapper();
BuiltResponse jaxrsResponse = (BuiltResponse)Response.ok(entity, type).build(); jaxrsResponse.setGenericType(method.getGenericReturnType()); jaxrsResponse.addMethodAnnotations(method.getMethodAnnotations()); response = jaxrsResponse;
build.addMethodAnnotations(getMethodAnnotations()); return build; rtn1.addMethodAnnotations(getMethodAnnotations()); if (rtn1.getGenericType() == null) jaxrsResponse.addMethodAnnotations(getMethodAnnotations()); return jaxrsResponse;
if (annotations == null && method != null) annotations = method.getMethodAnnotations();
public static AsyncResponseConsumer makeAsyncResponseConsumer(ResourceMethodInvoker method, AsyncStreamProvider<?> asyncStreamProvider) { if(method.isSse()) { return new AsyncStreamSseResponseConsumer(method, asyncStreamProvider); } for (Annotation annotation : method.getMethodAnnotations()) { if(annotation.annotationType() == Stream.class) { return new AsyncStreamingResponseConsumer(method, asyncStreamProvider); } } return new AsyncStreamCollectorResponseConsumer(method, asyncStreamProvider); }
Headers<Object> metadata = new Headers<Object>(); metadata.putAll(r.getMetadata()); builtResponse = new BuiltResponse(r.getStatus(), r.getStatusInfo().getReasonPhrase(), metadata, r.getEntity(), method.getMethodAnnotations()); jaxrsResponse.addMethodAnnotations(method.getMethodAnnotations()); builtResponse = jaxrsResponse;
ResourceMethodInvoker method = (ResourceMethodInvoker) request.getProperty(ResourceMethodInvoker.class.getName()); GenerateQuerySessionId annotation = FindAnnotation.findAnnotation(method.getMethodAnnotations(), GenerateQuerySessionId.class);
Headers<Object> metadata = new Headers<Object>(); metadata.putAll(r.getMetadata()); builtResponse = new BuiltResponse(r.getStatus(), r.getStatusInfo().getReasonPhrase(), metadata, r.getEntity(), method.getMethodAnnotations()); jaxrsResponse.addMethodAnnotations(method.getMethodAnnotations()); builtResponse = jaxrsResponse;
BuiltResponse jaxrsResponse = (BuiltResponse)Response.ok(entity, type).build(); jaxrsResponse.setGenericType(method.getGenericReturnType()); jaxrsResponse.addMethodAnnotations(method.getMethodAnnotations()); response = jaxrsResponse;
BuiltResponse jaxrsResponse = (BuiltResponse)Response.ok(entity, type).build(); jaxrsResponse.setGenericType(method.getGenericReturnType()); jaxrsResponse.addMethodAnnotations(method.getMethodAnnotations()); response = jaxrsResponse;
ByteArrayOutputStream tmpOutputStream = new ByteArrayOutputStream(); MessageBodyWriter msgBodyWriter = ResteasyProviderFactory.getInstance().getMessageBodyWriter( object.getClass(), object.getClass(), methodInvoker.getMethodAnnotations(), MediaType.APPLICATION_JSON_TYPE); msgBodyWriter.writeTo(object, object.getClass(), object.getClass(), methodInvoker.getMethodAnnotations(), MediaType.APPLICATION_JSON_TYPE, new MultivaluedTreeMap<String, Object>(), tmpOutputStream); ObjectMapper mapper = new ObjectMapper();
build.addMethodAnnotations(getMethodAnnotations()); return build; rtn1.addMethodAnnotations(getMethodAnnotations()); if (rtn1.getGenericType() == null) jaxrsResponse.addMethodAnnotations(getMethodAnnotations()); return jaxrsResponse;
if (annotations == null && method != null) annotations = method.getMethodAnnotations();
if (annotations == null && method != null) annotations = method.getMethodAnnotations();
build.addMethodAnnotations(getMethodAnnotations()); return build; rtn1.addMethodAnnotations(getMethodAnnotations()); if (rtn1.getGenericType() == null) jaxrsResponse.addMethodAnnotations(getMethodAnnotations()); return jaxrsResponse;