1 package org.objectweb.petals.component.common.util; 2 3 import java.net.URI ; 4 import java.util.Map ; 5 import java.util.Set ; 6 7 import javax.activation.DataHandler ; 8 import javax.jbi.messaging.MessageExchange; 9 import javax.jbi.messaging.MessagingException; 10 import javax.jbi.messaging.NormalizedMessage; 11 12 import org.objectweb.petals.component.common.HandlingException; 13 14 public interface MessageExchangeWrapper extends MessageExchange { 15 16 21 public MessageExchange getMessageExchange(); 22 23 32 void setOutMessageContent(final String outContent) throws HandlingException; 33 34 42 String getInMessageContent() throws HandlingException; 43 44 50 Set <DataHandler > getInMessageAttachments() throws HandlingException; 51 52 59 URI getExchangePattern() throws HandlingException; 60 61 68 String getOperationName() throws HandlingException; 69 70 77 String getEndpointName() throws HandlingException; 78 79 85 NormalizedMessage getInMessage(); 86 87 93 void setInMessage(final NormalizedMessage msg) throws MessagingException; 94 95 101 NormalizedMessage getOutMessage(); 102 103 109 void setOutMessage(final NormalizedMessage msg) throws MessagingException; 110 111 120 void setOutMessageAttachements(Map <String , DataHandler > attachements) 121 throws HandlingException; 122 123 128 public void setDoneStatus() throws MessagingException; 129 130 135 public boolean isDoneStatus(); 136 137 142 public void setErrorStatus() throws MessagingException; 143 144 149 public boolean isErrorStatus(); 150 151 156 public void setActiveStatus() throws MessagingException; 157 158 163 public boolean isActiveStatus(); 164 165 169 public boolean isProviderRole(); 170 171 175 public boolean isConsumerRole(); 176 177 181 public boolean isInOnlyPattern(); 182 183 187 public boolean isRobustInOnlyPattern(); 188 189 193 public boolean isInOutPattern(); 194 195 199 public boolean isInOptionalOutPattern(); 200 201 } 202 | Popular Tags |