private boolean isDownloadPDF ( Map < String , String > map ) { return StringUtils . hasText ( map . get ( RequestElements . REQ_PARAM_ENTITY_SELECTOR ) ) && map . get ( RequestElements . REQ_PARAM_ENTITY_SELECTOR ) . equalsIgnoreCase ( ContentTypes . PDF . name ( ) ) ; }
Method returns true if this request expects PDF as response