private String [ ] responseHeaders ( final String name ) { final Map < String , List < String > > headers = responseHeaders ( ) ; if ( headers == null || headers . isEmpty ( ) ) return EMPTY_STRINGS ; final List < String > values = headers . get ( name ) ; if ( values != null && ! values . isEmpty ( ) ) return values . toArray ( new String [ values . size ( ) ] ) ; else return EMPTY_STRINGS ; }
Get all values of the given header from the response