/** * @param name * the metadata item name, case-insensitive. * * @return * the value of the metadata with the given case-insensitive name within * the *user-set* metadata items -- that is, not from HTTP headers returned * by the service -- or null if no such metadata item exists. */ public Object getUserMetadata(String name) { return getMetadataCaseInsensitiveFromMap(name, getUserMetadataMap()); }
/** * @param name * the metadata item name, case-insensitive. * * @return * the value of the metadata with the given case-insensitive name within * the *service-supplied* metadata items -- that is, from HTTP headers not * user-set metadata values -- or null if no such metadata item exists. */ public Object getServiceMetadata(String name) { return getMetadataCaseInsensitiveFromMap(name, getServiceMetadataMap()); }
/** * @param name * the metadata item name, case-insensitive. * * @return * the value of the metadata with the given case-insensitive name within * the *user-set* metadata items -- that is, not from HTTP headers returned * by the service -- or null if no such metadata item exists. */ public Object getHttpMetadata(String name) { return getMetadataCaseInsensitiveFromMap(name, getHttpMetadataMap()); }
/** * @param name * the metadata item name, case-insensitive. * * @return * the value of the metadata with the given case-insensitive name within * the *user-set* metadata items -- that is, not from HTTP headers returned * by the service -- or null if no such metadata item exists. */ public Object getUserMetadata(String name) { return getMetadataCaseInsensitiveFromMap(name, getUserMetadataMap()); }
/** * @param name * the metadata item name, case-insensitive. * * @return * the value of the metadata with the given case-insensitive name within * the *service-supplied* metadata items -- that is, from HTTP headers not * user-set metadata values -- or null if no such metadata item exists. */ public Object getServiceMetadata(String name) { return getMetadataCaseInsensitiveFromMap(name, getServiceMetadataMap()); }
/** * @param name * the metadata item name, case-insensitive. * * @return * the value of the metadata with the given case-insensitive name within * the *user-set* metadata items -- that is, not from HTTP headers returned * by the service -- or null if no such metadata item exists. */ public Object getHttpMetadata(String name) { return getMetadataCaseInsensitiveFromMap(name, getHttpMetadataMap()); }
/** * @param name * the metadata item name, case-insensitive. * * @return * the value of the metadata with the given case-insensitive name, or * null if no such metadata item exists. */ public Object getMetadata(String name) { // Prefer metadata values set from HTTP response headers if one is // available, to solve problems with user-set metadata clobbering // the definitive values received from HTTP, see #213 Object httpMetadataValue = getHttpMetadata(name); if (httpMetadataValue != null) { return httpMetadataValue; } return getMetadataCaseInsensitiveFromMap(name, this.metadata); }
/** * @param name * the metadata item name, case-insensitive. * * @return * the value of the metadata with the given case-insensitive name, or * null if no such metadata item exists. */ public Object getMetadata(String name) { // Prefer metadata values set from HTTP response headers if one is // available, to solve problems with user-set metadata clobbering // the definitive values received from HTTP, see #213 Object httpMetadataValue = getHttpMetadata(name); if (httpMetadataValue != null) { return httpMetadataValue; } return getMetadataCaseInsensitiveFromMap(name, this.metadata); }