public RejectDoctypeSaxFilter(SAXParser saxParser) throws SOAPException { XMLReader xmlReader; try { xmlReader = saxParser.getXMLReader(); } catch (Exception e) { log.severe("SAAJ0602.util.getXMLReader.exception"); throw new SOAPExceptionImpl( "Couldn't get an XMLReader while constructing a RejectDoctypeSaxFilter", e); } // Set ourselves up to be the SAX LexicalHandler try { xmlReader.setProperty(LEXICAL_HANDLER_PROP, this); } catch (Exception e) { log.severe("SAAJ0603.util.setProperty.exception"); throw new SOAPExceptionImpl( "Couldn't set the lexical handler property while constructing a RejectDoctypeSaxFilter", e); } // Set the parent XMLReader of this SAX filter setParent(xmlReader); }
rejectFilter = new RejectDoctypeSaxFilter(saxParser); } catch (Exception ex) { log.severe("SAAJ0510.soap.cannot.create.envelope");