jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/SchemaCache.java
author mkos
Tue, 02 Jun 2015 10:59:48 +0200
changeset 30994 6efa17f32dcb
parent 25871 b80b84e87032
child 43852 93a527059d8a
permissions -rw-r--r--
8080502: Update JAXB and JAX-WS to work with resource encapsulation Reviewed-by: alanb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
     1
/*
19645
36f707905f2b 8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents: 16791
diff changeset
     2
 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
     4
 *
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    10
 *
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    15
 * accompanied this code).
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    16
 *
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    20
 *
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    23
 * questions.
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    24
 */
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    25
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    26
package com.sun.tools.internal.xjc;
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    27
30994
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
    28
import java.io.IOException;
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
    29
import java.io.InputStream;
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
    30
import java.io.Reader;
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
    31
import java.util.ArrayList;
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
    32
import java.util.Collections;
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
    33
import java.util.List;
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    34
30994
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
    35
import javax.xml.transform.stream.StreamSource;
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    36
import javax.xml.validation.Schema;
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    37
import javax.xml.validation.SchemaFactory;
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    38
import javax.xml.validation.ValidatorHandler;
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    39
16791
fe5141eabb0e 8010393: Update JAX-WS RI to 2.2.9-b12941
alanb
parents: 12009
diff changeset
    40
import com.sun.xml.internal.bind.v2.util.XmlFactory;
fe5141eabb0e 8010393: Update JAX-WS RI to 2.2.9-b12941
alanb
parents: 12009
diff changeset
    41
import javax.xml.XMLConstants;
30994
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
    42
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
    43
import org.w3c.dom.ls.LSInput;
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
    44
import org.w3c.dom.ls.LSResourceResolver;
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    45
import org.xml.sax.SAXException;
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    46
20590
b3b34e4344ce 8025054: Update JAX-WS RI integration to 2.2.9-b130926.1035
mkos
parents: 19645
diff changeset
    47
import static com.sun.xml.internal.bind.v2.util.XmlFactory.allowExternalAccess;
19645
36f707905f2b 8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents: 16791
diff changeset
    48
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    49
/**
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    50
 * Wraps a JAXP {@link Schema} object and lazily instantiate it.
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    51
 *
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    52
 * This object is thread-safe. There should be only one instance of
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    53
 * this for the whole VM.
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    54
 *
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    55
 * @author Kohsuke Kawaguchi
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    56
 */
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    57
public final class SchemaCache {
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    58
30994
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
    59
    private final boolean createResolver;
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
    60
    private final String resourceName;
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
    61
    private final Class<?> clazz;
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
    62
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    63
    private Schema schema;
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    64
30994
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
    65
    public SchemaCache(String resourceName, Class<?> classToResolveResources) {
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
    66
        this(resourceName, classToResolveResources, false);
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
    67
    }
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    68
30994
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
    69
    public SchemaCache(String resourceName, Class<?> classToResolveResources, boolean createResolver) {
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
    70
        this.resourceName = resourceName;
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
    71
        this.createResolver = createResolver;
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
    72
        this.clazz = classToResolveResources;
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    73
    }
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    74
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
    75
    public ValidatorHandler newValidator() {
30994
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
    76
        if (schema==null) {
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
    77
            synchronized (this) {
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
    78
                if (schema == null) {
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
    79
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
    80
                    ResourceResolver resourceResolver = null;
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
    81
                    try (InputStream is = clazz.getResourceAsStream(resourceName)) {
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
    82
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
    83
                        StreamSource source = new StreamSource(is);
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
    84
                        source.setSystemId(resourceName);
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
    85
                        // do not disable secure processing - these are well-known schemas
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
    86
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
    87
                        SchemaFactory sf = XmlFactory.createSchemaFactory(XMLConstants.W3C_XML_SCHEMA_NS_URI, false);
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
    88
                        SchemaFactory schemaFactory = allowExternalAccess(sf, "file", false);
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
    89
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
    90
                        if (createResolver) {
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
    91
                            resourceResolver = new ResourceResolver(clazz);
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
    92
                            schemaFactory.setResourceResolver(resourceResolver);
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
    93
                        }
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
    94
                        schema = schemaFactory.newSchema(source);
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
    95
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
    96
                    } catch (IOException | SAXException e) {
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
    97
                        throw new InternalError(e);
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
    98
                    } finally {
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
    99
                        if (resourceResolver != null) resourceResolver.closeStreams();
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   100
                    }
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   101
                }
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   102
            }
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   103
        }
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   104
        return schema.newValidatorHandler();
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   105
    }
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   106
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   107
    class ResourceResolver implements LSResourceResolver {
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   108
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   109
        private List<InputStream> streamsToClose = Collections.synchronizedList(new ArrayList<InputStream>());
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   110
        private Class<?> clazz;
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   111
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   112
        ResourceResolver(Class<?> clazz) {
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   113
            this.clazz = clazz;
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   114
        }
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   115
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   116
        @Override
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   117
        public LSInput resolveResource(String type, String namespaceURI, String publicId, String systemId, String baseURI) {
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   118
            // XSOM passes the namespace URI to the publicID parameter.
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   119
            // we do the same here .
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   120
            InputStream is = clazz.getResourceAsStream(systemId);
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   121
            streamsToClose.add(is);
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   122
            return new Input(is, publicId, systemId);
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   123
        }
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   124
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   125
        void closeStreams() {
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   126
            for (InputStream is : streamsToClose) {
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   127
                if (is != null) {
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   128
                    try {
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   129
                        is.close();
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   130
                    } catch (IOException e) {
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   131
                        // nothing to do ...
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   132
                    }
12009
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   133
                }
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   134
            }
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   135
        }
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   136
    }
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   137
4abb694f273a 7150322: Stop using drop source bundles in jaxws
ohair
parents:
diff changeset
   138
}
30994
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   139
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   140
class Input implements LSInput {
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   141
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   142
    private InputStream is;
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   143
    private String publicId;
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   144
    private String systemId;
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   145
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   146
    public Input(InputStream is, String publicId, String systemId) {
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   147
        this.is = is;
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   148
        this.publicId = publicId;
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   149
        this.systemId = systemId;
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   150
    }
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   151
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   152
    @Override
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   153
    public Reader getCharacterStream() {
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   154
        return null;
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   155
    }
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   156
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   157
    @Override
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   158
    public void setCharacterStream(Reader characterStream) {
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   159
    }
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   160
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   161
    @Override
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   162
    public InputStream getByteStream() {
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   163
        return is;
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   164
    }
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   165
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   166
    @Override
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   167
    public void setByteStream(InputStream byteStream) {
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   168
    }
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   169
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   170
    @Override
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   171
    public String getStringData() {
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   172
        return null;
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   173
    }
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   174
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   175
    @Override
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   176
    public void setStringData(String stringData) {
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   177
    }
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   178
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   179
    @Override
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   180
    public String getSystemId() {
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   181
        return systemId;
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   182
    }
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   183
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   184
    @Override
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   185
    public void setSystemId(String systemId) {
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   186
    }
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   187
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   188
    @Override
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   189
    public String getPublicId() {
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   190
        return publicId;
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   191
    }
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   192
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   193
    @Override
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   194
    public void setPublicId(String publicId) {
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   195
    }
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   196
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   197
    @Override
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   198
    public String getBaseURI() {
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   199
        return null;
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   200
    }
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   201
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   202
    @Override
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   203
    public void setBaseURI(String baseURI) {
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   204
    }
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   205
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   206
    @Override
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   207
    public String getEncoding() {
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   208
        return null;
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   209
    }
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   210
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   211
    @Override
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   212
    public void setEncoding(String encoding) {
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   213
    }
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   214
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   215
    @Override
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   216
    public boolean getCertifiedText() {
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   217
        return false;
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   218
    }
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   219
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   220
    @Override
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   221
    public void setCertifiedText(boolean certifiedText) {
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   222
    }
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   223
}
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   224
6efa17f32dcb 8080502: Update JAXB and JAX-WS to work with resource encapsulation
mkos
parents: 25871
diff changeset
   225