while( ( strLine = br.readLine() ) != null )
{
value.append( strLine ).append( '\n' );
}
in.close();
XmlString bomb = xmlBombConfig.addNewXmlBombs();
bomb.setStringValue( value.toString() );
}
catch( Exception e )
{
SoapUI.logError( e );
}
try
{
InputStream in = SoapUI.class
.getResourceAsStream( "/com/eviware/soapui/resources/security/xmlbomb/QuadraticBlowup.xml.txt" );
BufferedReader br = new BufferedReader( new InputStreamReader( in ) );
String strLine;
StringBuffer value = new StringBuffer();
while( ( strLine = br.readLine() ) != null )
{
value.append( strLine ).append( '\n' );
}
in.close();
XmlString bomb = xmlBombConfig.addNewXmlBombs();
bomb.setStringValue( value.toString() );
}
catch( Exception e )
{
SoapUI.logError( e );
}
try
{
InputStream in = SoapUI.class
.getResourceAsStream( "/com/eviware/soapui/resources/security/xmlbomb/ExternalEntity.dtd.txt" );
BufferedReader br = new BufferedReader( new InputStreamReader( in ) );
String strLine;
StringBuffer value = new StringBuffer();
while( ( strLine = br.readLine() ) != null )
{
value.append( strLine ).append( '\n' );
}
in.close();
XmlString bomb = xmlBombConfig.addNewXmlBombs();
bomb.setStringValue( value.toString() );
}
catch( Exception e )
{
SoapUI.logError( e );
}