public Destination getDestination() { return get(Destination.class); }
request = JMSUtils.retrievePayload(message, (String) inMessage.get(org.apache.cxf.message.Message.ENCODING)); } catch (UnsupportedEncodingException e) { throw new IllegalStateException("Cannot get payload of the given JMS message", e); Exchange exchange = inMessage.getExchange(); if (MDBTransportModeType.CLIENT_RECEIVER == inMessage.get(MDBTransportModeType.class)) { if (MDBTransportModeType.SERVER_ENDPOINT == inMessage.get(MDBTransportModeType.class)) { FaultMode faultMode = (FaultMode) inMessage.get("org.apache.cxf.message.FaultMode"); if (faultMode == FaultMode.CHECKED_APPLICATION_FAULT) { LOG.fine("There is a checked exception that has been sent to the client");
JMSUtils.retrieveAndSetPayload(inMessage, message, (String) inMessage.get(org.apache.cxf.message.Message.ENCODING)); } catch (UnsupportedEncodingException e) { throw new IllegalStateException("Cannot get payload of the given JMS message", e); Exchange exchange = inMessage.getExchange(); if (ReliableJMSTransportModeType.CLIENT_RECEIVER == inMessage.get(ReliableJMSTransportModeType.class)) { if (ReliableJMSTransportModeType.SERVER_ENDPOINT == inMessage.get(ReliableJMSTransportModeType.class)) {
public Destination getDestination() { return get(Destination.class); }
public Destination getDestination() { return get(Destination.class); }
public Destination getDestination() { return get(Destination.class); }
public Collection<Attachment> getAttachments() { return CastUtils.cast((Collection<?>)get(ATTACHMENTS)); }
public Collection<Attachment> getAttachments() { return CastUtils.cast((Collection<?>)get(ATTACHMENTS)); }
public Collection<Attachment> getAttachments() { return CastUtils.cast((Collection<?>)get(ATTACHMENTS)); }
public Collection<Attachment> getAttachments() { return CastUtils.cast((Collection<?>)get(ATTACHMENTS)); }
public static void encodeRMContent(RMMessage rmmsg, Message msg, InputStream msgContent) throws IOException { CachedOutputStream cos = new CachedOutputStream(); if (msg.getAttachments() == null) { rmmsg.setContentType((String)msg.get(Message.CONTENT_TYPE)); IOUtils.copyAndCloseInput(msgContent, cos); cos.flush(); rmmsg.setContent(cos); } else { MessageImpl msgImpl1 = new MessageImpl(); msgImpl1.setContent(OutputStream.class, cos); msgImpl1.setAttachments(msg.getAttachments()); msgImpl1.put(Message.CONTENT_TYPE, msg.get(Message.CONTENT_TYPE)); msgImpl1.setContent(InputStream.class, msgContent); AttachmentSerializer serializer = new AttachmentSerializer(msgImpl1); serializer.setXop(false); serializer.writeProlog(); // write soap root message into cached output stream IOUtils.copyAndCloseInput(msgContent, cos); cos.flush(); serializer.writeAttachments(); rmmsg.setContentType((String) msgImpl1.get(Message.CONTENT_TYPE)); rmmsg.setContent(cos); } }