#NEWLINE# @ staticmethod #NEWLINE# def __add_body_from_string( args , body , proxy ) : #NEWLINE# #INDENT# proxy . append ( JMX . _bool_prop ( 'HTTPSampler.postBodyRaw' , True ) ) #NEWLINE# coll_prop = JMX . _collection_prop ( 'Arguments.arguments' ) #NEWLINE# header = JMX . _element_prop ( 'elementProp' , 'HTTPArgument' ) #NEWLINE# try : #NEWLINE# #INDENT# header . append ( JMX . _string_prop ( 'Argument.value' , body ) ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# logging . warning ( 'Failed to set body: %s' , traceback . format_exc ( ) ) #NEWLINE# header . append ( JMX . _string_prop ( 'Argument.value' , 'BINARY-STUB' ) ) #NEWLINE# #UNINDENT# coll_prop . append ( header ) #NEWLINE# args . append ( coll_prop ) #NEWLINE# proxy . append ( header )