/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* Users of this class see a SAX2 XMLReader (via XMLFilterImpl). This
* class creates a parent XMLReader via JAXP and installs itself as a SAX2
* extension LexicalHandler which rejects document type declarations
* because they are not legal in SOAP. If the user of this class sets a
* LexicalHandler, then it forwards events to that handler.
*
*
* @author Edwin Goei
*/
"com.sun.xml.internal.messaging.saaj.util.LocalStrings");
/** Standard SAX 2.0 ext property */
static final String WSU_NS = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd".intern();
/** LexicalHandler to forward events to, if any */
try {
} catch (Exception e) {
throw new SOAPExceptionImpl(
"Couldn't get an XMLReader while constructing a RejectDoctypeSaxFilter",
e);
}
// Set ourselves up to be the SAX LexicalHandler
try {
} catch (Exception e) {
throw new SOAPExceptionImpl(
"Couldn't set the lexical handler property while constructing a RejectDoctypeSaxFilter",
e);
}
// Set the parent XMLReader of this SAX filter
}
/*
* Override setProperty() to capture any LexicalHandler that is set for
* forwarding of events.
*/
} else {
}
}
//
// Beginning of SAX LexicalHandler callbacks...
//
throws SAXException {
throw new SAXException("Document Type Declaration is not allowed");
}
}
if (lexicalHandler != null) {
}
}
if (lexicalHandler != null) {
}
}
if (lexicalHandler != null) {
}
}
if (lexicalHandler != null) {
}
}
if (lexicalHandler != null) {
}
}
//
// End of SAX LexicalHandler callbacks
//
boolean eos = false;
eos = true;
}
for(int i=0; i< length;i++){
}else{
attrImpl.addAttribute(atts.getURI(i), atts.getLocalName(i), atts.getQName(i), atts.getType(i), atts.getValue(i));
}
}else{
}
}
}else{
}
}
}