Example usage for javax.xml.ws ProtocolException ProtocolException

List of usage examples for javax.xml.ws ProtocolException ProtocolException

Introduction

In this page you can find the example usage for javax.xml.ws ProtocolException ProtocolException.

Prototype

public ProtocolException(Throwable cause) 

Source Link

Document

Constructs a new runtime exception with the specified cause and a detail message of (cause==null ?

Usage

From source file:be.agiv.security.handler.WSTrustHandler.java

public boolean handleMessage(SOAPMessageContext context) {
    Boolean outboundProperty = (Boolean) context.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY);
    if (false == outboundProperty) {
        try {/*from ww w . ja v a 2  s  .  c om*/
            handleInboundMessage(context);
        } catch (Exception e) {
            throw new ProtocolException(e);
        }
    } else {
        try {
            handleOutboundMessage(context);
        } catch (Exception e) {
            LOG.error("error: " + e.getMessage(), e);
            throw new ProtocolException(e);
        }
    }
    return true;
}

From source file:be.agiv.security.handler.WSAddressingHandler.java

/**
 * Default constructor.//  ww w .j av a  2s . c  o  m
 */
public WSAddressingHandler() {
    try {
        this.jaxbContext = JAXBContext.newInstance(ObjectFactory.class);
    } catch (JAXBException e) {
        throw new ProtocolException(e);
    }
}

From source file:be.fedict.eid.idp.protocol.ws_federation.sts.WSSecuritySoapHandler.java

@Override
public boolean handleMessage(SOAPMessageContext context) {
    Boolean outboundProperty = (Boolean) context.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY);
    if (true == outboundProperty.booleanValue()) {
        try {/*www  .j a  v a2  s .  c o m*/
            handleOutboundMessage(context);
        } catch (Exception e) {
            throw new ProtocolException(e);
        }
    } else {
        try {
            handleInboundMessage(context);
        } catch (Exception e) {
            throw new ProtocolException(e);
        }
    }
    return true;
}

From source file:be.fedict.hsm.client.WSSecuritySOAPHandler.java

@Override
public boolean handleMessage(SOAPMessageContext context) {
    Boolean outboundProperty = (Boolean) context.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY);
    if (true == outboundProperty.booleanValue()) {
        try {//  w  w  w  .j a  va2  s .c  o m
            handleOutboundMessage(context);
        } catch (Exception e) {
            throw new ProtocolException(e);
        }
    }
    return true;
}

From source file:be.agiv.security.handler.AuthenticationHandler.java

public boolean handleMessage(SOAPMessageContext context) {
    Boolean outboundProperty = (Boolean) context.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY);

    if (true == outboundProperty.booleanValue()) {
        try {/*from   ww  w  .  j  a va 2s . c  o m*/
            handleOutboundMessage(context);
        } catch (Exception e) {
            throw new ProtocolException(e);
        }
    }

    return true;
}

From source file:be.agiv.security.handler.WSAddressingHandler.java

public boolean handleMessage(SOAPMessageContext context) {
    Boolean outboundProperty = (Boolean) context.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY);
    if (true == outboundProperty.booleanValue()) {
        try {//  ww w .  j av a 2 s . c  o  m
            handleOutboundMessage(context);
        } catch (SOAPException e) {
            throw new ProtocolException(e);
        }
    } else {
        handleInboundMessage(context);
    }
    return true;
}

From source file:be.e_contract.mycarenet.async.SecuritySOAPHandler.java

@Override
public boolean handleMessage(SOAPMessageContext context) {
    Boolean outboundProperty = (Boolean) context.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY);
    if (false == outboundProperty) {
        return true;
    }/*from ww  w.  jav a 2 s  .c  o m*/
    try {
        handleOutboundMessage(context);
    } catch (Exception e) {
        LOG.error("outbound exception: " + e.getMessage(), e);
        throw new ProtocolException(e);
    }
    return true;
}

From source file:be.fedict.hsm.ws.impl.WSSecuritySOAPHandler.java

@Override
public boolean handleMessage(SOAPMessageContext context) {
    LOG.debug("handleMessage");
    Boolean outboundProperty = (Boolean) context.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY);
    if (false == outboundProperty.booleanValue()) {
        try {//from w ww .  j  a  v a 2 s  .  c om
            handleInboundMessage(context);
        } catch (Exception e) {
            throw new ProtocolException(e);
        }
    }
    return true;
}

From source file:be.e_contract.dssp.client.WSSecuritySOAPHandler.java

@Override
public boolean handleMessage(SOAPMessageContext context) {
    Boolean outboundProperty = (Boolean) context.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY);

    if (true == outboundProperty.booleanValue()) {
        try {//from w w  w  .j  a  v  a  2  s  . c  o  m
            handleOutboundMessage(context);
        } catch (Exception e) {
            LOG.error("outbound exception: " + e.getMessage(), e);
            throw new ProtocolException(e);
        }
    }
    return true;
}

From source file:be.agiv.security.handler.WSSecurityHandler.java

public boolean handleMessage(SOAPMessageContext context) {
    Boolean outboundProperty = (Boolean) context.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY);

    if (true == outboundProperty.booleanValue()) {
        try {//from   ww w  . j av  a 2s . c  o m
            handleOutboundMessage(context);
        } catch (Exception e) {
            LOG.error("outbound exception: " + e.getMessage(), e);
            throw new ProtocolException(e);
        }
    } else {
        try {
            handleInboundMessage(context);
        } catch (Exception e) {
            throw new ProtocolException(e);
        }
    }

    return true;
}