@Override protected ClientInvocation apply(ClientInvocation invocation, Object object) { invocation.getHeaders().header(paramName, object); return invocation; }
@Override public Invocation.Builder header(String name, Object value) { getHeaders().header(name, value); return this; }
public void setEntity(Entity<?> entity) { if (entity == null) { this.entity = null; this.entityAnnotations = null; this.entityClass = null; this.entityGenericType = null; } else { Object ent = entity.getEntity(); setEntityObject(ent); this.entityAnnotations = entity.getAnnotations(); Variant v = entity.getVariant(); headers.setMediaType(v.getMediaType()); headers.setLanguage(v.getLanguage()); headers.header("Content-Encoding", null); headers.header("Content-Encoding", v.getEncoding()); } }
@Override public Invocation.Builder header(String name, Object value) { getHeaders().header(name, value); return this; }
@Override public Invocation.Builder header(String name, Object value) { getHeaders().header(name, value); return this; }
public void setEntity(Entity<?> entity) { if (entity == null) { this.entity = null; this.entityAnnotations = null; this.entityClass = null; this.entityGenericType = null; } else { Object ent = entity.getEntity(); setEntityObject(ent); this.entityAnnotations = entity.getAnnotations(); Variant v = entity.getVariant(); headers.setMediaType(v.getMediaType()); headers.setLanguage(v.getLanguage()); headers.header("Content-Encoding", null); headers.header("Content-Encoding", v.getEncoding()); } }
public void setEntity(Entity<?> entity) { if (entity == null) { this.entity = null; this.entityAnnotations = null; this.entityClass = null; this.entityGenericType = null; } else { Object ent = entity.getEntity(); setEntityObject(ent); this.entityAnnotations = entity.getAnnotations(); Variant v = entity.getVariant(); headers.setMediaType(v.getMediaType()); headers.setLanguage(v.getLanguage()); headers.header("Content-Encoding", null); headers.header("Content-Encoding", v.getEncoding()); } }