Search in sources :

Example 1 with PingMeFault

use of org.apache.headers.doc_lit.PingMeFault in project cxf by apache.

the class BaseHeaderTesterDocLitImpl method pingMe.

public void pingMe(String msgType) throws PingMeFault {
    getLogger().debug("Server: in pingMe:" + msgType);
    if ("USER".equals(msgType)) {
        FaultDetailT detail = new FaultDetailT();
        detail.setMajor((short) 1);
        detail.setMinor((short) 2);
        throw new PingMeFault("USER FAULT TEST", detail);
    } else if ("SYSTEM".equals(msgType)) {
        throw new Fault(new Message(HeaderTesterUtil.EX_STRING, (ResourceBundle) null, new Object[] { "FAULT TEST" }));
    } else if ("RUNTIME".equals(msgType)) {
        throw new IllegalArgumentException(HeaderTesterUtil.EX_STRING);
    }
}
Also used : PingMeFault(org.apache.headers.doc_lit.PingMeFault) Message(org.apache.cxf.common.i18n.Message) FaultDetailT(org.apache.headers.coloc.types.FaultDetailT) PingMeFault(org.apache.headers.doc_lit.PingMeFault) Fault(org.apache.cxf.interceptor.Fault)

Aggregations

Message (org.apache.cxf.common.i18n.Message)1 Fault (org.apache.cxf.interceptor.Fault)1 FaultDetailT (org.apache.headers.coloc.types.FaultDetailT)1 PingMeFault (org.apache.headers.doc_lit.PingMeFault)1