/** * Set a new message message entity. * * @param entity entity object. * @see javax.ws.rs.ext.MessageBodyWriter */ public void setEntity(final Object entity) { messageContext.setEntity(entity); }
/** * Set a new message message entity. * * @param entity entity object. * @param type declared entity class. * @param annotations annotations attached to the entity. * @see javax.ws.rs.ext.MessageBodyWriter */ public void setEntity(Object entity, Type type, Annotation[] annotations) { setEntity(entity, new GenericType(type)); setEntityAnnotations(annotations); }
/** * Set a new message message entity. * * @param entity entity object. * @param annotations annotations attached to the entity. * @see javax.ws.rs.ext.MessageBodyWriter */ public void setEntity(Object entity, Annotation[] annotations) { setEntity(entity, ReflectionHelper.genericTypeFor(entity)); setEntityAnnotations(annotations); }
@Override public javax.ws.rs.core.Response.ResponseBuilder entity(Object entity) { context.setEntity(entity); return this; }
/** * Set a new message message entity. * * @param entity entity object. * @param type declared entity class. * @param annotations annotations attached to the entity. * @see javax.ws.rs.ext.MessageBodyWriter */ public void setEntity(Object entity, Type type, Annotation[] annotations) { setEntity(entity, new GenericType(type)); setEntityAnnotations(annotations); }
/** * Set a new message message entity. * * @param entity entity object. * @see javax.ws.rs.ext.MessageBodyWriter */ public void setEntity(final Object entity) { messageContext.setEntity(entity); }
/** * Set a new message message entity. * * @param entity entity object. * @param annotations annotations attached to the entity. * @see javax.ws.rs.ext.MessageBodyWriter */ public void setEntity(Object entity, Annotation[] annotations) { setEntity(entity, ReflectionHelper.genericTypeFor(entity)); setEntityAnnotations(annotations); }
/** * Set a new message message entity. * * @param entity entity object. * @param annotations annotations attached to the entity. * @see javax.ws.rs.ext.MessageBodyWriter */ public void setEntity(final Object entity, final Annotation[] annotations) { messageContext.setEntity(entity, annotations); }
@Override public javax.ws.rs.core.Response.ResponseBuilder entity(Object entity) { context.setEntity(entity); return this; }
@Override public ResponseBuilder entity(Object entity, Annotation[] annotations) { context.setEntity(entity, annotations); return this; }
/** * Set a new message message entity. * * @param entity entity object. * @param type declared entity class. * @param annotations annotations attached to the entity. * @see javax.ws.rs.ext.MessageBodyWriter */ public void setEntity(final Object entity, final Type type, final Annotation[] annotations) { messageContext.setEntity(entity, type, annotations); }
/** * Set a new message message entity. * * @param entity entity object. * @param type declared entity class. * @param annotations annotations attached to the entity. * @see javax.ws.rs.ext.MessageBodyWriter */ public void setEntity(final Object entity, final Type type, final Annotation[] annotations) { messageContext.setEntity(entity, type, annotations); }
@Override public ResponseBuilder entity(Object entity, Annotation[] annotations) { context.setEntity(entity, annotations); return this; }
/** * Set a new message message entity. * * @param entity entity object. * @param annotations annotations attached to the entity. * @see javax.ws.rs.ext.MessageBodyWriter */ public void setEntity(final Object entity, final Annotation[] annotations) { messageContext.setEntity(entity, annotations); }
@Override public void setEntity(final Object entity, final Annotation[] annotations, final MediaType mediaType) { messageContext.setEntity(entity, annotations, mediaType); }
@Override public void setEntity(final Object entity, final Annotation[] annotations, final MediaType mediaType) { messageContext.setEntity(entity, annotations, mediaType); }
/** * Set a new message message entity. * * @param entity entity object. * @param annotations annotations attached to the entity. * @param mediaType entity media type. * @see javax.ws.rs.ext.MessageBodyWriter */ public void setEntity(Object entity, Annotation[] annotations, MediaType mediaType) { setEntity(entity, annotations); setMediaType(mediaType); }
/** * Set a new message message entity. * * @param entity entity object. * @param annotations annotations attached to the entity. * @param mediaType entity media type. * @see javax.ws.rs.ext.MessageBodyWriter */ public void setEntity(Object entity, Annotation[] annotations, MediaType mediaType) { setEntity(entity, annotations); setMediaType(mediaType); }
/** * Set a new message message entity. * * @param entity entity object. * @see javax.ws.rs.ext.MessageBodyWriter */ public void setEntity(Object entity) { setEntity(entity, ReflectionHelper.genericTypeFor(entity)); }
/** * Set a new message message entity. * * @param entity entity object. * @see javax.ws.rs.ext.MessageBodyWriter */ public void setEntity(Object entity) { setEntity(entity, ReflectionHelper.genericTypeFor(entity)); }