Java Code Examples for com.sun.xml.internal.ws.spi.db.XMLBridge#unmarshal()

The following examples show how to use com.sun.xml.internal.ws.spi.db.XMLBridge#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 hottub with GNU General Public License v2.0 5 votes vote down vote up
public <T> T readAsJAXB(XMLBridge<T> bridge) throws JAXBException {
    try {
        return bridge.unmarshal(readHeader(), null);
    } catch (XMLStreamException e) {
        throw new JAXBException(e);
    }
}
 
Example 2
Source File: AbstractHeaderImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public <T> T readAsJAXB(XMLBridge<T> bridge) throws JAXBException {
    try {
        return bridge.unmarshal(readHeader(), null);
    } catch (XMLStreamException e) {
        throw new JAXBException(e);
    }
}
 
Example 3
Source File: AbstractHeaderImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public <T> T readAsJAXB(XMLBridge<T> bridge) throws JAXBException {
    try {
        return bridge.unmarshal(readHeader(), null);
    } catch (XMLStreamException e) {
        throw new JAXBException(e);
    }
}
 
Example 4
Source File: AbstractHeaderImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public <T> T readAsJAXB(XMLBridge<T> bridge) throws JAXBException {
    try {
        return bridge.unmarshal(readHeader(), null);
    } catch (XMLStreamException e) {
        throw new JAXBException(e);
    }
}
 
Example 5
Source File: AbstractHeaderImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public <T> T readAsJAXB(XMLBridge<T> bridge) throws JAXBException {
    try {
        return bridge.unmarshal(readHeader(), null);
    } catch (XMLStreamException e) {
        throw new JAXBException(e);
    }
}
 
Example 6
Source File: AbstractMessageImpl.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public <T> T readPayloadAsJAXB(XMLBridge<T> bridge) throws JAXBException {
    return bridge.unmarshal(readPayloadAsSource(),
        hasAttachments()? new AttachmentUnmarshallerImpl(getAttachments()) : null );
}
 
Example 7
Source File: SOAPFaultBuilder.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
private Object getJAXBObject(Node jaxbBean, CheckedExceptionImpl ce) throws JAXBException {
    XMLBridge bridge = ce.getBond();
    return bridge.unmarshal(jaxbBean,null);
}
 
Example 8
Source File: JAXBHeader.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
public <T> T readAsJAXB(XMLBridge<T> bond) throws JAXBException {
return bond.unmarshal(new JAXBBridgeSource(this.bridge,jaxbObject),null);
}
 
Example 9
Source File: SAAJMessage.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
public <T> T readPayloadAsJAXB(XMLBridge<T> bridge) throws JAXBException {
    access();
    if (payload != null)
        return bridge.unmarshal(payload,hasAttachments()? new AttachmentUnmarshallerImpl(getAttachments()) : null);
    return null;
}
 
Example 10
Source File: SOAPFaultBuilder.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
private Object getJAXBObject(Node jaxbBean, CheckedExceptionImpl ce) throws JAXBException {
    XMLBridge bridge = ce.getBond();
    return bridge.unmarshal(jaxbBean,null);
}
 
Example 11
Source File: JAXBHeader.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public <T> T readAsJAXB(XMLBridge<T> bond) throws JAXBException {
return bond.unmarshal(new JAXBBridgeSource(this.bridge,jaxbObject),null);
}
 
Example 12
Source File: SAAJMessage.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public <T> T readPayloadAsJAXB(XMLBridge<T> bridge) throws JAXBException {
    access();
    if (payload != null)
        return bridge.unmarshal(payload,hasAttachments()? new AttachmentUnmarshallerImpl(getAttachments()) : null);
    return null;
}
 
Example 13
Source File: JAXBHeader.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public <T> T readAsJAXB(XMLBridge<T> bond) throws JAXBException {
return bond.unmarshal(new JAXBBridgeSource(this.bridge,jaxbObject),null);
}
 
Example 14
Source File: SOAPFaultBuilder.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
private Object getJAXBObject(Node jaxbBean, CheckedExceptionImpl ce) throws JAXBException {
    XMLBridge bridge = ce.getBond();
    return bridge.unmarshal(jaxbBean,null);
}
 
Example 15
Source File: AbstractMessageImpl.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
@Override
public <T> T readPayloadAsJAXB(XMLBridge<T> bridge) throws JAXBException {
    return bridge.unmarshal(readPayloadAsSource(),
        hasAttachments()? new AttachmentUnmarshallerImpl(getAttachments()) : null );
}
 
Example 16
Source File: AbstractMessageImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
@Override
public <T> T readPayloadAsJAXB(XMLBridge<T> bridge) throws JAXBException {
    return bridge.unmarshal(readPayloadAsSource(),
        hasAttachments()? new AttachmentUnmarshallerImpl(getAttachments()) : null );
}
 
Example 17
Source File: JAXBHeader.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public <T> T readAsJAXB(XMLBridge<T> bond) throws JAXBException {
return bond.unmarshal(new JAXBBridgeSource(this.bridge,jaxbObject),null);
}
 
Example 18
Source File: SOAPFaultBuilder.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
private Object getJAXBObject(Node jaxbBean, CheckedExceptionImpl ce) throws JAXBException {
    XMLBridge bridge = ce.getBond();
    return bridge.unmarshal(jaxbBean,null);
}
 
Example 19
Source File: SAAJMessage.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public <T> T readPayloadAsJAXB(XMLBridge<T> bridge) throws JAXBException {
    access();
    if (payload != null)
        return bridge.unmarshal(payload,hasAttachments()? new AttachmentUnmarshallerImpl(getAttachments()) : null);
    return null;
}
 
Example 20
Source File: JAXBHeader.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public <T> T readAsJAXB(XMLBridge<T> bond) throws JAXBException {
return bond.unmarshal(new JAXBBridgeSource(this.bridge,jaxbObject),null);
}