src/share/jaxws_classes/com/sun/xml/internal/ws/util/pipe/AbstractSchemaValidationTube.java

changeset 397
b99d7e355d4b
parent 368
0989ad8c0860
child 408
b0610cd08440
equal deleted inserted replaced
393:6cdc6ed98780 397:b99d7e355d4b
1 /* 1 /*
2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this 7 * published by the Free Software Foundation. Oracle designates this
70 import java.net.URL; 70 import java.net.URL;
71 import java.util.*; 71 import java.util.*;
72 import java.util.logging.Level; 72 import java.util.logging.Level;
73 import java.util.logging.Logger; 73 import java.util.logging.Logger;
74 74
75 import static com.sun.xml.internal.ws.util.xml.XmlUtil.allowFileAccess;
76
75 /** 77 /**
76 * {@link Tube} that does the schema validation. 78 * {@link Tube} that does the schema validation.
77 * 79 *
78 * @author Jitendra Kotamraju 80 * @author Jitendra Kotamraju
79 */ 81 */
88 90
89 public AbstractSchemaValidationTube(WSBinding binding, Tube next) { 91 public AbstractSchemaValidationTube(WSBinding binding, Tube next) {
90 super(next); 92 super(next);
91 this.binding = binding; 93 this.binding = binding;
92 feature = binding.getFeature(SchemaValidationFeature.class); 94 feature = binding.getFeature(SchemaValidationFeature.class);
93 sf = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI); 95 sf = allowFileAccess(SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI), false);
94 } 96 }
95 97
96 protected AbstractSchemaValidationTube(AbstractSchemaValidationTube that, TubeCloner cloner) { 98 protected AbstractSchemaValidationTube(AbstractSchemaValidationTube that, TubeCloner cloner) {
97 super(that, cloner); 99 super(that, cloner);
98 this.binding = that.binding; 100 this.binding = that.binding;

mercurial