Java Code Examples for com.sun.xml.internal.bind.api.Bridge#unmarshal()

The following examples show how to use com.sun.xml.internal.bind.api.Bridge#unmarshal() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AbstractHeaderImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/** @deprecated */
public <T> T readAsJAXB(Bridge<T> bridge) throws JAXBException {
    try {
        return bridge.unmarshal(readHeader());
    } catch (XMLStreamException e) {
        throw new JAXBException(e);
    }
}
 
Example 2
Source File: SAAJMessage.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/** @deprecated */
public <T> T readPayloadAsJAXB(Bridge<T> bridge) throws JAXBException {
    access();
    if (payload != null)
        return bridge.unmarshal(payload,hasAttachments()? new AttachmentUnmarshallerImpl(getAttachments()) : null);
    return null;
}
 
Example 3
Source File: SAAJMessage.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/** @deprecated */
public <T> T readPayloadAsJAXB(Bridge<T> bridge) throws JAXBException {
    access();
    if (payload != null)
        return bridge.unmarshal(payload,hasAttachments()? new AttachmentUnmarshallerImpl(getAttachments()) : null);
    return null;
}
 
Example 4
Source File: AbstractHeaderImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/** @deprecated */
public <T> T readAsJAXB(Bridge<T> bridge) throws JAXBException {
    try {
        return bridge.unmarshal(readHeader());
    } catch (XMLStreamException e) {
        throw new JAXBException(e);
    }
}
 
Example 5
Source File: AbstractHeaderImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/** @deprecated */
public <T> T readAsJAXB(Bridge<T> bridge) throws JAXBException {
    try {
        return bridge.unmarshal(readHeader());
    } catch (XMLStreamException e) {
        throw new JAXBException(e);
    }
}
 
Example 6
Source File: AbstractMessageImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
/** @deprecated */
@Override
public <T> T readPayloadAsJAXB(Bridge<T> bridge) throws JAXBException {
    return bridge.unmarshal(readPayloadAsSource(),
        hasAttachments()? new AttachmentUnmarshallerImpl(getAttachments()) : null );
}
 
Example 7
Source File: DOMMessage.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
/** @deprecated */
public <T> T readPayloadAsJAXB(Bridge<T> bridge) throws JAXBException {
    return bridge.unmarshal(payload,
        hasAttachments()? new AttachmentUnmarshallerImpl(getAttachments()) : null);
}
 
Example 8
Source File: AbstractMessageImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
/** @deprecated */
@Override
public <T> T readPayloadAsJAXB(Bridge<T> bridge) throws JAXBException {
    return bridge.unmarshal(readPayloadAsSource(),
        hasAttachments()? new AttachmentUnmarshallerImpl(getAttachments()) : null );
}
 
Example 9
Source File: DOMHeader.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
/** @deprecated */
public <T> T readAsJAXB(Bridge<T> bridge) throws JAXBException {
    return bridge.unmarshal(node);
}
 
Example 10
Source File: JAXBHeader.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
/** @deprecated */
public <T> T readAsJAXB(Bridge<T> bridge) throws JAXBException {
    return bridge.unmarshal(new JAXBBridgeSource(this.bridge,jaxbObject));
}
 
Example 11
Source File: JAXBHeader.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
/** @deprecated */
public <T> T readAsJAXB(Bridge<T> bridge) throws JAXBException {
    return bridge.unmarshal(new JAXBBridgeSource(this.bridge,jaxbObject));
}
 
Example 12
Source File: DOMMessage.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
/** @deprecated */
public <T> T readPayloadAsJAXB(Bridge<T> bridge) throws JAXBException {
    return bridge.unmarshal(payload,
        hasAttachments()? new AttachmentUnmarshallerImpl(getAttachments()) : null);
}
 
Example 13
Source File: AbstractMessageImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
/** @deprecated */
@Override
public <T> T readPayloadAsJAXB(Bridge<T> bridge) throws JAXBException {
    return bridge.unmarshal(readPayloadAsSource(),
        hasAttachments()? new AttachmentUnmarshallerImpl(getAttachments()) : null );
}
 
Example 14
Source File: DOMHeader.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
/** @deprecated */
public <T> T readAsJAXB(Bridge<T> bridge) throws JAXBException {
    return bridge.unmarshal(node);
}
 
Example 15
Source File: JAXBHeader.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
/** @deprecated */
public <T> T readAsJAXB(Bridge<T> bridge) throws JAXBException {
    return bridge.unmarshal(new JAXBBridgeSource(this.bridge,jaxbObject));
}
 
Example 16
Source File: DOMMessage.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
/** @deprecated */
public <T> T readPayloadAsJAXB(Bridge<T> bridge) throws JAXBException {
    return bridge.unmarshal(payload,
        hasAttachments()? new AttachmentUnmarshallerImpl(getAttachments()) : null);
}
 
Example 17
Source File: DOMHeader.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
/** @deprecated */
public <T> T readAsJAXB(Bridge<T> bridge) throws JAXBException {
    return bridge.unmarshal(node);
}
 
Example 18
Source File: DOMHeader.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
/** @deprecated */
public <T> T readAsJAXB(Bridge<T> bridge) throws JAXBException {
    return bridge.unmarshal(node);
}
 
Example 19
Source File: JAXBHeader.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
/** @deprecated */
public <T> T readAsJAXB(Bridge<T> bridge) throws JAXBException {
    return bridge.unmarshal(new JAXBBridgeSource(this.bridge,jaxbObject));
}
 
Example 20
Source File: DOMMessage.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
/** @deprecated */
public <T> T readPayloadAsJAXB(Bridge<T> bridge) throws JAXBException {
    return bridge.unmarshal(payload,
        hasAttachments()? new AttachmentUnmarshallerImpl(getAttachments()) : null);
}