Search in sources :

Example 1 with StatusElement

use of com.sun.identity.liberty.ws.interaction.jaxb.StatusElement in project OpenAM by OpenRock.

the class InteractionManager method newRedirectFaultError.

private SOAPFaultException newRedirectFaultError(QName errorCode) {
    StatusElement se = null;
    try {
        se = objectFactory.createStatusElement();
    } catch (JAXBException je) {
        debug.error("InteractionManager.newRedirectFaultError():" + " can not create StatusElement", je);
    }
    se.setCode(errorCode);
    List details = new ArrayList();
    try {
        details.add(Utils.convertJAXBToElement(se));
    } catch (JAXBException je) {
        debug.error("InteractionManager.newRedirectFaultError():" + "can not create new RedirectFaultError:" + "can not convert JAXBObject to Element", je);
    }
    SOAPFault sf = new SOAPFault(QNAME_SERVER, SERVER_ERROR, FAULT_ACTOR, new SOAPFaultDetail(details));
    SOAPFaultException sfe = new SOAPFaultException(new Message(sf));
    return sfe;
}
Also used : Message(com.sun.identity.liberty.ws.soapbinding.Message) JAXBException(javax.xml.bind.JAXBException) StatusElement(com.sun.identity.liberty.ws.interaction.jaxb.StatusElement) ArrayList(java.util.ArrayList) SOAPFaultDetail(com.sun.identity.liberty.ws.soapbinding.SOAPFaultDetail) ArrayList(java.util.ArrayList) List(java.util.List) SOAPFault(com.sun.identity.liberty.ws.soapbinding.SOAPFault) SOAPFaultException(com.sun.identity.liberty.ws.soapbinding.SOAPFaultException)

Aggregations

StatusElement (com.sun.identity.liberty.ws.interaction.jaxb.StatusElement)1 Message (com.sun.identity.liberty.ws.soapbinding.Message)1 SOAPFault (com.sun.identity.liberty.ws.soapbinding.SOAPFault)1 SOAPFaultDetail (com.sun.identity.liberty.ws.soapbinding.SOAPFaultDetail)1 SOAPFaultException (com.sun.identity.liberty.ws.soapbinding.SOAPFaultException)1 ArrayList (java.util.ArrayList)1 List (java.util.List)1 JAXBException (javax.xml.bind.JAXBException)1