/*
* 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.
*/
/**
* {@link Header} whose physical data representation is a JAXB bean.
*
* @author Kohsuke Kawaguchi
*/
/**
* The JAXB object that represents the header.
*/
// information about this header. lazily obtained.
/**
* Once the header is turned into infoset,
* this buffer keeps it.
*/
this.jaxbObject = jaxbObject;
if (jaxbObject instanceof JAXBElement) {
}
}
this.jaxbObject = jaxbObject;
}
/**
* Lazily parse the first element to obtain attribute values on it.
*/
private void parse() {
try {
} catch (JAXBException e) {
// if it's due to us aborting the processing after the first element,
// we can safely ignore this exception.
//
// if it's due to error in the object, the same error will be reported
// when the readHeader() method is used, so we don't have to report
// an error right now.
}
}
parse();
return nsUri;
}
parse();
return localName;
}
parse();
}
try {
}
return infoset.readAsXMLStreamReader();
} catch (JAXBException e) {
throw new XMLStreamException2(e);
}
}
try {
// bridge marshals a fragment, so we need to add start/endDocument by ourselves
r.getHandler().startDocument();
r.getHandler().endDocument();
return (T)r.getResult();
} catch (SAXException e) {
throw new JAXBException(e);
}
}
}
try {
// Get output stream and use JAXB UTF-8 writer
} else {
}
} catch (JAXBException e) {
throw new XMLStreamException2(e);
}
}
try {
} catch (JAXBException e) {
throw new SOAPException(e);
}
}
try {
} catch (JAXBException e) {
throw x;
}
}
}