extracts the content-type of this result value . concode_field_sep Session session concode_elem_sep ResponseHeader header concode_elem_sep HttpEntity body concode_elem_sep List<Cookie> cookies concode_elem_sep Flash flash concode_field_sep Map<String,String> headers concode_elem_sep Optional<String> charset concode_elem_sep Cookie cookie concode_elem_sep Session session concode_elem_sep Result withHeaders concode_elem_sep HttpEntity body concode_elem_sep Result withHeader concode_elem_sep Result withCookies concode_elem_sep play.api.mvc.Result asScala concode_elem_sep Cookies cookies concode_elem_sep ResponseHeader getHeader concode_elem_sep Result as concode_elem_sep Optional<String> reasonPhrase concode_elem_sep play.api.mvc.ResponseHeader header concode_elem_sep Optional<String> header concode_elem_sep Optional<String> redirectLocation concode_elem_sep int status concode_elem_sep Flash flash
Optional < String > function ( ) { return body . contentType ( ) . map ( h -> { if ( h . contains ( "srini_string" ) ) { return h . substring ( 0 , h . indexOf ( "srini_string" ) ) . trim ( ) ; } else { return h . trim ( ) ; } } ) ; }