public Object getEntity() { return InjectionUtils.getEntity(r.getEntity()); }
public Object getEntity() { return InjectionUtils.getEntity(getActualEntity()); }
private void doSetEntity(Object entity) { Object actualEntity = InjectionUtils.getEntity(entity); m.setContent(List.class, actualEntity == null ? new MessageContentsList() : new MessageContentsList(actualEntity)); Type type = null; if (entity != null) { if (GenericEntity.class.isAssignableFrom(entity.getClass())) { type = ((GenericEntity<?>)entity).getType(); } else { type = entity.getClass(); } m.put(Type.class, type); m.remove("org.apache.cxf.empty.request"); } }
private void doSetEntity(Object entity) { Object actualEntity = InjectionUtils.getEntity(entity); m.setContent(List.class, actualEntity == null ? new MessageContentsList() : new MessageContentsList(actualEntity)); Type type = null; if (entity != null) { if (GenericEntity.class.isAssignableFrom(entity.getClass())) { type = ((GenericEntity<?>)entity).getType(); } else { type = entity.getClass(); } m.put(Type.class, type); m.remove("org.apache.cxf.empty.request"); } }
private void doSetEntity(Object entity) { Object actualEntity = InjectionUtils.getEntity(entity); m.setContent(List.class, actualEntity == null ? new MessageContentsList() : new MessageContentsList(actualEntity)); Type type = null; if (entity != null) { if (GenericEntity.class.isAssignableFrom(entity.getClass())) { type = ((GenericEntity<?>)entity).getType(); } else { type = entity.getClass(); } m.put(Type.class, type); m.remove("org.apache.cxf.empty.request"); } }
entity = InjectionUtils.getEntity(response.getEntity()); setResponseStatus(message, getActualStatus(response.getStatus(), entity)); if (entity == null) {
entity = InjectionUtils.getEntity(response.getActualEntity()); setResponseStatus(message, getActualStatus(response.getStatus(), entity)); if (entity == null) {