< prev index next >

src/java.xml/share/classes/com/sun/org/apache/xerces/internal/xinclude/XIncludeHandler.java

Print this page


   1 /*
   2  * Copyright (c) 2006, 2017, Oracle and/or its affiliates. All rights reserved.
   3  * @LastModified: Nov 2017
   4  */
   5 /*
   6  * Licensed to the Apache Software Foundation (ASF) under one or more
   7  * contributor license agreements.  See the NOTICE file distributed with
   8  * this work for additional information regarding copyright ownership.
   9  * The ASF licenses this file to You under the Apache License, Version 2.0
  10  * (the "License"); you may not use this file except in compliance with
  11  * the License.  You may obtain a copy of the License at
  12  *
  13  *      http://www.apache.org/licenses/LICENSE-2.0
  14  *
  15  * Unless required by applicable law or agreed to in writing, software
  16  * distributed under the License is distributed on an "AS IS" BASIS,
  17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  18  * See the License for the specific language governing permissions and
  19  * limitations under the License.
  20  */
  21 
  22 package com.sun.org.apache.xerces.internal.xinclude;
  23 


 111  * </ul>
 112  * Optional property:
 113  * <ul>
 114  *  <li>http://apache.org/xml/properties/input-buffer-size</li>
 115  * </ul>
 116  *
 117  * Furthermore, the <code>NamespaceContext</code> used in the pipeline is required
 118  * to be an instance of <code>XIncludeNamespaceSupport</code>.
 119  * </p>
 120  * <p>
 121  * Currently, this implementation has only partial support for the XInclude specification.
 122  * Specifically, it is missing support for XPointer document fragments.  Thus, only whole
 123  * documents can be included using this component in the pipeline.
 124  * </p>
 125  *
 126  * @author Peter McCracken, IBM
 127  * @author Michael Glavassevich, IBM
 128  *
 129  *
 130  * @see XIncludeNamespaceSupport

 131  */
 132 public class XIncludeHandler
 133     implements XMLComponent, XMLDocumentFilter, XMLDTDFilter {
 134 
 135     public final static String HTTP_ACCEPT = "Accept";
 136     public final static String HTTP_ACCEPT_LANGUAGE = "Accept-Language";
 137     public final static String XPOINTER = "xpointer";
 138 
 139     public final static String XINCLUDE_NS_URI =
 140         "http://www.w3.org/2001/XInclude".intern();
 141     public final static String XINCLUDE_INCLUDE = "include".intern();
 142     public final static String XINCLUDE_FALLBACK = "fallback".intern();
 143 
 144     public final static String XINCLUDE_PARSE_XML = "xml".intern();
 145     public final static String XINCLUDE_PARSE_TEXT = "text".intern();
 146 
 147     public final static String XINCLUDE_ATTR_HREF = "href".intern();
 148     public final static String XINCLUDE_ATTR_PARSE = "parse".intern();
 149     public final static String XINCLUDE_ATTR_ENCODING = "encoding".intern();
 150     public final static String XINCLUDE_ATTR_ACCEPT = "accept".intern();


   1 /*
   2  * Copyright (c) 2006, 2017, Oracle and/or its affiliates. All rights reserved.

   3  */
   4 /*
   5  * Licensed to the Apache Software Foundation (ASF) under one or more
   6  * contributor license agreements.  See the NOTICE file distributed with
   7  * this work for additional information regarding copyright ownership.
   8  * The ASF licenses this file to You under the Apache License, Version 2.0
   9  * (the "License"); you may not use this file except in compliance with
  10  * the License.  You may obtain a copy of the License at
  11  *
  12  *      http://www.apache.org/licenses/LICENSE-2.0
  13  *
  14  * Unless required by applicable law or agreed to in writing, software
  15  * distributed under the License is distributed on an "AS IS" BASIS,
  16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  17  * See the License for the specific language governing permissions and
  18  * limitations under the License.
  19  */
  20 
  21 package com.sun.org.apache.xerces.internal.xinclude;
  22 


 110  * </ul>
 111  * Optional property:
 112  * <ul>
 113  *  <li>http://apache.org/xml/properties/input-buffer-size</li>
 114  * </ul>
 115  *
 116  * Furthermore, the <code>NamespaceContext</code> used in the pipeline is required
 117  * to be an instance of <code>XIncludeNamespaceSupport</code>.
 118  * </p>
 119  * <p>
 120  * Currently, this implementation has only partial support for the XInclude specification.
 121  * Specifically, it is missing support for XPointer document fragments.  Thus, only whole
 122  * documents can be included using this component in the pipeline.
 123  * </p>
 124  *
 125  * @author Peter McCracken, IBM
 126  * @author Michael Glavassevich, IBM
 127  *
 128  *
 129  * @see XIncludeNamespaceSupport
 130  * @LastModified: Nov 2017
 131  */
 132 public class XIncludeHandler
 133     implements XMLComponent, XMLDocumentFilter, XMLDTDFilter {
 134 
 135     public final static String HTTP_ACCEPT = "Accept";
 136     public final static String HTTP_ACCEPT_LANGUAGE = "Accept-Language";
 137     public final static String XPOINTER = "xpointer";
 138 
 139     public final static String XINCLUDE_NS_URI =
 140         "http://www.w3.org/2001/XInclude".intern();
 141     public final static String XINCLUDE_INCLUDE = "include".intern();
 142     public final static String XINCLUDE_FALLBACK = "fallback".intern();
 143 
 144     public final static String XINCLUDE_PARSE_XML = "xml".intern();
 145     public final static String XINCLUDE_PARSE_TEXT = "text".intern();
 146 
 147     public final static String XINCLUDE_ATTR_HREF = "href".intern();
 148     public final static String XINCLUDE_ATTR_PARSE = "parse".intern();
 149     public final static String XINCLUDE_ATTR_ENCODING = "encoding".intern();
 150     public final static String XINCLUDE_ATTR_ACCEPT = "accept".intern();


< prev index next >