public void setResponse ( String response ) { this . response = response ; try { this . responseLength = response . getBytes ( "UTF-8" ) . length ; } catch ( UnsupportedEncodingException e ) { this . responseLength = response . length ( ) ; } }
Set the response string