public void setMessage ( String data ) throws HttpMalformedHeaderException { clear ( ) ; try { if ( ! this . parse ( data ) ) { mMalformedHeader = true ; } } catch ( Exception e ) { mMalformedHeader = true ; } if ( mMalformedHeader ) { throw new HttpMalformedHeaderException ( ) ; } }
Set and parse this HTTP header with the string given .