@Override
    public void modifyTestElement(TestElement sampler) {
        super.configureTestElement(sampler);

        if (sampler instanceof HTTPRawSampler) {
            HTTPRawSampler rawSampler = (HTTPRawSampler) sampler;
            rawSampler.setHostName(hostName.getText());
            rawSampler.setPort(port.getText());
            rawSampler.setUseKeepAlive(keepAlive.isSelected());
            rawSampler.setTimeout(timeout.getText());
            rawSampler.setRequestData(transformCRLF(requestData.getText()));
            rawSampler.setFileToSend(fileName.getText());
            rawSampler.setParseResult(parseResult.isSelected());
        }
    }
@ Override public void modifyTestElement ( TestElement sampler ) { super . configureTestElement ( sampler ) ; if ( sampler instanceof HTTPRawSampler ) { HTTPRawSampler rawSampler = ( HTTPRawSampler ) sampler ; rawSampler . setHostName ( hostName . getText ( ) ) ; rawSampler . setPort ( port . getText ( ) ) ; rawSampler . setUseKeepAlive ( keepAlive . isSelected ( ) ) ; rawSampler . setTimeout ( timeout . getText ( ) ) ; rawSampler . setRequestData ( transformCRLF ( requestData . getText ( ) ) ) ; rawSampler . setFileToSend ( fileName . getText ( ) ) ; rawSampler . setParseResult ( parseResult . isSelected ( ) ) ; } }
Modifies a given TestElement to mirror the data in the gui components.

@see org.apache.jmeter.gui.JMeterGUIComponent#modifyTestElement(TestElement)