Java Code Examples for com.sun.xml.internal.ws.spi.db.BindingContext#getJAXBContext()

The following examples show how to use com.sun.xml.internal.ws.spi.db.BindingContext#getJAXBContext() . 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: LogicalMessageImpl.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
public Object getPayload(BindingContext context) {
    if (context == null) {
        context = defaultJaxbContext;
    }
    if (context == null)
        throw new WebServiceException("JAXBContext parameter cannot be null");

    Object o;
    if (lm == null) {
        try {
            o = packet.getMessage().copy().readPayloadAsJAXB(context.createUnmarshaller());
        } catch (JAXBException e) {
            throw new WebServiceException(e);
        }
    } else {
        o = lm.getPayload(context);
        lm = new JAXBLogicalMessageImpl(context.getJAXBContext(), o);
    }
    return o;
}
 
Example 2
Source File: LogicalMessageImpl.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
public Object getPayload(BindingContext context) {
    if (context == null) {
        context = defaultJaxbContext;
    }
    if (context == null)
        throw new WebServiceException("JAXBContext parameter cannot be null");

    Object o;
    if (lm == null) {
        try {
            o = packet.getMessage().copy().readPayloadAsJAXB(context.createUnmarshaller());
        } catch (JAXBException e) {
            throw new WebServiceException(e);
        }
    } else {
        o = lm.getPayload(context);
        lm = new JAXBLogicalMessageImpl(context.getJAXBContext(), o);
    }
    return o;
}
 
Example 3
Source File: LogicalMessageImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
public Object getPayload(BindingContext context) {
    if (context == null) {
        context = defaultJaxbContext;
    }
    if (context == null)
        throw new WebServiceException("JAXBContext parameter cannot be null");

    Object o;
    if (lm == null) {
        try {
            o = packet.getMessage().copy().readPayloadAsJAXB(context.createUnmarshaller());
        } catch (JAXBException e) {
            throw new WebServiceException(e);
        }
    } else {
        o = lm.getPayload(context);
        lm = new JAXBLogicalMessageImpl(context.getJAXBContext(), o);
    }
    return o;
}
 
Example 4
Source File: LogicalMessageImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
public Object getPayload(BindingContext context) {
    if (context == null) {
        context = defaultJaxbContext;
    }
    if (context == null)
        throw new WebServiceException("JAXBContext parameter cannot be null");

    Object o;
    if (lm == null) {
        try {
            o = packet.getMessage().copy().readPayloadAsJAXB(context.createUnmarshaller());
        } catch (JAXBException e) {
            throw new WebServiceException(e);
        }
    } else {
        o = lm.getPayload(context);
        lm = new JAXBLogicalMessageImpl(context.getJAXBContext(), o);
    }
    return o;
}
 
Example 5
Source File: LogicalMessageImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
public Object getPayload(BindingContext context) {
    if (context == null) {
        context = defaultJaxbContext;
    }
    if (context == null)
        throw new WebServiceException("JAXBContext parameter cannot be null");

    Object o;
    if (lm == null) {
        try {
            o = packet.getMessage().copy().readPayloadAsJAXB(context.createUnmarshaller());
        } catch (JAXBException e) {
            throw new WebServiceException(e);
        }
    } else {
        o = lm.getPayload(context);
        lm = new JAXBLogicalMessageImpl(context.getJAXBContext(), o);
    }
    return o;
}
 
Example 6
Source File: LogicalMessageImpl.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
public Object getPayload(BindingContext context) {
    if (context == null) {
        context = defaultJaxbContext;
    }
    if (context == null)
        throw new WebServiceException("JAXBContext parameter cannot be null");

    Object o;
    if (lm == null) {
        try {
            o = packet.getMessage().copy().readPayloadAsJAXB(context.createUnmarshaller());
        } catch (JAXBException e) {
            throw new WebServiceException(e);
        }
    } else {
        o = lm.getPayload(context);
        lm = new JAXBLogicalMessageImpl(context.getJAXBContext(), o);
    }
    return o;
}
 
Example 7
Source File: LogicalMessageImpl.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
public Object getPayload(BindingContext context) {
    if (context == null) {
        context = defaultJaxbContext;
    }
    if (context == null)
        throw new WebServiceException("JAXBContext parameter cannot be null");

    Object o;
    if (lm == null) {
        try {
            o = packet.getMessage().copy().readPayloadAsJAXB(context.createUnmarshaller());
        } catch (JAXBException e) {
            throw new WebServiceException(e);
        }
    } else {
        o = lm.getPayload(context);
        lm = new JAXBLogicalMessageImpl(context.getJAXBContext(), o);
    }
    return o;
}
 
Example 8
Source File: LogicalMessageImpl.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
public Object getPayload(BindingContext context) {
    if (context == null) {
        context = defaultJaxbContext;
    }
    if (context == null)
        throw new WebServiceException("JAXBContext parameter cannot be null");

    Object o;
    if (lm == null) {
        try {
            o = packet.getMessage().copy().readPayloadAsJAXB(context.createUnmarshaller());
        } catch (JAXBException e) {
            throw new WebServiceException(e);
        }
    } else {
        o = lm.getPayload(context);
        lm = new JAXBLogicalMessageImpl(context.getJAXBContext(), o);
    }
    return o;
}
 
Example 9
Source File: LogicalMessageImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public void setPayload(Object payload, BindingContext context) {
    if (context == null) {
        context = defaultJaxbContext;
    }
    if (payload == null) {
        lm = new EmptyLogicalMessageImpl();
    } else {
        lm = new JAXBLogicalMessageImpl(context.getJAXBContext(), payload);
    }
}
 
Example 10
Source File: LogicalMessageImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public void setPayload(Object payload, BindingContext context) {
    if (context == null) {
        context = defaultJaxbContext;
    }
    if (payload == null) {
        lm = new EmptyLogicalMessageImpl();
    } else {
        lm = new JAXBLogicalMessageImpl(context.getJAXBContext(), payload);
    }
}
 
Example 11
Source File: LogicalMessageImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public void setPayload(Object payload, BindingContext context) {
    if (context == null) {
        context = defaultJaxbContext;
    }
    if (payload == null) {
        lm = new EmptyLogicalMessageImpl();
    } else {
        lm = new JAXBLogicalMessageImpl(context.getJAXBContext(), payload);
    }
}
 
Example 12
Source File: LogicalMessageImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public void setPayload(Object payload, BindingContext context) {
    if (context == null) {
        context = defaultJaxbContext;
    }
    if (payload == null) {
        lm = new EmptyLogicalMessageImpl();
    } else {
        lm = new JAXBLogicalMessageImpl(context.getJAXBContext(), payload);
    }
}
 
Example 13
Source File: LogicalMessageImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public void setPayload(Object payload, BindingContext context) {
    if (context == null) {
        context = defaultJaxbContext;
    }
    if (payload == null) {
        lm = new EmptyLogicalMessageImpl();
    } else {
        lm = new JAXBLogicalMessageImpl(context.getJAXBContext(), payload);
    }
}
 
Example 14
Source File: LogicalMessageImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public void setPayload(Object payload, BindingContext context) {
    if (context == null) {
        context = defaultJaxbContext;
    }
    if (payload == null) {
        lm = new EmptyLogicalMessageImpl();
    } else {
        lm = new JAXBLogicalMessageImpl(context.getJAXBContext(), payload);
    }
}
 
Example 15
Source File: LogicalMessageImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public void setPayload(Object payload, BindingContext context) {
    if (context == null) {
        context = defaultJaxbContext;
    }
    if (payload == null) {
        lm = new EmptyLogicalMessageImpl();
    } else {
        lm = new JAXBLogicalMessageImpl(context.getJAXBContext(), payload);
    }
}
 
Example 16
Source File: LogicalMessageImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public void setPayload(Object payload, BindingContext context) {
    if (context == null) {
        context = defaultJaxbContext;
    }
    if (payload == null) {
        lm = new EmptyLogicalMessageImpl();
    } else {
        lm = new JAXBLogicalMessageImpl(context.getJAXBContext(), payload);
    }
}